OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Classes | Functions
EntitySnapshots.h File Reference
#include <array>
#include "Library/Geometry/Vec.h"
#include "Library/Geometry/Plane.h"
#include "Library/Geometry/BBox.h"
#include "Library/Binary/BinarySerialization.h"

Classes

struct  BBoxs_MM7
 
struct  Planef_MM7
 
struct  Planei_MM7
 
struct  SpriteFrame_MM6
 
struct  SpriteFrame_MM7
 
struct  BLVFace_MM7
 
struct  TileData_MM7
 
struct  TextureFrame_MM7
 
struct  NPCData_MM7
 
struct  ItemGen_MM7
 
struct  SpellBuff_MM7
 
struct  LloydBeacon_MM7
 
struct  CharacterConditions_MM7
 
struct  Player_MM7
 
struct  PartyTimeStruct_MM7
 
struct  Party_MM7
 
struct  Timer_MM7
 
struct  ActiveOverlay_MM7
 
struct  ActiveOverlayList_MM7
 
struct  IconFrameData_MM7
 
struct  UIAnimation_MM6
 
struct  MonsterInfo_MM7
 
struct  MonsterDesc_MM6
 
struct  MonsterDesc_MM7
 
struct  ActorJob_MM7
 
struct  Actor_MM7
 
struct  BLVDoor_MM7
 
struct  BLVSector_MM7
 
struct  GUICharMetric_MM7
 
struct  FontHeader_MM7
 
struct  ODMFace_MM7
 
struct  SpawnPoint_MM6
 
struct  SpawnPoint_MM7
 
struct  SpriteObject_MM7
 
struct  ChestDesc_MM7
 
struct  DecorationDesc_MM6
 
struct  DecorationDesc_MM7
 
struct  Chest_MM7
 
struct  BLVLight_MM6
 
struct  BLVLight_MM7
 
struct  OverlayDesc_MM7
 
struct  PortraitFrameData_MM7
 
struct  LevelDecoration_MM7
 
struct  BLVFaceExtra_MM7
 
struct  BSPNode_MM7
 
struct  BLVMapOutline_MM7
 
struct  ObjectDesc_MM6
 
struct  ObjectDesc_MM7
 
struct  BSPModelData_MM7
 
struct  LocationTime_MM7
 
struct  SoundInfo_MM6
 
struct  SoundInfo_MM7
 
struct  LocationInfo_MM7
 
struct  LocationHeader_MM7
 
struct  PersistentVariables_MM7
 
struct  BLVHeader_MM7
 
struct  OutdoorTileType_MM7
 
struct  SaveGameHeader_MM7
 

Functions

void snapshot (const Pid &src, uint16_t *dst)
 
void reconstruct (uint16_t src, Pid *dst)
 
void snapshot (const Vec3i &src, Vec3s *dst)
 
void reconstruct (const Vec3s &src, Vec3i *dst)
 
void snapshot (const Vec3f &src, Vec3s *dst)
 
void reconstruct (const Vec3s &src, Vec3f *dst)
 
void snapshot (const Vec3f &src, Vec3i *dst)
 
void reconstruct (const Vec3i &src, Vec3f *dst)
 
void snapshot (const BBoxi &src, BBoxs_MM7 *dst)
 
void reconstruct (const BBoxs_MM7 &src, BBoxi *dst)
 
void snapshot (const BBoxf &src, BBoxs_MM7 *dst)
 
void reconstruct (const BBoxs_MM7 &src, BBoxf *dst)
 
void reconstruct (const Planef_MM7 &src, Planef *dst)
 
void reconstruct (const Planei_MM7 &src, Planef *dst)
 
void reconstruct (const SpriteFrame_MM7 &src, SpriteFrame *dst)
 
void reconstruct (const BLVFace_MM7 &src, BLVFace *dst)
 
void reconstruct (const TileData_MM7 &src, TileData *dst)
 
void reconstruct (const TextureFrame_MM7 &src, TextureFrame *dst)
 
void snapshot (const NPCData &src, NPCData_MM7 *dst)
 
void reconstruct (const NPCData_MM7 &src, NPCData *dst)
 
void snapshot (const ItemGen &src, ItemGen_MM7 *dst)
 
void reconstruct (const ItemGen_MM7 &src, ItemGen *dst)
 
void snapshot (const SpellBuff &src, SpellBuff_MM7 *dst)
 
void reconstruct (const SpellBuff_MM7 &src, SpellBuff *dst)
 
void snapshot (const RawCharacterConditions &src, CharacterConditions_MM7 *dst)
 
void reconstruct (const CharacterConditions_MM7 &src, RawCharacterConditions *dst)
 
void snapshot (const Character &src, Player_MM7 *dst)
 
void reconstruct (const Player_MM7 &src, Character *dst)
 
void snapshot (const Party &src, Party_MM7 *dst)
 
void reconstruct (const Party_MM7 &src, Party *dst)
 
void snapshot (const RawTimer &src, Timer_MM7 *dst)
 
void reconstruct (const Timer_MM7 &src, RawTimer *dst)
 
void snapshot (const ActiveOverlay &src, ActiveOverlay_MM7 *dst)
 
void reconstruct (const ActiveOverlay_MM7 &src, ActiveOverlay *dst)
 
void snapshot (const ActiveOverlayList &src, ActiveOverlayList_MM7 *dst)
 
void reconstruct (const ActiveOverlayList_MM7 &src, ActiveOverlayList *dst)
 
void snapshot (const IconFrameData &src, IconFrameData_MM7 *dst)
 
void reconstruct (const IconFrameData_MM7 &src, IconFrameData *dst)
 
void reconstruct (const MonsterDesc_MM6 &src, MonsterDesc *dst)
 
void snapshot (const MonsterDesc &src, MonsterDesc_MM7 *dst)
 
void reconstruct (const MonsterDesc_MM7 &src, MonsterDesc *dst)
 
void snapshot (const ActorJob &src, ActorJob_MM7 *dst)
 
void reconstruct (const ActorJob_MM7 &src, ActorJob *dst)
 
void snapshot (const Actor &src, Actor_MM7 *dst)
 
void reconstruct (const Actor_MM7 &src, Actor *dst)
 
void snapshot (const BLVDoor &src, BLVDoor_MM7 *dst)
 
void reconstruct (const BLVDoor_MM7 &src, BLVDoor *dst)
 
void snapshot (const BLVSector &src, BLVSector_MM7 *dst)
 
void reconstruct (const BLVSector_MM7 &src, BLVSector *dst)
 
void snapshot (const GUICharMetric &src, GUICharMetric_MM7 *dst)
 
void reconstruct (const GUICharMetric_MM7 &src, GUICharMetric *dst)
 
void reconstruct (const FontHeader_MM7 &src, FontHeader *dst)
 
void reconstruct (const ODMFace_MM7 &src, ODMFace *dst)
 
void reconstruct (const SpawnPoint_MM7 &src, SpawnPoint *dst)
 
void snapshot (const SpriteObject &src, SpriteObject_MM7 *dst)
 
void reconstruct (const SpriteObject_MM7 &src, SpriteObject *dst)
 
void reconstruct (const ChestDesc_MM7 &src, ChestDesc *dst)
 
void reconstruct (const DecorationDesc_MM6 &src, DecorationDesc *dst)
 
void reconstruct (const DecorationDesc_MM7 &src, DecorationDesc *dst)
 
void snapshot (const Chest &src, Chest_MM7 *dst)
 
void reconstruct (const Chest_MM7 &src, Chest *dst)
 
void reconstruct (const BLVLight_MM7 &src, BLVLight *dst)
 
void reconstruct (const OverlayDesc_MM7 &src, OverlayDesc *dst)
 
void reconstruct (const PortraitFrameData_MM7 &src, PortraitFrameData *dst)
 
void reconstruct (const LevelDecoration_MM7 &src, LevelDecoration *dst)
 
void reconstruct (const BLVFaceExtra_MM7 &src, BLVFaceExtra *dst)
 
void reconstruct (const BSPNode_MM7 &src, BSPNode *dst)
 
void reconstruct (const BLVMapOutline_MM7 &src, BLVMapOutline *dst)
 
void reconstruct (const ObjectDesc_MM6 &src, ObjectDesc *dst)
 
void reconstruct (const ObjectDesc_MM7 &src, ObjectDesc *dst)
 
void snapshot (const LocationTime &src, LocationTime_MM7 *dst)
 
void reconstruct (const LocationTime_MM7 &src, LocationTime *dst)
 
void reconstruct (const SoundInfo_MM6 &src, SoundInfo *dst)
 
void reconstruct (const SoundInfo_MM7 &src, SoundInfo *dst)
 
void snapshot (const LocationInfo &src, LocationInfo_MM7 *dst)
 
void reconstruct (const LocationInfo_MM7 &src, LocationInfo *dst)
 
void snapshot (const PersistentVariables &src, PersistentVariables_MM7 *dst)
 
void reconstruct (const PersistentVariables_MM7 &src, PersistentVariables *dst)
 
void snapshot (const SaveGameHeader &src, SaveGameHeader_MM7 *dst)
 
void reconstruct (const SaveGameHeader_MM7 &src, SaveGameHeader *dst)
 

Detailed Description

Snapshots in this file are representations of different engine entities, as stored in the game binary files.

All structs here can be directly memory-mapped / memcpy'd from the game files. This layer is mainly needed so that the engine has 100% freedom to change data layout without breaking backward compatibility.

Function Documentation

◆ reconstruct() [1/52]

void reconstruct ( const ActiveOverlay_MM7 src,
ActiveOverlay dst 
)

◆ reconstruct() [2/52]

void reconstruct ( const ActiveOverlayList_MM7 src,
ActiveOverlayList dst 
)

◆ reconstruct() [3/52]

void reconstruct ( const Actor_MM7 src,
Actor dst 
)

◆ reconstruct() [4/52]

void reconstruct ( const ActorJob_MM7 src,
ActorJob dst 
)

◆ reconstruct() [5/52]

void reconstruct ( const BBoxs_MM7 src,
BBoxf dst 
)

◆ reconstruct() [6/52]

void reconstruct ( const BBoxs_MM7 src,
BBoxi dst 
)

◆ reconstruct() [7/52]

void reconstruct ( const BLVDoor_MM7 src,
BLVDoor dst 
)

◆ reconstruct() [8/52]

void reconstruct ( const BLVFace_MM7 src,
BLVFace dst 
)

◆ reconstruct() [9/52]

void reconstruct ( const BLVFaceExtra_MM7 src,
BLVFaceExtra dst 
)

◆ reconstruct() [10/52]

void reconstruct ( const BLVLight_MM7 src,
BLVLight dst 
)

◆ reconstruct() [11/52]

void reconstruct ( const BLVMapOutline_MM7 src,
BLVMapOutline dst 
)

◆ reconstruct() [12/52]

void reconstruct ( const BLVSector_MM7 src,
BLVSector dst 
)

◆ reconstruct() [13/52]

void reconstruct ( const BSPNode_MM7 src,
BSPNode dst 
)

◆ reconstruct() [14/52]

void reconstruct ( const CharacterConditions_MM7 src,
RawCharacterConditions dst 
)

◆ reconstruct() [15/52]

void reconstruct ( const Chest_MM7 src,
Chest dst 
)

◆ reconstruct() [16/52]

void reconstruct ( const ChestDesc_MM7 src,
ChestDesc dst 
)

◆ reconstruct() [17/52]

void reconstruct ( const DecorationDesc_MM6 src,
DecorationDesc dst 
)

◆ reconstruct() [18/52]

void reconstruct ( const DecorationDesc_MM7 src,
DecorationDesc dst 
)

◆ reconstruct() [19/52]

void reconstruct ( const FontHeader_MM7 src,
FontHeader dst 
)

◆ reconstruct() [20/52]

void reconstruct ( const GUICharMetric_MM7 src,
GUICharMetric dst 
)

◆ reconstruct() [21/52]

void reconstruct ( const IconFrameData_MM7 src,
IconFrameData dst 
)

◆ reconstruct() [22/52]

void reconstruct ( const ItemGen_MM7 src,
ItemGen dst 
)

◆ reconstruct() [23/52]

void reconstruct ( const LevelDecoration_MM7 src,
LevelDecoration dst 
)

◆ reconstruct() [24/52]

void reconstruct ( const LocationInfo_MM7 src,
LocationInfo dst 
)

◆ reconstruct() [25/52]

void reconstruct ( const LocationTime_MM7 src,
LocationTime dst 
)

◆ reconstruct() [26/52]

void reconstruct ( const MonsterDesc_MM6 src,
MonsterDesc dst 
)

◆ reconstruct() [27/52]

void reconstruct ( const MonsterDesc_MM7 src,
MonsterDesc dst 
)

◆ reconstruct() [28/52]

void reconstruct ( const NPCData_MM7 src,
NPCData dst 
)

◆ reconstruct() [29/52]

void reconstruct ( const ObjectDesc_MM6 src,
ObjectDesc dst 
)

◆ reconstruct() [30/52]

void reconstruct ( const ObjectDesc_MM7 src,
ObjectDesc dst 
)

◆ reconstruct() [31/52]

void reconstruct ( const ODMFace_MM7 src,
ODMFace dst 
)

◆ reconstruct() [32/52]

void reconstruct ( const OverlayDesc_MM7 src,
OverlayDesc dst 
)

◆ reconstruct() [33/52]

void reconstruct ( const Party_MM7 src,
Party dst 
)

◆ reconstruct() [34/52]

void reconstruct ( const PersistentVariables_MM7 src,
PersistentVariables dst 
)

◆ reconstruct() [35/52]

void reconstruct ( const Planef_MM7 src,
Planef dst 
)

◆ reconstruct() [36/52]

void reconstruct ( const Planei_MM7 src,
Planef dst 
)

◆ reconstruct() [37/52]

void reconstruct ( const Player_MM7 src,
Character dst 
)

◆ reconstruct() [38/52]

void reconstruct ( const PortraitFrameData_MM7 src,
PortraitFrameData dst 
)

◆ reconstruct() [39/52]

void reconstruct ( const SaveGameHeader_MM7 src,
SaveGameHeader dst 
)

◆ reconstruct() [40/52]

void reconstruct ( const SoundInfo_MM6 src,
SoundInfo dst 
)

◆ reconstruct() [41/52]

void reconstruct ( const SoundInfo_MM7 src,
SoundInfo dst 
)

◆ reconstruct() [42/52]

void reconstruct ( const SpawnPoint_MM7 src,
SpawnPoint dst 
)

◆ reconstruct() [43/52]

void reconstruct ( const SpellBuff_MM7 src,
SpellBuff dst 
)

◆ reconstruct() [44/52]

void reconstruct ( const SpriteFrame_MM7 src,
SpriteFrame dst 
)

◆ reconstruct() [45/52]

void reconstruct ( const SpriteObject_MM7 src,
SpriteObject dst 
)

◆ reconstruct() [46/52]

void reconstruct ( const TextureFrame_MM7 src,
TextureFrame dst 
)

◆ reconstruct() [47/52]

void reconstruct ( const TileData_MM7 src,
TileData dst 
)

◆ reconstruct() [48/52]

void reconstruct ( const Timer_MM7 src,
RawTimer dst 
)

◆ reconstruct() [49/52]

void reconstruct ( const Vec3i src,
Vec3f dst 
)

◆ reconstruct() [50/52]

void reconstruct ( const Vec3s src,
Vec3f dst 
)

◆ reconstruct() [51/52]

void reconstruct ( const Vec3s src,
Vec3i dst 
)

◆ reconstruct() [52/52]

void reconstruct ( uint16_t  src,
Pid dst 
)

◆ snapshot() [1/28]

void snapshot ( const ActiveOverlay src,
ActiveOverlay_MM7 dst 
)

◆ snapshot() [2/28]

void snapshot ( const ActiveOverlayList src,
ActiveOverlayList_MM7 dst 
)

◆ snapshot() [3/28]

void snapshot ( const Actor src,
Actor_MM7 dst 
)

◆ snapshot() [4/28]

void snapshot ( const ActorJob src,
ActorJob_MM7 dst 
)

◆ snapshot() [5/28]

void snapshot ( const BBoxf src,
BBoxs_MM7 dst 
)

◆ snapshot() [6/28]

void snapshot ( const BBoxi src,
BBoxs_MM7 dst 
)

◆ snapshot() [7/28]

void snapshot ( const BLVDoor src,
BLVDoor_MM7 dst 
)

◆ snapshot() [8/28]

void snapshot ( const BLVSector src,
BLVSector_MM7 dst 
)

◆ snapshot() [9/28]

void snapshot ( const Character src,
Player_MM7 dst 
)

◆ snapshot() [10/28]

void snapshot ( const Chest src,
Chest_MM7 dst 
)

◆ snapshot() [11/28]

void snapshot ( const GUICharMetric src,
GUICharMetric_MM7 dst 
)

◆ snapshot() [12/28]

void snapshot ( const IconFrameData src,
IconFrameData_MM7 dst 
)

◆ snapshot() [13/28]

void snapshot ( const ItemGen src,
ItemGen_MM7 dst 
)

◆ snapshot() [14/28]

void snapshot ( const LocationInfo src,
LocationInfo_MM7 dst 
)

◆ snapshot() [15/28]

void snapshot ( const LocationTime src,
LocationTime_MM7 dst 
)

◆ snapshot() [16/28]

void snapshot ( const MonsterDesc src,
MonsterDesc_MM7 dst 
)

◆ snapshot() [17/28]

void snapshot ( const NPCData src,
NPCData_MM7 dst 
)

◆ snapshot() [18/28]

void snapshot ( const Party src,
Party_MM7 dst 
)

◆ snapshot() [19/28]

void snapshot ( const PersistentVariables src,
PersistentVariables_MM7 dst 
)

◆ snapshot() [20/28]

void snapshot ( const Pid src,
uint16_t *  dst 
)

◆ snapshot() [21/28]

void snapshot ( const RawCharacterConditions src,
CharacterConditions_MM7 dst 
)

◆ snapshot() [22/28]

void snapshot ( const RawTimer src,
Timer_MM7 dst 
)

◆ snapshot() [23/28]

void snapshot ( const SaveGameHeader src,
SaveGameHeader_MM7 dst 
)

◆ snapshot() [24/28]

void snapshot ( const SpellBuff src,
SpellBuff_MM7 dst 
)

◆ snapshot() [25/28]

void snapshot ( const SpriteObject src,
SpriteObject_MM7 dst 
)

◆ snapshot() [26/28]

void snapshot ( const Vec3f src,
Vec3i dst 
)

◆ snapshot() [27/28]

void snapshot ( const Vec3f src,
Vec3s dst 
)

◆ snapshot() [28/28]

void snapshot ( const Vec3i src,
Vec3s dst 
)