Skip to content

Commit

Permalink
Merge pull request #105 from ashblue/develop
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
ashblue authored Nov 9, 2024
2 parents ce750b6 + e1d3c08 commit c4a3b5f
Show file tree
Hide file tree
Showing 280 changed files with 12,504 additions and 7,167 deletions.
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit c4a3b5f

Please sign in to comment.