Following along the tutorial but hit a snag at part 6
Having issues with exporting enum
Debating creating an AiComponentDefinition to see if I can get it to work that way, but would like to know if anyone else ran into issues here?
Snippet of entity_definition.gd
class_name EntityDefinition
extends Resource
.
.
.
@export_category("Components")
@export var fighter_definition: FighterComponentDefinition
# variable refers to an enum
@export var ai_type: Entity.AIType
Snippet of entity.gd
class_name Entity
extends Sprite2D
.
.
.
# two types of AI
enum AIType {NONE, HOSTILE}
Getting the following error at entity_definition.gd:
You can see that my entity_definition_orc.tres only has the one parameter for components
If this should have gone in discussions instead let me know
Following along the tutorial but hit a snag at part 6 Having issues with exporting enum Debating creating an
AiComponentDefinition
to see if I can get it to work that way, but would like to know if anyone else ran into issues here?Snippet of entity_definition.gd
Snippet of entity.gd
Getting the following error at
entity_definition.gd
:You can see that my
entity_definition_orc.tres
only has the one parameter for componentsIf this should have gone in discussions instead let me know