Skip to content

Commit

Permalink
Merge pull request #25 from BastianBlokland/feature/example-comments
Browse files Browse the repository at this point in the history
Feature/example comments
  • Loading branch information
BastianBlokland authored Apr 22, 2019
2 parents 419e97b + 3523a86 commit b0b5421
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion example/Example.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<None Update="brain.tree.json" CopyToOutputDirectory="PreserveNewest" />

<!-- Tools -->
<DotNetCliToolReference Include="TypedTree.Generator.Cli" Version="*" />
<DotNetCliToolReference Include="TypedTree.Generator.Cli" Version="1.1.*" />

</ItemGroup>

Expand Down
9 changes: 8 additions & 1 deletion example/brain.treescheme.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"nodes": [
{
"nodeType": "Example.Ai.Inverter",
"comment": "Invert the result of the child.\n",
"fields": [
{
"name": "child",
Expand All @@ -41,10 +42,12 @@
},
{
"nodeType": "Example.Ai.MatchAnyNumber",
"comment": "Returns successfull if the user typed any number.\n",
"fields": []
},
{
"nodeType": "Example.Ai.MatchNumber",
"comment": "Returns successful if the user typed a specific number.\n",
"fields": [
{
"name": "number",
Expand All @@ -54,6 +57,7 @@
},
{
"nodeType": "Example.Ai.MatchString",
"comment": "Returns successful if the user typed a specific string.\n",
"fields": [
{
"name": "text",
Expand All @@ -67,6 +71,7 @@
},
{
"nodeType": "Example.Ai.Say",
"comment": "Print given text to the console.\nWill wait for given time before continuing.\n",
"fields": [
{
"name": "text",
Expand All @@ -80,6 +85,7 @@
},
{
"nodeType": "Example.Ai.Selector",
"comment": "Executes child nodes, will stop at the first child that returns successful.\n",
"fields": [
{
"name": "children",
Expand All @@ -90,6 +96,7 @@
},
{
"nodeType": "Example.Ai.Sequence",
"comment": "Executes child nodes, will stop at the first child that returns failure.\n",
"fields": [
{
"name": "children",
Expand All @@ -99,4 +106,4 @@
]
}
]
}
}
2 changes: 1 addition & 1 deletion src/TypedTree.Generator.Cli/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Can be used to generate scheme files for the [**TypedTree-Editor**](https://bast

Add a reference to the cli-tool to a `ItemGroup` section your of your csproj.
```xml
<DotNetCliToolReference Include="TypedTree.Generator.Cli" Version="1.0.*" />
<DotNetCliToolReference Include="TypedTree.Generator.Cli" Version="1.1.*" />
```

## Usage
Expand Down
4 changes: 2 additions & 2 deletions src/TypedTree.Generator.Core/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ Can be used for more complex integration into a build pipeline, for simple use-c
There are two ways to add the nuget package:
1. Run:
```bash
dotnet add package TypedTree.Generator.Core --version 1.0.*
dotnet add package TypedTree.Generator.Core --version 1.1.*
```
2. Add the following to a `ItemGroup` section of your csproj:
```xml
<PackageReference Include="TypedTree.Generator.Core" Version="1.0.*" />
<PackageReference Include="TypedTree.Generator.Core" Version="1.1.*" />
```

## Usage
Expand Down

0 comments on commit b0b5421

Please sign in to comment.