FuncGodotEntityAssembler

Entity assembly class that is instantiated by a FuncGodotMap node.

Signals

Signal Description
declare_step Emitted when a step in the entity assembly process is completed. It is connected to FuncGodotUtil's print_profile_info() method if the FuncGodotMap's Show Profiling Info build flag is set.

Methods

Method Description Return type
get_script_by_class_name(name_of_class: String) Attempts to retrieve a script via class name, to allow for GDScript class instantiation. Script
generate_group_node(group_data: GroupData) Generates a Node3D for a group's SceneTree representation and links the new Node3D to that group. Node3D
generate_solid_entity_node(node: Node, node_name: String, data: EntityData, definition: FuncGodotFGDSolidClass) Generates and assembles a new Node based upon processed entity data. Depending upon provided data, additional MeshInstance3D, CollisionShape3D, and OccluderInstance3D nodes may also be generated. Node
generate_point_entity_node(node: Node, node_name: String, properties: Dictionary, definition: FuncGodotFGDPointClass) Generates and assembles a new Node or PackedScene based upon processed entity data. Node
apply_entity_properties(node: Node, data: EntityData) Converts the String values of the entity data's properties Dictionary to various Variant formats based upon the entity definition's class properties, then attempts to send those properties to a func_godot_properties Dictionary and an apply_func_godot_properties() method on the node. A deferred call to build_complete() is also made. Void
generate_entity_node(entity_data: EntityData, entity_index: int) Generate a node from entity data. The returned node value can be null, in the case of Solid Class entities with no brush data. Error
build(map_node: FuncGodotMap, entities: Array[EntityData], groups: Array[GroupData]) Main entity assembly process called by the map node. Generates and sorts group nodes in the SceneTree first. Then generates and assembles nodes based upon the provided entity data and adds them to the SceneTree. Error