Artificial Intelligence framework for games based on libGDX or not. Features: Steering Behaviors, Formation Motion, Pathfinding, Behavior Trees and Finite State Machines
Please ensure you have given all the following requested information in your report.
Issue details
@TaskAttribute for enums does not work in the sense that any good value does not work. For exemple, let's suppose I was the one who created the Parallel task. I would add a public member variable named policy with the @TaskAttribute annotation. Then, to use it in a text file, I would import the class and specify if needed the policy variable like so : Parallel policy:"selector". "selector" is a good enum value.
Now, imagine the same problem but with a custom class that I made. Parallel actually works, I just
needed it to demonstrate the problem.
Reproduction steps/code
Create a custom LeafTask
Add an enum task attribute
@TaskAttribute
public AnimationConvention animation;
Set it in a text file
import ...
# ...
playAnimation animation:"attack"
Notice that it's null by default, unless it was set in the constructor.
Please ensure you have given all the following requested information in your report.
Issue details
@TaskAttribute for enums does not work in the sense that any good value does not work. For exemple, let's suppose I was the one who created the Parallel task. I would add a public member variable named policy with the @TaskAttribute annotation. Then, to use it in a text file, I would import the class and specify if needed the policy variable like so : Parallel policy:"selector". "selector" is a good enum value.
Now, imagine the same problem but with a custom class that I made. Parallel actually works, I just needed it to demonstrate the problem.
Reproduction steps/code
Create a custom LeafTask
Add an enum task attribute
Set it in a text file
Notice that it's null by default, unless it was set in the constructor.
Version of gdx-ai and/or relevant dependencies
1.8.1 and 1.8.2-SNAPSHOT
I also made a stackoverflow question for that.