Skip to content

Commit c4a3b5f

Browse files
authored
Merge pull request #105 from ashblue/develop
Release
2 parents ce750b6 + e1d3c08 commit c4a3b5f

File tree

280 files changed

+12504
-7167
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

280 files changed

+12504
-7167
lines changed

.all-contributorsrc

+58-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,64 @@
6363
"contributions": [
6464
"code"
6565
]
66+
},
67+
{
68+
"login": "hookSSi",
69+
"name": "Sounghoo",
70+
"avatar_url": "https://avatars.githubusercontent.com/u/12372136?v=4",
71+
"profile": "https://github.com/hookSSi",
72+
"contributions": [
73+
"code"
74+
]
75+
},
76+
{
77+
"login": "TNThomas",
78+
"name": "TNThomas",
79+
"avatar_url": "https://avatars.githubusercontent.com/u/9881915?v=4",
80+
"profile": "https://github.com/TNThomas",
81+
"contributions": [
82+
"bug",
83+
"code"
84+
]
85+
},
86+
{
87+
"login": "Ownez",
88+
"name": "Ownez",
89+
"avatar_url": "https://avatars.githubusercontent.com/u/10993641?v=4",
90+
"profile": "https://github.com/Ownez",
91+
"contributions": [
92+
"code"
93+
]
94+
},
95+
{
96+
"login": "angstr0m",
97+
"name": "angstr0m",
98+
"avatar_url": "https://avatars.githubusercontent.com/u/733176?v=4",
99+
"profile": "https://github.com/angstr0m",
100+
"contributions": [
101+
"bug"
102+
]
103+
},
104+
{
105+
"login": "darkgnostic",
106+
"name": "Izzy",
107+
"avatar_url": "https://avatars.githubusercontent.com/u/4980221?v=4",
108+
"profile": "https://github.com/darkgnostic",
109+
"contributions": [
110+
"bug"
111+
]
112+
},
113+
{
114+
"login": "JeremyVansnick",
115+
"name": "JeremyVansnick",
116+
"avatar_url": "https://avatars.githubusercontent.com/u/23563794?v=4",
117+
"profile": "https://github.com/JeremyVansnick",
118+
"contributions": [
119+
"code"
120+
]
66121
}
67122
],
68-
"contributorsPerLine": 7
123+
"contributorsPerLine": 7,
124+
"skipCi": true,
125+
"commitType": "docs"
69126
}

.editorconfig

+3
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ trim_trailing_whitespace = true
1111
[*.md]
1212
max_line_length = off
1313
trim_trailing_whitespace = false
14+
15+
[manifest.json]
16+
indent_size = 2

.github/FUNDING.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# These are supported funding model platforms
22

3-
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
3+
github: ashblue
44
patreon: # Replace with a single Patreon username
55
open_collective: # Replace with a single Open Collective username
66
ko_fi: ashblue

.github/workflows/commitlint.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Lint Commit Messages
2+
on: [pull_request]
3+
4+
jobs:
5+
commitlint:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v3
9+
with:
10+
fetch-depth: 0
11+
- uses: wagoid/commitlint-github-action@v5

.github/workflows/nightly-build.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Nightly Build
2+
permissions:
3+
contents: write
4+
on:
5+
push:
6+
branches:
7+
- develop
8+
jobs:
9+
deployNightly:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: 16
16+
- run: HUSKY=0 npm ci
17+
- run: npm run build
18+
- name: Deploy nightly branch
19+
run: sh ./publish-nightly.sh
20+
env:
21+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/workflow.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
release:
14+
name: Release
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: write
18+
issues: write
19+
pull-requests: write
20+
id-token: write
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v3
24+
with:
25+
fetch-depth: 0
26+
persist-credentials: false
27+
- name: Setup Node.js
28+
uses: actions/setup-node@v3
29+
with:
30+
node-version: 16
31+
- name: Install dependencies
32+
run: HUSKY=0 npm ci && npm run build
33+
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
34+
run: npm audit signatures
35+
- name: Release
36+
env:
37+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
40+
run: npm run semantic-release

.gitignore

+41-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,30 @@
1-
[Ll]ibrary/
2-
[Tt]emp/
3-
[Oo]bj/
4-
[Bb]uild/
5-
[Bb]uilds/
6-
Assets/AssetStoreTools*
1+
/[Ll]ibrary/
2+
/[Tt]emp/
3+
/[Oo]bj/
4+
/[Bb]uild/
5+
/[Bb]uilds/
6+
/[Ll]ogs/
7+
/[Uu]ser[Ss]ettings/
8+
CodeCoverage/
9+
UIElementsSchema/
10+
11+
# MemoryCaptures can get excessive in size.
12+
# They also could contain extremely sensitive data
13+
/[Mm]emoryCaptures/
14+
15+
# Recordings can get excessive in size
16+
/[Rr]ecordings/
17+
18+
/[Aa]ssets/AssetStoreTools*
19+
20+
# Autogenerated Jetbrains Rider plugin
21+
/[Aa]ssets/Plugins/Editor/JetBrains*
722

823
# Visual Studio cache directory
9-
/.vs/
24+
.vs/
25+
26+
# Gradle cache directory
27+
.gradle/
1028

1129
# Autogenerated VS/MD/Consulo solution and project files
1230
ExportedObj/
@@ -22,18 +40,33 @@ ExportedObj/
2240
*.booproj
2341
*.svd
2442
*.pdb
43+
*.mdb
44+
*.opendb
45+
*.VC.db
2546

2647
# Unity3D generated meta files
2748
*.pidb.meta
2849
*.pdb.meta
50+
*.mdb.meta
2951

3052
# Unity3D Generated File On Crash Reports
3153
sysinfo.txt
3254

3355
# Builds
3456
*.apk
57+
*.aab
3558
*.unitypackage
36-
/Logs/Packages-Update.log
59+
*.app
60+
61+
# Crashlytics generated file
62+
crashlytics-build.properties
63+
64+
# Packed Addressables
65+
/[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin*
66+
67+
# Temporary auto-generated Android Assets
68+
/[Aa]ssets/[Ss]treamingAssets/aa.meta
69+
/[Aa]ssets/[Ss]treamingAssets/aa/*
3770

3871
# Node.js
3972
node_modules

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no -- commitlint --edit ${1}

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v12.9.1
1+
16.17.0

.oyster.json

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"description": "A micro-framework for creating Behavior Trees based upon the builder pattern",
3+
"displayName": "Fluid Behavior Tree",
4+
"keywords": [
5+
"ai",
6+
"behavior tree",
7+
"builder pattern"
8+
],
9+
"oysterVersion": "3.0.2",
10+
"packageName": "com.fluid.behavior-tree",
11+
"packageScope": "com.fluid",
12+
"unityVersion": "2018.1",
13+
"author": {
14+
"name": "Ash Blue",
15+
"email": "[email protected]",
16+
"url": "https://twitter.com/ashbluewd"
17+
},
18+
"repo": {
19+
"gitUrl": "https://github.com/ashblue/fluid-behavior-tree",
20+
"gitUrlNoHttp": "github.com/ashblue/fluid-behavior-tree"
21+
}
22+
}

.releaserc

+16-10
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,36 @@
33
"@semantic-release/commit-analyzer",
44
"@semantic-release/release-notes-generator",
55
"@semantic-release/changelog",
6+
[
7+
"@semantic-release/npm",
8+
{
9+
"npmPublish": false
10+
}
11+
],
612
[
713
"@semantic-release/exec",
814
{
9-
"verifyConditionsCmd": "npm run build",
10-
"prepareCmd": "npm run build"
15+
"publishCmd": "npm run build"
1116
}
1217
],
13-
"@semantic-release/git",
1418
[
1519
"@semantic-release/npm",
1620
{
17-
"pkgRoot": "dist"
21+
"pkgRoot": "Assets/com.fluid.behavior-tree"
1822
}
1923
],
2024
[
21-
"@semantic-release/github",
25+
"@semantic-release/git",
2226
{
2327
"assets": [
24-
{
25-
"path": "dist.zip",
26-
"label": "Package Build"
27-
}
28+
"CHANGELOG.md",
29+
"package.json",
30+
"package-lock.json",
31+
"npm-shrinkwrap.json",
32+
"Assets/**/*"
2833
]
2934
}
30-
]
35+
],
36+
"@semantic-release/github"
3137
]
3238
}

.travis.yml

-13
This file was deleted.

Assets/Resources.meta

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Resources/BillingMode.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"androidStore":"GooglePlay"}

Assets/Resources/BillingMode.json.meta

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Samples/DecoratorRepeatWithWait.cs

+6-12
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,34 @@
11
using CleverCrow.Fluid.BTs.Tasks;
22
using CleverCrow.Fluid.BTs.Trees;
33
using UnityEngine;
4-
using Random = UnityEngine.Random;
54

65
namespace CleverCrow.Fluid.BTs.Samples {
76
public class DecoratorRepeatWithWait : MonoBehaviour {
87
[SerializeField]
98
private BehaviorTree _tree;
109

10+
[Tooltip("Setting to success will cause the task to succeed")]
1111
[SerializeField]
12-
private bool _toggle;
12+
private bool _isTaskSuccess;
1313

1414
void Start () {
1515
_tree = new BehaviorTreeBuilder(gameObject)
1616
.RepeatForever()
1717
.Parallel()
1818

1919
.Sequence()
20-
.Do(() => {
21-
_toggle = true;
22-
return TaskStatus.Success;
23-
})
20+
.Do(() => TaskStatus.Success)
2421
.WaitTime()
25-
.Do(() => {
26-
_toggle = false;
27-
return TaskStatus.Success;
28-
})
22+
.Do(() => TaskStatus.Success)
2923
.WaitTime()
3024
.End()
3125

32-
.Sequence()
26+
.Sequence("Repeat until success is checked")
3327
.Do(() => TaskStatus.Success)
3428
.RepeatUntilSuccess()
3529
.Sequence()
3630
.WaitTime()
37-
.Do(() => Random.value > 0.5f ? TaskStatus.Success : TaskStatus.Failure)
31+
.Do(() => _isTaskSuccess ? TaskStatus.Success : TaskStatus.Failure)
3832
.End()
3933
.End()
4034
.End()
File renamed without changes.

0 commit comments

Comments
 (0)