Isle
Loading...
Searching...
No Matches
LegoBuildingInfo Struct Reference

[AI] Describes the state, configuration, and world placement of a single LEGO building entity, including its animation, sound, mood, and boundary location properties. More...

#include <legobuildingmanager.h>

Collaboration diagram for LegoBuildingInfo:

Public Types

enum  { c_hasVariants = 0x01 , c_hasSounds = 0x02 , c_hasMoves = 0x04 , c_hasMoods = 0x08 }
 

Public Attributes

LegoEntitym_entity
 [AI] Associated entity in the world for this building [AI] More...
 
const char * m_variant
 [AI] Name of the building's current variant (model name/ID) [AI] More...
 
MxU32 m_sound
 [AI] Index or ID of current sound selection [AI] More...
 
MxU32 m_move
 [AI] Index or ID of current animation state [AI] More...
 
MxU8 m_mood
 [AI] Current mood index (0-3) [AI] More...
 
MxS8 m_unk0x11
 [AI] Counter or state value for construction/demolition progress [AI] More...
 
MxS8 m_initialUnk0x11
 [AI] Initial value for m_unk0x11, used for state resets or persistence [AI] More...
 
MxU8 m_flags
 [AI] Bitfield of building properties (see enum above) [AI] More...
 
float m_unk0x14
 [AI] World height or vertical offset for this building [AI] More...
 
const char * m_boundaryName
 [AI] Name label of the boundary zone for this building (used to find LegoPathBoundary) [AI] More...
 
float m_x
 [AI] World X coordinate for the building's ground placement [AI] More...
 
float m_y
 [AI] World Y coordinate for the building's ground placement [AI] More...
 
float m_z
 [AI] World Z coordinate for the building's ground placement [AI] More...
 
LegoPathBoundarym_boundary
 [AI] Pointer to the world boundary (collision/trigger volume) [AI] More...
 

Detailed Description

[AI] Describes the state, configuration, and world placement of a single LEGO building entity, including its animation, sound, mood, and boundary location properties.

[AI] This structure is used by LegoBuildingManager to store and manage information for each building in the world. It contains various fields relating to each building's current variant, position, boundary, and behavioral state. [AI]

Definition at line 18 of file legobuildingmanager.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
c_hasVariants 

[AI] This building has multiple variant models (for switching appearance) [AI]

c_hasSounds 

[AI] This building supports multiple sounds [AI]

c_hasMoves 

[AI] This building supports animation cycling [AI]

c_hasMoods 

[AI] This building supports mood changes [AI]

Definition at line 19 of file legobuildingmanager.h.

Member Data Documentation

◆ m_boundary

LegoPathBoundary* LegoBuildingInfo::m_boundary

[AI] Pointer to the world boundary (collision/trigger volume) [AI]

Definition at line 39 of file legobuildingmanager.h.

◆ m_boundaryName

const char* LegoBuildingInfo::m_boundaryName

[AI] Name label of the boundary zone for this building (used to find LegoPathBoundary) [AI]

Definition at line 35 of file legobuildingmanager.h.

◆ m_entity

LegoEntity* LegoBuildingInfo::m_entity

[AI] Associated entity in the world for this building [AI]

Definition at line 26 of file legobuildingmanager.h.

◆ m_flags

MxU8 LegoBuildingInfo::m_flags

[AI] Bitfield of building properties (see enum above) [AI]

Definition at line 33 of file legobuildingmanager.h.

◆ m_initialUnk0x11

MxS8 LegoBuildingInfo::m_initialUnk0x11

[AI] Initial value for m_unk0x11, used for state resets or persistence [AI]

Definition at line 32 of file legobuildingmanager.h.

◆ m_mood

MxU8 LegoBuildingInfo::m_mood

[AI] Current mood index (0-3) [AI]

Definition at line 30 of file legobuildingmanager.h.

◆ m_move

MxU32 LegoBuildingInfo::m_move

[AI] Index or ID of current animation state [AI]

Definition at line 29 of file legobuildingmanager.h.

◆ m_sound

MxU32 LegoBuildingInfo::m_sound

[AI] Index or ID of current sound selection [AI]

Definition at line 28 of file legobuildingmanager.h.

◆ m_unk0x11

MxS8 LegoBuildingInfo::m_unk0x11

[AI] Counter or state value for construction/demolition progress [AI]

Definition at line 31 of file legobuildingmanager.h.

◆ m_unk0x14

float LegoBuildingInfo::m_unk0x14

[AI] World height or vertical offset for this building [AI]

Definition at line 34 of file legobuildingmanager.h.

◆ m_variant

const char* LegoBuildingInfo::m_variant

[AI] Name of the building's current variant (model name/ID) [AI]

Definition at line 27 of file legobuildingmanager.h.

◆ m_x

float LegoBuildingInfo::m_x

[AI] World X coordinate for the building's ground placement [AI]

Definition at line 36 of file legobuildingmanager.h.

◆ m_y

float LegoBuildingInfo::m_y

[AI] World Y coordinate for the building's ground placement [AI]

Definition at line 37 of file legobuildingmanager.h.

◆ m_z

float LegoBuildingInfo::m_z

[AI] World Z coordinate for the building's ground placement [AI]

Definition at line 38 of file legobuildingmanager.h.


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