Skip to content

class_WorldECS

GodexBot edited this page Feb 8, 2021 · 1 revision

This file is automatically generated. To make changes, please edit the corresponding XML file in the doc_classes/ folder instead.

WorldECS

Scripting API: Please edit XML with descriptions.

Properties

Methods

Property Descriptions

  • StringName active_pipeline
Default @""
Setter set_active_pipeline(value)
Getter get_active_pipeline()

  • Dictionary system_dispatchers_map
Default {}
Setter set_system_dispatchers_map(value)
Getter get_system_dispatchers_map()

Method Descriptions

  • void add_component ( int component_id, int data, Dictionary arg2 )

Add a component to an Entity of this world.

func _ready():

add_component(ECS.TransformComponent, 0)

  • void add_component_by_name ( int component_name, StringName data, Dictionary arg2 )

Add a component to an Entity of this world, by name.

func _ready():

add_component("TransformComponent", 0)


  • int create_entity ( )

  • int create_entity_from_prefab ( Object entity_node )

  • void destroy_entity ( int entity_id )

  • Object get_databag ( int databag_name )

  • Object get_databag_by_name ( StringName databag_name )

  • Object get_entity_component ( int entity_id, int component_id )

  • Object get_entity_component_by_name ( int entity_id, StringName component_name )

  • bool has_entity_component ( int entity_id, int component_id )

  • bool has_entity_component_by_name ( int entity_id, StringName component_name )

  • void remove_component ( int component_id, int data )

  • void remove_component_by_name ( int component_name, StringName data )


  • void set_system_dispatchers_pipeline ( StringName arg0, StringName arg1 )