Skip to content

Release #105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 56 commits into from
Nov 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
36ee899
chore(release): 2.2.3 [skip ci]
semantic-release-bot Mar 24, 2021
8564210
fix(builds): node version now pulls from .nvmrc
ashblue Mar 24, 2021
c04b55b
chore(release): 2.2.3 [skip ci]
semantic-release-bot Mar 24, 2021
c08fab1
chore(funding): added FUNDING.yml
ashblue Mar 24, 2021
ea2a6fc
chore(git): removed code from `master` that leaked into `develop`
ashblue Mar 27, 2021
c612443
Merge pull request #51 from ashblue/feature/remove-master-overwrites
ashblue Mar 27, 2021
c9ac8cc
fix(conditions): generic condition had exit and init reversed
hookSSi Mar 30, 2021
23a6c8e
chore(deps): bump y18n from 3.2.1 to 3.2.2
dependabot[bot] Mar 30, 2021
0a1ab44
Merge pull request #55 from ashblue/dependabot/npm_and_yarn/y18n-3.2.2
ashblue Apr 2, 2021
b8815f7
docs: update README.md [skip ci]
allcontributors[bot] Apr 2, 2021
3d1261e
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Apr 2, 2021
4f5a2a9
Merge branch 'develop' into feature/condition-generic-exit-init-bug
hookSSi Apr 2, 2021
11a6b15
Merge pull request #54 from hookSSi/feature/condition-generic-exit-in…
ashblue Apr 4, 2021
1f5d78e
Merge branch 'develop' into all-contributors/add-hookSSi
ashblue Apr 4, 2021
8531c71
Merge pull request #56 from ashblue/all-contributors/add-hookSSi
ashblue Apr 4, 2021
b5d1682
docs: update FUNDING.yml
ashblue Apr 7, 2021
e4dd73a
chore(oyster): config file added
ashblue Jun 1, 2021
d6d6f12
build(oyster): upgraded to version 2.1.0 and upgraded Unity to 2021.1
ashblue Jun 2, 2021
94ee729
Merge pull request #59 from ashblue/feature/upgrade-oyster-to-v2
ashblue Jun 2, 2021
4555e0c
chore(deps): bump node-fetch from 2.6.0 to 2.6.7
dependabot[bot] Jan 22, 2022
16aa9d9
Merge pull request #68 from ashblue/dependabot/npm_and_yarn/node-fetc…
ashblue Mar 2, 2022
e95abe4
chore(deps): bump async from 3.2.0 to 3.2.3
dependabot[bot] May 16, 2022
4a5f0d4
Merge pull request #70 from ashblue/dependabot/npm_and_yarn/async-3.2.3
ashblue May 17, 2022
714b4a8
chore(deps): bump semver-regex from 3.1.3 to 3.1.4
dependabot[bot] Jun 4, 2022
c50d0ea
Merge pull request #72 from ashblue/dependabot/npm_and_yarn/semver-re…
ashblue Jun 5, 2022
45f5620
fix(assetpath.cs): retarget PATH_PROJECT
Jan 16, 2023
0aa8d98
Merge pull request #72 from ashblue/dependabot/npm_and_yarn/semver-re…
TNThomas Jan 17, 2023
7078ec0
Merge pull request #80 from TNThomas/feature/79-PATH_PROJECT-in-Asset…
ashblue Jan 17, 2023
992bb44
docs: update README.md [skip ci]
allcontributors[bot] Jan 17, 2023
ed77481
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Jan 17, 2023
f1de0c7
Merge pull request #84 from ashblue/all-contributors/add-TNThomas
ashblue Jan 22, 2023
7c9b09b
docs: explained how to disable formatting
ashblue Jan 24, 2024
8ce9472
chore(unity 2023 upgrade): bumped version and fixed warnings
ashblue Nov 2, 2024
d530578
ci(oyster package generator): upgraded to latest version to fix CI is…
ashblue Nov 2, 2024
9d8dc6a
Merge pull request #96 from ashblue/feature/version-upgrade
ashblue Nov 2, 2024
b3dd08f
fix(dark mode): boxes keep proper color in dark mode for the visualizer
ashblue Nov 9, 2024
321e47e
fix(visualizer): vertically connected nodes now connect properly
ashblue Nov 9, 2024
ffdb515
docs: update README.md [skip ci]
allcontributors[bot] Nov 9, 2024
2c88df2
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Nov 9, 2024
244a9ed
Merge pull request #97 from ashblue/feature/dark-mode-fix
ashblue Nov 9, 2024
1bb8cac
Merge branch 'develop' into all-contributors/add-Ownez
ashblue Nov 9, 2024
6e1642c
Merge pull request #98 from ashblue/all-contributors/add-Ownez
ashblue Nov 9, 2024
aa819e1
docs: update README.md [skip ci]
allcontributors[bot] Nov 9, 2024
0adb428
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Nov 9, 2024
a2cfd1a
Merge pull request #101 from ashblue/all-contributors/add-angstr0m
ashblue Nov 9, 2024
786c76a
docs: update README.md [skip ci]
allcontributors[bot] Nov 9, 2024
4413bbe
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Nov 9, 2024
a97f7c0
Merge pull request #102 from ashblue/all-contributors/add-darkgnostic
ashblue Nov 9, 2024
b031653
feat(visualizer): pausing the game now keeps active node highlighting
ashblue Nov 9, 2024
8cb8e09
docs: update README.md [skip ci]
allcontributors[bot] Nov 9, 2024
51eae81
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Nov 9, 2024
9fb50d0
Merge pull request #103 from ashblue/feature/keep-visualizer-alive-on…
ashblue Nov 9, 2024
4fbae7d
Merge branch 'develop' into all-contributors/add-JeremyVansnick
ashblue Nov 9, 2024
4d7faa8
Merge pull request #104 from ashblue/all-contributors/add-JeremyVansnick
ashblue Nov 9, 2024
dac5605
Merge branch 'master' of github.com:ashblue/fluid-behavior-tree into …
ashblue Nov 9, 2024
e1d3c08
Merge pull request #106 from ashblue/feature/master-fix
ashblue Nov 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 58 additions & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,64 @@
"contributions": [
"code"
]
},
{
"login": "hookSSi",
"name": "Sounghoo",
"avatar_url": "https://avatars.githubusercontent.com/u/12372136?v=4",
"profile": "https://github.com/hookSSi",
"contributions": [
"code"
]
},
{
"login": "TNThomas",
"name": "TNThomas",
"avatar_url": "https://avatars.githubusercontent.com/u/9881915?v=4",
"profile": "https://github.com/TNThomas",
"contributions": [
"bug",
"code"
]
},
{
"login": "Ownez",
"name": "Ownez",
"avatar_url": "https://avatars.githubusercontent.com/u/10993641?v=4",
"profile": "https://github.com/Ownez",
"contributions": [
"code"
]
},
{
"login": "angstr0m",
"name": "angstr0m",
"avatar_url": "https://avatars.githubusercontent.com/u/733176?v=4",
"profile": "https://github.com/angstr0m",
"contributions": [
"bug"
]
},
{
"login": "darkgnostic",
"name": "Izzy",
"avatar_url": "https://avatars.githubusercontent.com/u/4980221?v=4",
"profile": "https://github.com/darkgnostic",
"contributions": [
"bug"
]
},
{
"login": "JeremyVansnick",
"name": "JeremyVansnick",
"avatar_url": "https://avatars.githubusercontent.com/u/23563794?v=4",
"profile": "https://github.com/JeremyVansnick",
"contributions": [
"code"
]
}
],
"contributorsPerLine": 7
"contributorsPerLine": 7,
"skipCi": true,
"commitType": "docs"
}
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ trim_trailing_whitespace = true
[*.md]
max_line_length = off
trim_trailing_whitespace = false

[manifest.json]
indent_size = 2
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
github: ashblue
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: ashblue
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Lint Commit Messages
on: [pull_request]

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v5
21 changes: 21 additions & 0 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Nightly Build
permissions:
contents: write
on:
push:
branches:
- develop
jobs:
deployNightly:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: HUSKY=0 npm ci
- run: npm run build
- name: Deploy nightly branch
run: sh ./publish-nightly.sh
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40 changes: 40 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release

on:
push:
branches:
- main
- master

permissions:
contents: read

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: HUSKY=0 npm ci && npm run build
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run semantic-release
49 changes: 41 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,30 @@
[Ll]ibrary/
[Tt]emp/
[Oo]bj/
[Bb]uild/
[Bb]uilds/
Assets/AssetStoreTools*
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/[Ll]ogs/
/[Uu]ser[Ss]ettings/
CodeCoverage/
UIElementsSchema/

# MemoryCaptures can get excessive in size.
# They also could contain extremely sensitive data
/[Mm]emoryCaptures/

# Recordings can get excessive in size
/[Rr]ecordings/

/[Aa]ssets/AssetStoreTools*

# Autogenerated Jetbrains Rider plugin
/[Aa]ssets/Plugins/Editor/JetBrains*

# Visual Studio cache directory
/.vs/
.vs/

# Gradle cache directory
.gradle/

# Autogenerated VS/MD/Consulo solution and project files
ExportedObj/
Expand All @@ -22,18 +40,33 @@ ExportedObj/
*.booproj
*.svd
*.pdb
*.mdb
*.opendb
*.VC.db

# Unity3D generated meta files
*.pidb.meta
*.pdb.meta
*.mdb.meta

# Unity3D Generated File On Crash Reports
sysinfo.txt

# Builds
*.apk
*.aab
*.unitypackage
/Logs/Packages-Update.log
*.app

# Crashlytics generated file
crashlytics-build.properties

# Packed Addressables
/[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin*

# Temporary auto-generated Android Assets
/[Aa]ssets/[Ss]treamingAssets/aa.meta
/[Aa]ssets/[Ss]treamingAssets/aa/*

# Node.js
node_modules
Expand Down
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit ${1}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v12.9.1
16.17.0
22 changes: 22 additions & 0 deletions .oyster.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"description": "A micro-framework for creating Behavior Trees based upon the builder pattern",
"displayName": "Fluid Behavior Tree",
"keywords": [
"ai",
"behavior tree",
"builder pattern"
],
"oysterVersion": "3.0.2",
"packageName": "com.fluid.behavior-tree",
"packageScope": "com.fluid",
"unityVersion": "2018.1",
"author": {
"name": "Ash Blue",
"email": "[email protected]",
"url": "https://twitter.com/ashbluewd"
},
"repo": {
"gitUrl": "https://github.com/ashblue/fluid-behavior-tree",
"gitUrlNoHttp": "github.com/ashblue/fluid-behavior-tree"
}
}
26 changes: 16 additions & 10 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,36 @@
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
[
"@semantic-release/exec",
{
"verifyConditionsCmd": "npm run build",
"prepareCmd": "npm run build"
"publishCmd": "npm run build"
}
],
"@semantic-release/git",
[
"@semantic-release/npm",
{
"pkgRoot": "dist"
"pkgRoot": "Assets/com.fluid.behavior-tree"
}
],
[
"@semantic-release/github",
"@semantic-release/git",
{
"assets": [
{
"path": "dist.zip",
"label": "Package Build"
}
"CHANGELOG.md",
"package.json",
"package-lock.json",
"npm-shrinkwrap.json",
"Assets/**/*"
]
}
]
],
"@semantic-release/github"
]
}
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

8 changes: 8 additions & 0 deletions Assets/Resources.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Assets/Resources/BillingMode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"androidStore":"GooglePlay"}
7 changes: 7 additions & 0 deletions Assets/Resources/BillingMode.json.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 6 additions & 12 deletions Assets/Samples/DecoratorRepeatWithWait.cs
Original file line number Diff line number Diff line change
@@ -1,40 +1,34 @@
using CleverCrow.Fluid.BTs.Tasks;
using CleverCrow.Fluid.BTs.Trees;
using UnityEngine;
using Random = UnityEngine.Random;

namespace CleverCrow.Fluid.BTs.Samples {
public class DecoratorRepeatWithWait : MonoBehaviour {
[SerializeField]
private BehaviorTree _tree;

[Tooltip("Setting to success will cause the task to succeed")]
[SerializeField]
private bool _toggle;
private bool _isTaskSuccess;

void Start () {
_tree = new BehaviorTreeBuilder(gameObject)
.RepeatForever()
.Parallel()

.Sequence()
.Do(() => {
_toggle = true;
return TaskStatus.Success;
})
.Do(() => TaskStatus.Success)
.WaitTime()
.Do(() => {
_toggle = false;
return TaskStatus.Success;
})
.Do(() => TaskStatus.Success)
.WaitTime()
.End()

.Sequence()
.Sequence("Repeat until success is checked")
.Do(() => TaskStatus.Success)
.RepeatUntilSuccess()
.Sequence()
.WaitTime()
.Do(() => Random.value > 0.5f ? TaskStatus.Success : TaskStatus.Failure)
.Do(() => _isTaskSuccess ? TaskStatus.Success : TaskStatus.Failure)
.End()
.End()
.End()
Expand Down
File renamed without changes.
Loading
Loading