Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
File renamed without changes
File renamed without changes
32 changes: 32 additions & 0 deletions .github/workflows/check-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Check package version

on:
pull_request:
branches:
- main
- test

jobs:
check-version:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Get last Git tag
id: tag
run: |
LAST_TAG=$(git describe --tags --abbrev=0 || echo "v0.0.0")
echo "LAST_TAG=$LAST_TAG" >> $GITHUB_ENV

- name: Get package.json version
run: |
VERSION=$(grep '"version"' package.json | head -1 | sed -E 's/.*"version": *"([^"]+)".*/\1/')
echo "VERSION=$VERSION" >> $GITHUB_ENV

- name: Check version increment
run: |
if [ "$VERSION" == "${LAST_TAG#v}" ]; then
echo "Version not incremented! Last tag: $LAST_TAG, package.json: $VERSION"
exit 1
fi
127 changes: 0 additions & 127 deletions Docs/fbt_example.png.meta

This file was deleted.

143 changes: 0 additions & 143 deletions Docs/fbt_icon.png.meta

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![FBT_Logo](Docs/fbt_icon.png)
![FBT_Logo](.docs/fbt_icon.png)

# "Functional Behavior Tree" Design Pattern in C#

Expand Down Expand Up @@ -100,7 +100,7 @@ Key points to note:

As shown in the example code, this implementation is extremely simple, zero allocation and fast and focused purely on logic, making it easy to debug. You can set breakpoints on any anonymous delegate or tree node function. When the execution reaches these breakpoints, the debugger will pause correctly, allowing you to inspect the state at that point.
Here is an illustration of breakpoints in the code:
![Example of debugging](Docs/fbt_example.png)
![Example of debugging](.docs/fbt_example.png)

## Functional Behavior Tree pattern code for Unity

Expand Down
2 changes: 1 addition & 1 deletion Docs.meta → Runtime.meta

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

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 0 additions & 8 deletions Scripts.meta

This file was deleted.

22 changes: 22 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "com.baltin.fbt",
"version": "0.5.0",
"displayName": "FunctionalBT",
"description": "Functional Behavior Tree Design Pattern Implementation",
"unity": "2019.3",
"keywords": ["unity", "tools", "library", "behavior tree", "ai", "npc", "async", "task"],
"author": {
"name": "Dmitry Baltin",
"email": "baltin.dmitry@gmail.com",
"url": "https://github.com/dmitrybaltin/FunctionalBT"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/dmitrybaltin/UnitaskFBT.git"
},
"bugs": {
"url": "https://github.com/dmitrybaltin/FunctionalBT/issues"
},
"homepage": "https://github.com/dmitrybaltin/FunctionalBT"
}
5 changes: 2 additions & 3 deletions examples.meta → package.json.meta

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