 |
Blamite Game Engine - blam!
00423.10.27.24.0533.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
115 {1,
"haloman30",
"Initial implementation."},
116 {2,
"haloman30",
"Added 'project folders' block."},
117 {3,
"haloman30",
"Replaced several real values with vectors."},
118 {4,
"haloman30",
"Add support for material overrides for primitives"},
131 "multiplayer shared",
132 "singleplayer shared",
134 new BlockField(41,
"project folders",
"Contains information about project folders. Only used within the editor.",
136 new Bitfield8Field(
"flags",
"List of flags that apply to this folder.",
140 new Int32Field(
"folder id",
"The ID of this folder."),
141 new Int32Field(
"parent folder id",
"The ID of this folder's parent folder, if applicable."),
144 new BlockField(152,
"primitives",
"List of primitive objects contained within the scenario.",
146 new Int32Field(
"folder id",
"the folder id that this primitive exists within. set to -1 to have no parent"),
149 new Enum32Field(
"type",
"The type of this primitive.",
177 new BlockField(32,
"render models palette",
"",
TAG_ENUM(type, { solo, multiplayer, main_menu, multiplayer_shared, singleplayer_shared, })
BLAM BlamWorldState * GetWorldState()
Retrieves the current world state.
Definition: world.cpp:40
int editor_folder_id
The editor folder that this object exists within. Only used within the editing kit.
Definition: world_objects.h:140
void AddObject(BlamWorldObject *object)
Definition: BlamWorldState.cpp:85
#define BLAM
Definition: scenario.h:19
Namespace containing functions related to tag data.
Definition: bitmap.h:197
ScenarioTagClass()
Definition: scenario.h:108
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:130
std::string GetTagPath()
Retrieves the path of the tag that this tagref refers to.
Definition: tag_reference.cpp:52
BlamTagData * active_scenario_tag_data
Definition: scenario.cpp:10
Class representing a vector2 tag field.
Definition: vector.h:34
float radius_0
The radius of the primitive. Only used in cylinders.
Definition: world_objects.h:373
char path[256]
The tag's path.
Definition: tags.h:143
void SetName(std::string name)
Definition: BlamWorldObject.cpp:248
BLAM BlamResult LoadTagFromFile(std::string tag_path, bool reload_if_already_loaded=true)
Loads a tag from the engine's tag directory (default is '.
Definition: tag_io.cpp:319
Class representing a data reference, or dataref for short.
Definition: dataref.h:19
Class representing a vector3 tag field.
Definition: vector.h:47
Definition: scenario.h:105
Class representing a bitfield16 tag field.
Definition: bitfield.h:44
BLAM scenario * GetActiveScenarioTag()
Retrieves the currently loaded scenario tag.
Definition: scenario.cpp:140
Definition: scenario.h:25
Class representing a tag reference, or tagref for short.
Definition: tagref.h:20
Class representing a tag-based world object.
Definition: world_objects.h:223
std::vector< BlamTagClassField * > fields
A series of tag fields that store the layout of the tag.
Definition: tags.h:200
Typedef for a bitfield8 field, used in tag data definitions.
Definition: tags.h:344
scenario * active_scenario_tag
Definition: scenario.cpp:9
BLAM bool NeedsWorldStateUpdate()
Checks if the world state needs to be re-prepared.
Definition: scenario.cpp:13
int resolution
The level of detail to use for the primitive. Only used in cylinders.
Definition: world_objects.h:375
std::vector< BlamTagClassRevision > revisions
List of all tag class revisions. Does not get written to tags, but is included in plugin files.
Definition: tags.h:199
int int32_t
Definition: stdint.h:13
Definition: world_objects.h:361
float radius_1
A secondary radius of the primitive. Only used in cylinders.
Definition: world_objects.h:374
std::string class_name_short
The short, 4-character name of the tag class.
Definition: tags.h:197
int version
The tag class version. Should be incremented any time a tag class is modified whatsoever.
Definition: tags.h:198
Structure representing a tag reference.
Definition: tags.h:277
std::string class_name_long
The longer class name. Typically shown alongside short name for user-friendliness.
Definition: tags.h:196
BLAM BlamTagData * GetTagData(std::string tag_path)
Retrieves information for a given tag.
Definition: tags.cpp:80
Class representing a primitive-based world object.
Definition: world_objects.h:268
BLAM void LoadScenarioTag(std::string tag_path)
Loads a new scenario tag.
Definition: scenario.cpp:145
Definition: world_objects.h:321
Class representing an int32 tag field.
Definition: int.h:46
Typedef for a bitfield16 field, used in tag data definitions.
Definition: tags.h:359
Structure representing a data reference.
Definition: tags.h:323
BLAM void PrepareNewWorldState()
Prepares a new world state.
Definition: scenario.cpp:18
bool HasReference()
Checks if a tag reference has a tag specified or not.
Definition: tag_reference.cpp:76
void SetPosition(BlamVector3 position)
Definition: BlamWorldObject.cpp:189
int tag_size
The size of the tag's data. Used on loading/writing tag files.
Definition: tags.h:201
BLAM void InitializeEmptyWorldState()
Initializes a new world state with no default objects.
Definition: world.cpp:19
void SetScale(BlamVector3 scale)
Definition: BlamWorldObject.cpp:205
BLAM void CleanupTagData()
Releases all memory used by tags.
Definition: tags.cpp:135
void * address
The address pointing to the start of the tag's data.
Definition: tags.h:130
TAG_BLOCK(project_folders, { bitfield8 flags;int32_t folder_id;int32_t parent_folder_id;data_reference folder_name;})
Contains information about project folders.
Class used to contain and access tag data.
Definition: tags.h:124
BLAM scenario * GetScenarioTag(std::string tag_path)
Definition: scenario.cpp:16
Class representing a tag block field, also sometimes referred to as a struct or reflexive in the modd...
Definition: block.h:19
void SetRotation(BlamVector3 _rotation, bool local_axes=false)
Definition: BlamWorldObject.cpp:151
Class representing a world state.
Definition: world_objects.h:540
bool needs_new_world_state
Definition: scenario.cpp:11
Class representing a tag class.
Definition: tags.h:193
std::string description
An optional description of this object.
Definition: world_objects.h:139
Class representing a bitfield8 tag field.
Definition: bitfield.h:33