binana/profile/3.3.5a-windows-386/include/map/CMapStaticEntity.h

55 lines
1.4 KiB
C
Raw Normal View History

#ifndef CMAPSTATICENTITY_H
#define CMAPSTATICENTITY_H
DECLARE_STRUCT(CMapStaticEntity);
#include "system/types.h"
#include "tempest/vector.h"
#include "tempest/box.h"
2025-11-09 19:34:50 +03:00
#include "tempest/sphere.h"
#include "m2/model.h"
#include "storm/list.h"
#include "map/CMapBaseObj.h"
typedef struct CMapStaticEntityMapChunkLink CMapStaticEntityMapChunkLink;
STORM_TS_LIST(CMapStaticEntityMapChunkLink);
struct CMapStaticEntityMapChunkLink
{
uint32_t objectIndex; //0x00
CMapStaticEntity* owner; //0x04
void* ref; //0x08 //could be CMapChunk* or CMapObjDefGroup*
TSLink_CMapStaticEntityMapChunkLink refLink; //0x0C - 0x14
TSLink_CMapStaticEntityMapChunkLink ownerLink; //0x14 - 0x1C
};
struct CMapStaticEntity
{
void** vtable; //0x00
int32_t objectIndex; //0x04
uint16_t type; //0x08
uint16_t refCount; //0x0A
int32_t unk_C; //0x0C
CMapStaticEntity* prev; //0x10
CMapStaticEntity* next; //0x14
TSExplicitList_CMapStaticEntityMapChunkLink linkList;
int32_t unk_024; //0x24
uint32_t unkFlags_28; //0x28
int32_t unkCounter; //0x2C
float unk_030; //0x30
2025-11-09 19:34:50 +03:00
CM2Model* model;
CAaSphere sphere;
CAaBox bbox;
C3Vector vec2;
C3Vector position;
float scale; //0x78
int32_t unk_07C; //0x7C
int32_t unk_080; //0x80
CImVector m2AmbietColor; //0x84
CImVector m2DiffuseColor; //0x88
float unk_08C; //0x8C
};
#endif