libgdx / gdx-ai

Artificial Intelligence framework for games based on libGDX or not. Features: Steering Behaviors, Formation Motion, Pathfinding, Behavior Trees and Finite State Machines
Apache License 2.0
1.18k stars 241 forks source link

@TaskAttribute for enums does not work #103

Closed benoit-dubreuil closed 6 years ago

benoit-dubreuil commented 6 years ago

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

Version of gdx-ai and/or relevant dependencies

1.8.1 and 1.8.2-SNAPSHOT

I also made a stackoverflow question for that.

benoit-dubreuil commented 6 years ago

Sorry, I had forgotten to copy the task. I should go to sleep.