Skip to content

Commit 8b54c9c

Browse files
authored
Merge pull request #46 from ashblue/develop
Release setup
2 parents 95999b9 + 8c393c0 commit 8b54c9c

File tree

6 files changed

+454
-17
lines changed

6 files changed

+454
-17
lines changed

.all-contributorsrc

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
{
2+
"projectName": "fluid-behavior-tree",
3+
"projectOwner": "ashblue",
4+
"repoType": "github",
5+
"repoHost": "https://github.com",
26
"files": [
37
"README.md"
48
],
59
"imageSize": 100,
610
"commit": false,
11+
"commitConvention": "angular",
712
"contributors": [
813
{
914
"login": "ashblue",
@@ -49,12 +54,16 @@
4954
"contributions": [
5055
"bug"
5156
]
57+
},
58+
{
59+
"login": "piotr-j",
60+
"name": "Piotr Jastrzebski",
61+
"avatar_url": "https://avatars.githubusercontent.com/u/2499728?v=4",
62+
"profile": "https://github.com/piotr-j",
63+
"contributions": [
64+
"code"
65+
]
5266
}
5367
],
54-
"contributorsPerLine": 7,
55-
"projectName": "fluid-behavior-tree",
56-
"projectOwner": "ashblue",
57-
"repoType": "github",
58-
"repoHost": "https://github.com",
59-
"skipCi": true
68+
"contributorsPerLine": 7
6069
}

Assets/FluidBehaviorTree/Runtime/Tasks/Actions/ActionGeneric.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ protected override void OnStart () {
2020
}
2121

2222
protected override void OnExit () {
23-
initLogic?.Invoke();
23+
exitLogic?.Invoke();
2424
}
2525

2626
protected override void OnInit () {
27-
exitLogic?.Invoke();
27+
initLogic?.Invoke();
2828
}
2929
}
30-
}
30+
}

Assets/FluidBehaviorTree/Tests/Editor/Tasks/Actions/ActionGenericTest.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,19 @@ public void It_should_execute_a_init_hook () {
4444
Assert.AreEqual(1, test);
4545
}
4646

47+
[Test]
48+
public void It_should_execute_init_hook_on_continue () {
49+
var test = 0;
50+
var task = new ActionGeneric {
51+
initLogic = () => { test++; },
52+
updateLogic = () => TaskStatus.Continue,
53+
};
54+
55+
task.Update();
56+
57+
Assert.AreEqual(1, test);
58+
}
59+
4760
[Test]
4861
public void It_should_execute_a_exit_hook () {
4962
var test = 0;
@@ -57,4 +70,4 @@ public void It_should_execute_a_exit_hook () {
5770
}
5871
}
5972
}
60-
}
73+
}

README.md

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
![Fluid Behavior Tree](fluid-behavior-tree.jpg)
22

33
[![Build Status](https://travis-ci.org/ashblue/fluid-behavior-tree.svg?branch=master)](https://travis-ci.org/ashblue/fluid-behavior-tree)
4-
[![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors)
54

65
Behavior trees for Unity3D projects. Written with a code driven approach to maximize maintainability on large projects with the builder pattern. Inspired by Fluent Behavior Tree.
76

@@ -722,15 +721,30 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
722721
<!-- markdownlint-disable -->
723722
<table>
724723
<tr>
725-
<td align="center"><a href="http://blueashes.com"><img src="https://avatars2.githubusercontent.com/u/643307?v=4" width="100px;" alt=""/><br /><sub><b>Ash Blue</b></sub></a><br /><a href="https://github.com/ashblue/fluid-behavior-tree/commits?author=ashblue" title="Code">💻</a></td>
726-
<td align="center"><a href="https://jesse.tg"><img src="https://avatars0.githubusercontent.com/u/1175189?v=4" width="100px;" alt=""/><br /><sub><b>Jesse Talavera-Greenberg</b></sub></a><br /><a href="https://github.com/ashblue/fluid-behavior-tree/commits?author=JesseTG" title="Code">💻</a></td>
727-
<td align="center"><a href="https://github.com/PureSaltProductions"><img src="https://avatars1.githubusercontent.com/u/52610924?v=4" width="100px;" alt=""/><br /><sub><b>PureSaltProductions</b></sub></a><br /><a href="#userTesting-PureSaltProductions" title="User Testing">📓</a></td>
728-
<td align="center"><a href="https://github.com/mduvergey"><img src="https://avatars2.githubusercontent.com/u/18513379?v=4" width="100px;" alt=""/><br /><sub><b>Martin Duvergey</b></sub></a><br /><a href="https://github.com/ashblue/fluid-behavior-tree/issues?q=author%3Amduvergey" title="Bug reports">🐛</a></td>
729-
<td align="center"><a href="https://github.com/call-stack"><img src="https://avatars1.githubusercontent.com/u/38575304?v=4" width="100px;" alt=""/><br /><sub><b>call-stack</b></sub></a><br /><a href="https://github.com/ashblue/fluid-behavior-tree/issues?q=author%3Acall-stack" title="Bug reports">🐛</a></td>
724+
<td align="center"><a href="http://blueashes.com"><img src="https://avatars2.githubusercontent.com/u/643307?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ash Blue</b></sub></a><br /><a href="https://github.com/ashblue/fluid-behavior-tree/commits?author=ashblue" title="Code">💻</a></td>
725+
<td align="center"><a href="https://jesse.tg"><img src="https://avatars0.githubusercontent.com/u/1175189?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jesse Talavera-Greenberg</b></sub></a><br /><a href="https://github.com/ashblue/fluid-behavior-tree/commits?author=JesseTG" title="Code">💻</a></td>
726+
<td align="center"><a href="https://github.com/PureSaltProductions"><img src="https://avatars1.githubusercontent.com/u/52610924?v=4?s=100" width="100px;" alt=""/><br /><sub><b>PureSaltProductions</b></sub></a><br /><a href="#userTesting-PureSaltProductions" title="User Testing">📓</a></td>
727+
<td align="center"><a href="https://github.com/mduvergey"><img src="https://avatars2.githubusercontent.com/u/18513379?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Martin Duvergey</b></sub></a><br /><a href="https://github.com/ashblue/fluid-behavior-tree/issues?q=author%3Amduvergey" title="Bug reports">🐛</a></td>
728+
<td align="center"><a href="https://github.com/call-stack"><img src="https://avatars1.githubusercontent.com/u/38575304?v=4?s=100" width="100px;" alt=""/><br /><sub><b>call-stack</b></sub></a><br /><a href="https://github.com/ashblue/fluid-behavior-tree/issues?q=author%3Acall-stack" title="Bug reports">🐛</a></td>
729+
<td align="center"><a href="https://github.com/piotr-j"><img src="https://avatars.githubusercontent.com/u/2499728?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Piotr Jastrzebski</b></sub></a><br /><a href="https://github.com/ashblue/fluid-behavior-tree/commits?author=piotr-j" title="Code">💻</a></td>
730730
</tr>
731731
</table>
732732

733-
<!-- markdownlint-enable -->
733+
<!-- markdownlint-restore -->
734+
<!-- prettier-ignore-end -->
735+
736+
<!-- ALL-CONTRIBUTORS-LIST:END -->
737+
738+
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
739+
740+
## Contributors ✨
741+
742+
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
743+
744+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
745+
<!-- prettier-ignore-start -->
746+
<!-- markdownlint-disable -->
747+
<!-- markdownlint-restore -->
734748
<!-- prettier-ignore-end -->
735749
<!-- ALL-CONTRIBUTORS-LIST:END -->
736750

0 commit comments

Comments
 (0)