Torch
Loading...
Searching...
No Matches
BK64::Prop Union Reference

#include <MapFactory.h>

Public Attributes

ModelProp model
SpriteProp sprite
ActorProp actor
struct { 
   uint32_t   pad0 
   int16_t   unk4 [3] 
   uint16_t   padA_15: 10 
   uint16_t   unkA_5: 1 
   uint16_t   unkA_4: 1 
   uint16_t   unkA_3: 1 
   uint16_t   unkA_2: 1 
   uint16_t   is_3d: 1 
   uint16_t   is_actor: 1 
}; 
uint8_t raw [12]

Detailed Description

Prop: union of ModelProp, SpriteProp, ActorProp (12 bytes)

Which one it is comes from the flags at offset 0x0A, bits 0-1: isActorProp=1 → ActorProp (carries actor marker metadata) isActorProp=0, isModelProp=1 → ModelProp (static 3D geometry) isActorProp=0, isModelProp=0 → SpriteProp (2D billboard sprite)

All three are 12 bytes and live in ROM; only the flags tell them apart.


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