Elaztek Developer Hub
Blamite Game Engine - blam!  00453.06.08.26.0624.blamite
The core library for the Blamite Game Engine.
scenario Struct Reference

#include <scenario.h>

+ Collaboration diagram for scenario:

Public Member Functions

 TAG_ENUM (type, { solo, multiplayer, main_menu, multiplayer_shared, singleplayer_shared, })
 
 TAG_BLOCK (primitives, { int32_t folder_id;data_reference name;data_reference description;TAG_ENUM(type, { cuboid, cylinder, });tag_reference material_override;vector3 position;vector3 rotation;vector3 scale;vector2 cylinder_radius;int32_t cylinder_resolution;})
 List of primitive objects contained within the scenario. More...
 
 TAG_BLOCK (render_models, { int32_t palette_index;int32_t folder_index;data_reference name;struct bitfield16_placement_flags { bool unused0 :1;bool unused1 :1;bool unused2 :1;bool unused3 :1;bool unused4 :1;bool unused5 :1;bool unused6 :1;bool unused7 :1;bool unused8 :1;bool unused9 :1;bool unused10 :1;bool unused11 :1;bool unused12 :1;bool unused13 :1;bool unused14 :1;bool unused15 :1;};bitfield16_placement_flags placement_flags;vector3 transform;vector3 rotation;vector3 scale;})
 
 TAG_BLOCK (render_models_palette, { tag_reference tag;})
 
 TAG_BLOCK (lights, { int32_t palette_index;int32_t folder_index;data_reference name;struct bitfield16_placement_flags { bool unused0 :1;bool unused1 :1;bool unused2 :1;bool unused3 :1;bool unused4 :1;bool unused5 :1;bool unused6 :1;bool unused7 :1;bool unused8 :1;bool unused9 :1;bool unused10 :1;bool unused11 :1;bool unused12 :1;bool unused13 :1;bool unused14 :1;bool unused15 :1;};bitfield16_placement_flags placement_flags;vector3 transform;vector3 rotation;vector3 scale;})
 
 TAG_BLOCK (lights_palette, { tag_reference tag;})
 
 TAG_BLOCK (cameras, { int32_t palette_index;int32_t folder_index;data_reference name;struct bitfield16_placement_flags { bool active_camera :1;bool unused1 :1;bool unused2 :1;bool unused3 :1;bool unused4 :1;bool unused5 :1;bool unused6 :1;bool unused7 :1;bool unused8 :1;bool unused9 :1;bool unused10 :1;bool unused11 :1;bool unused12 :1;bool unused13 :1;bool unused14 :1;bool unused15 :1;};bitfield16_placement_flags placement_flags;vector3 transform;vector3 rotation;vector3 scale;})
 
 TAG_BLOCK (cameras_palette, { tag_reference tag;})
 
 TAG_BLOCK (tilemaps, { int32_t palette_index;int32_t folder_index;data_reference name;struct bitfield16_placement_flags { bool unused0 :1;bool unused1 :1;bool unused2 :1;bool unused3 :1;bool unused4 :1;bool unused5 :1;bool unused6 :1;bool unused7 :1;bool unused8 :1;bool unused9 :1;bool unused10 :1;bool unused11 :1;bool unused12 :1;bool unused13 :1;bool unused14 :1;bool unused15 :1;};bitfield16_placement_flags placement_flags;vector2 position;})
 
 TAG_BLOCK (tilemaps_palette, { tag_reference tag;})
 
 TAG_BLOCK (project_folders, { struct bitfield8_flags { bool has_parent_folder :1;bool unused1 :1;bool unused2 :1;bool unused3 :1;bool unused4 :1;bool unused5 :1;bool unused6 :1;bool unused7 :1;};bitfield8_flags flags;int32_t folder_id;int32_t parent_folder_id;data_reference folder_name;})
 Contains information about project folders. More...
 

Public Attributes

tag_reference atmosphere
 
vector3 saved_camera_position
 
vector3 saved_camera_rotation
 

Member Function Documentation

◆ TAG_BLOCK() [1/10]

scenario::TAG_BLOCK ( cameras  ,
{ int32_t palette_index;int32_t folder_index;data_reference name;struct bitfield16_placement_flags { bool active_camera :1;bool unused1 :1;bool unused2 :1;bool unused3 :1;bool unused4 :1;bool unused5 :1;bool unused6 :1;bool unused7 :1;bool unused8 :1;bool unused9 :1;bool unused10 :1;bool unused11 :1;bool unused12 :1;bool unused13 :1;bool unused14 :1;bool unused15 :1;};bitfield16_placement_flags placement_flags;vector3 transform;vector3 rotation;vector3 scale;}   
)

◆ TAG_BLOCK() [2/10]

scenario::TAG_BLOCK ( cameras_palette  ,
{ tag_reference tag;}   
)

◆ TAG_BLOCK() [3/10]

scenario::TAG_BLOCK ( lights  ,
{ int32_t palette_index;int32_t folder_index;data_reference name;struct bitfield16_placement_flags { bool unused0 :1;bool unused1 :1;bool unused2 :1;bool unused3 :1;bool unused4 :1;bool unused5 :1;bool unused6 :1;bool unused7 :1;bool unused8 :1;bool unused9 :1;bool unused10 :1;bool unused11 :1;bool unused12 :1;bool unused13 :1;bool unused14 :1;bool unused15 :1;};bitfield16_placement_flags placement_flags;vector3 transform;vector3 rotation;vector3 scale;}   
)

◆ TAG_BLOCK() [4/10]

scenario::TAG_BLOCK ( lights_palette  ,
{ tag_reference tag;}   
)

◆ TAG_BLOCK() [5/10]

scenario::TAG_BLOCK ( primitives  ,
{ int32_t folder_id;data_reference name;data_reference description;TAG_ENUM(type, { cuboid, cylinder, });tag_reference material_override;vector3 position;vector3 rotation;vector3 scale;vector2 cylinder_radius;int32_t cylinder_resolution;}   
)

List of primitive objects contained within the scenario.

◆ TAG_BLOCK() [6/10]

scenario::TAG_BLOCK ( project_folders  ,
{ struct bitfield8_flags { bool has_parent_folder :1;bool unused1 :1;bool unused2 :1;bool unused3 :1;bool unused4 :1;bool unused5 :1;bool unused6 :1;bool unused7 :1;};bitfield8_flags flags;int32_t folder_id;int32_t parent_folder_id;data_reference folder_name;}   
)

Contains information about project folders.

Only used within the editor.

◆ TAG_BLOCK() [7/10]

scenario::TAG_BLOCK ( render_models  ,
{ int32_t palette_index;int32_t folder_index;data_reference name;struct bitfield16_placement_flags { bool unused0 :1;bool unused1 :1;bool unused2 :1;bool unused3 :1;bool unused4 :1;bool unused5 :1;bool unused6 :1;bool unused7 :1;bool unused8 :1;bool unused9 :1;bool unused10 :1;bool unused11 :1;bool unused12 :1;bool unused13 :1;bool unused14 :1;bool unused15 :1;};bitfield16_placement_flags placement_flags;vector3 transform;vector3 rotation;vector3 scale;}   
)

◆ TAG_BLOCK() [8/10]

scenario::TAG_BLOCK ( render_models_palette  ,
{ tag_reference tag;}   
)

◆ TAG_BLOCK() [9/10]

scenario::TAG_BLOCK ( tilemaps  ,
{ int32_t palette_index;int32_t folder_index;data_reference name;struct bitfield16_placement_flags { bool unused0 :1;bool unused1 :1;bool unused2 :1;bool unused3 :1;bool unused4 :1;bool unused5 :1;bool unused6 :1;bool unused7 :1;bool unused8 :1;bool unused9 :1;bool unused10 :1;bool unused11 :1;bool unused12 :1;bool unused13 :1;bool unused14 :1;bool unused15 :1;};bitfield16_placement_flags placement_flags;vector2 position;}   
)

◆ TAG_BLOCK() [10/10]

scenario::TAG_BLOCK ( tilemaps_palette  ,
{ tag_reference tag;}   
)

◆ TAG_ENUM()

scenario::TAG_ENUM ( type  ,
{ solo, multiplayer, main_menu, multiplayer_shared, singleplayer_shared, }   
)

Member Data Documentation

◆ atmosphere

tag_reference scenario::atmosphere

◆ saved_camera_position

vector3 scenario::saved_camera_position

◆ saved_camera_rotation

vector3 scenario::saved_camera_rotation

The documentation for this struct was generated from the following file: