Documentation: TeleportComponent
Jump to navigation
Jump to search
Name | Type | Initial Value | Example Range | Description |
---|---|---|---|---|
Members | ||||
target_x_is_absolute_position | bool | false | If set, target position x is in world coordinates, otherwise it's an offset | |
target_y_is_absolute_position | bool | false | If set, target position y is in world coordinates, otherwise it's an offset | |
source_particle_fx_file | std::string | data/entities/particles/teleportation_source.xml | This entity is loaded at the source position when teleportation occurs | |
target_particle_fx_file | std::string | data/entities/particles/teleportation_target.xml | This entity is loaded at the target position when teleportation occurs | |
load_collapse_entity | bool | true | if we don't want things to collapse after the teleport | |
Custom data types | ||||
target | vec2 | (0, 0) | Where should we teleport | |
Privates | ||||
safety_counter | int | 0 | used to keep track that we're not stuck in waiting for a pixel scene to load, that is not going to be loaded | |
state | TeleportComponentState::Enum | |||
teleported_entities | ENTITY_VEC | |||
source_location_camera_aabb | types::aabb | (0, 0) (0, 0) |