- audio_player player;
- audio_clip temp_embedded_clip;
- }
- * audio_things;
- u32 audio_things_count;
-
- /*
- * Relays
- */
- struct logic_relay
- {
- v3f pos;
-
- struct relay_target
- {
- u32 sub_id;
- enum classtype classtype;
- }
- targets[4];
- u32 target_count;
- }
- * logic_relays;
- u32 relay_count;
-
- /*
- * Box trigger entities
- */
- struct trigger_zone
- {
- m4x3f transform, inv_transform;
-
- struct relay_target target;
- }
- * triggers;
- u32 trigger_count;
-
- /*
- * Achievements
- */
- struct logic_achievement
- {
- v3f pos;
- const char *achievement_id;
- u32 achieved;
- }
- * logic_achievements;
- u32 achievement_count;
-
- /*
- * Lights
- */
- struct world_light
- {
- mdl_node *node;
- struct classtype_world_light *inf;
-
- /* enabled.. etc?
- * TODO: we should order entities in the binary by their type */
- }
- * lights;
- u32 light_count;
-
- /*
- * Routes (world_routes.h)
- * --------------------------------------------------------------------------
- */
- struct route_node
- {
- v3f co, right, up, h;
- u32 next[2];
-
- u32 special_type, special_id, current_refs, ref_count;
- u32 route_ids[4]; /* Gates can be linked into up to four routes */
- }
- *nodes;
- u32 node_count;
-
- struct route
- {
- u32 track_id;
- v4f colour;
-
- u32 start;
- mdl_submesh sm;
-
- int active;
- float factive;
-
- double best_lap, latest_pass; /* Session */
-
- m4x3f scoreboard_transform;
- }
- *routes;
- u32 route_count;
-
- struct route_gate
- {
- struct teleport_gate
- {
- v3f co[2];
- v4f q[2];
- v2f dims;
-
- m4x3f to_world, transport;
- }
- gate;
-
- u32 node_id;
-
- struct route_timing
- {
- u32 version; /* Incremented on every teleport */
- double time;
- }
- timing;
- }
- *gates;
- u32 gate_count;
-
- struct nonlocal_gate
- {
- struct teleport_gate gate;
- mdl_node *node;
-
- u32 target_map_index, working;
- }
- *nonlocal_gates;
- u32 nonlocalgate_count;
-
- struct route_collector
- {
- struct route_timing timing;
- }
- *collectors;
- u32 collector_count;