AnimationPropertyMapper ​
Inherits: RefCounted
Maps AnimationCoreMap properties to their filesystem folders Used by editors to populate dropdowns and validate animations
Methods ​
Array[Dictionary] | get_trigger_clips( entity_type: String, include_parent: bool = true ) static |
String | get_folder_for_property( property_name: String ) static |
Array[Dictionary] | get_animations_in_folder( entity_type: String, property_name: String, include_parent: bool = true ) static |
Error | create_entity_folder_structure( entity_name: String ) static |
bool | animation_exists( entity_type: String, property_name: String, animation_name: String ) static |
Constants ​
constPROPERTY_FOLDERS ={constFOLDER_STRUCTURE =[- Complete folder structure to create for new entitiesStringTRIGGER_FOLDER ="core/combat_system/triggers"- The folder of the clips of the triggers that have an animation (Trigger Tags > Entity reactions), relative to the entity root
Method descriptions ​
Array[Dictionary] get_trigger_clips( entity_type: String, include_parent: bool = true ) ​
The clips of the trigger animations of an entity type (and its parent's): [{name, is_parent, entity}]
String get_folder_for_property( property_name: String ) ​
Get the folder path for a given property name
Array[Dictionary] get_animations_in_folder( entity_type: String, property_name: String, include_parent: bool = true ) ​
Get all animation files in a property's folder for a specific entity
Error create_entity_folder_structure( entity_name: String ) ​
Create the complete folder structure for a new entity
bool animation_exists( entity_type: String, property_name: String, animation_name: String ) ​
Check if an animation file exists