OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Functions | Variables
EntitySnapshots.cpp File Reference
#include "EntitySnapshots.h"
#include <algorithm>
#include <string>
#include <unordered_map>
#include "Engine/ArenaEnumFunctions.h"
#include "Engine/Engine.h"
#include "Engine/Graphics/Indoor.h"
#include "Engine/Objects/Decoration.h"
#include "Engine/Objects/DecorationList.h"
#include "Engine/Graphics/Outdoor.h"
#include "Engine/Graphics/Overlays.h"
#include "Engine/Graphics/Sprites.h"
#include "Engine/Graphics/TextureFrameTable.h"
#include "Engine/Graphics/Image.h"
#include "Engine/Objects/Actor.h"
#include "Engine/Objects/NPC.h"
#include "Engine/Objects/ObjectList.h"
#include "Engine/Objects/SpriteObject.h"
#include "Engine/Objects/Chest.h"
#include "Engine/Party.h"
#include "Engine/SaveLoad.h"
#include "Engine/Data/IconFrameData.h"
#include "Engine/Data/PortraitFrameData.h"
#include "Engine/Data/TileData.h"
#include "Engine/Time/Time.h"
#include "Media/Audio/SoundInfo.h"
#include "GUI/GUIFont.h"
#include "Library/Color/ColorTable.h"
#include "Library/Snapshots/CommonSnapshots.h"
#include "Utility/Memory/MemSet.h"
#include "Utility/String/Ascii.h"
#include "Utility/MapAccess.h"

Functions

static void snapshot (const Time &src, int64_t *dst)
 
static void reconstruct (int64_t src, Time *dst)
 
static void snapshot (const Duration &src, int32_t *dst)
 
static void reconstruct (int32_t src, Duration *dst)
 
static void snapshot (const CombinedSkillValue &src, uint16_t *dst)
 
static void reconstruct (const uint16_t &src, CombinedSkillValue *dst)
 
static void snapshot (const MonsterId &src, int16_t *dst)
 
static void reconstruct (int16_t src, MonsterId *dst)
 
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 RawTimer &src, Timer_MM7 *dst)
 
void reconstruct (const Timer_MM7 &src, RawTimer *dst)
 
void snapshot (const NPCData &src, NPCData_MM7 *dst)
 
void reconstruct (const NPCData_MM7 &src, NPCData *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 SpellBuff &src, SpellBuff_MM7 *dst)
 
void reconstruct (const SpellBuff_MM7 &src, SpellBuff *dst)
 
void snapshot (const ItemGen &src, ItemGen_MM7 *dst)
 
void reconstruct (const ItemGen_MM7 &src, ItemGen *dst)
 
void snapshot (const Party &src, Party_MM7 *dst)
 
void reconstruct (const Party_MM7 &src, Party *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 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)
 

Variables

static const std::unordered_map< MapId, uint16_t > gamesLodIndexByMapId
 
static const std::unordered_map< uint16_t, MapIdmapIdByGamesLodIndex = inverted(gamesLodIndexByMapId)
 

Function Documentation

◆ reconstruct() [1/56]

void reconstruct ( const ActiveOverlay_MM7 src,
ActiveOverlay dst 
)

◆ reconstruct() [2/56]

void reconstruct ( const ActiveOverlayList_MM7 src,
ActiveOverlayList dst 
)

◆ reconstruct() [3/56]

void reconstruct ( const Actor_MM7 src,
Actor dst 
)

◆ reconstruct() [4/56]

void reconstruct ( const ActorJob_MM7 src,
ActorJob dst 
)

◆ reconstruct() [5/56]

void reconstruct ( const BBoxs_MM7 src,
BBoxf dst 
)

◆ reconstruct() [6/56]

void reconstruct ( const BBoxs_MM7 src,
BBoxi dst 
)

◆ reconstruct() [7/56]

void reconstruct ( const BLVDoor_MM7 src,
BLVDoor dst 
)

◆ reconstruct() [8/56]

void reconstruct ( const BLVFace_MM7 src,
BLVFace dst 
)

◆ reconstruct() [9/56]

void reconstruct ( const BLVFaceExtra_MM7 src,
BLVFaceExtra dst 
)

◆ reconstruct() [10/56]

void reconstruct ( const BLVLight_MM7 src,
BLVLight dst 
)

◆ reconstruct() [11/56]

void reconstruct ( const BLVMapOutline_MM7 src,
BLVMapOutline dst 
)

◆ reconstruct() [12/56]

void reconstruct ( const BLVSector_MM7 src,
BLVSector dst 
)

◆ reconstruct() [13/56]

void reconstruct ( const BSPNode_MM7 src,
BSPNode dst 
)

◆ reconstruct() [14/56]

void reconstruct ( const CharacterConditions_MM7 src,
RawCharacterConditions dst 
)

◆ reconstruct() [15/56]

void reconstruct ( const Chest_MM7 src,
Chest dst 
)

◆ reconstruct() [16/56]

void reconstruct ( const ChestDesc_MM7 src,
ChestDesc dst 
)

◆ reconstruct() [17/56]

void reconstruct ( const DecorationDesc_MM6 src,
DecorationDesc dst 
)

◆ reconstruct() [18/56]

void reconstruct ( const DecorationDesc_MM7 src,
DecorationDesc dst 
)

◆ reconstruct() [19/56]

void reconstruct ( const FontHeader_MM7 src,
FontHeader dst 
)

◆ reconstruct() [20/56]

void reconstruct ( const GUICharMetric_MM7 src,
GUICharMetric dst 
)

◆ reconstruct() [21/56]

void reconstruct ( const IconFrameData_MM7 src,
IconFrameData dst 
)

◆ reconstruct() [22/56]

void reconstruct ( const ItemGen_MM7 src,
ItemGen dst 
)

◆ reconstruct() [23/56]

void reconstruct ( const LevelDecoration_MM7 src,
LevelDecoration dst 
)

◆ reconstruct() [24/56]

void reconstruct ( const LocationInfo_MM7 src,
LocationInfo dst 
)

◆ reconstruct() [25/56]

void reconstruct ( const LocationTime_MM7 src,
LocationTime dst 
)

◆ reconstruct() [26/56]

void reconstruct ( const MonsterDesc_MM6 src,
MonsterDesc dst 
)

◆ reconstruct() [27/56]

void reconstruct ( const MonsterDesc_MM7 src,
MonsterDesc dst 
)

◆ reconstruct() [28/56]

void reconstruct ( const NPCData_MM7 src,
NPCData dst 
)

◆ reconstruct() [29/56]

void reconstruct ( const ObjectDesc_MM6 src,
ObjectDesc dst 
)

◆ reconstruct() [30/56]

void reconstruct ( const ObjectDesc_MM7 src,
ObjectDesc dst 
)

◆ reconstruct() [31/56]

void reconstruct ( const ODMFace_MM7 src,
ODMFace dst 
)

◆ reconstruct() [32/56]

void reconstruct ( const OverlayDesc_MM7 src,
OverlayDesc dst 
)

◆ reconstruct() [33/56]

void reconstruct ( const Party_MM7 src,
Party dst 
)

◆ reconstruct() [34/56]

void reconstruct ( const PersistentVariables_MM7 src,
PersistentVariables dst 
)

◆ reconstruct() [35/56]

void reconstruct ( const Planef_MM7 src,
Planef dst 
)

◆ reconstruct() [36/56]

void reconstruct ( const Planei_MM7 src,
Planef dst 
)

◆ reconstruct() [37/56]

void reconstruct ( const Player_MM7 src,
Character dst 
)

◆ reconstruct() [38/56]

void reconstruct ( const PortraitFrameData_MM7 src,
PortraitFrameData dst 
)

◆ reconstruct() [39/56]

void reconstruct ( const SaveGameHeader_MM7 src,
SaveGameHeader dst 
)

◆ reconstruct() [40/56]

void reconstruct ( const SoundInfo_MM6 src,
SoundInfo dst 
)

◆ reconstruct() [41/56]

void reconstruct ( const SoundInfo_MM7 src,
SoundInfo dst 
)

◆ reconstruct() [42/56]

void reconstruct ( const SpawnPoint_MM7 src,
SpawnPoint dst 
)

◆ reconstruct() [43/56]

void reconstruct ( const SpellBuff_MM7 src,
SpellBuff dst 
)

◆ reconstruct() [44/56]

void reconstruct ( const SpriteFrame_MM7 src,
SpriteFrame dst 
)

◆ reconstruct() [45/56]

void reconstruct ( const SpriteObject_MM7 src,
SpriteObject dst 
)

◆ reconstruct() [46/56]

void reconstruct ( const TextureFrame_MM7 src,
TextureFrame dst 
)

◆ reconstruct() [47/56]

void reconstruct ( const TileData_MM7 src,
TileData dst 
)

◆ reconstruct() [48/56]

void reconstruct ( const Timer_MM7 src,
RawTimer dst 
)

◆ reconstruct() [49/56]

static void reconstruct ( const uint16_t &  src,
CombinedSkillValue dst 
)
static

◆ reconstruct() [50/56]

void reconstruct ( const Vec3i src,
Vec3f dst 
)

◆ reconstruct() [51/56]

void reconstruct ( const Vec3s src,
Vec3f dst 
)

◆ reconstruct() [52/56]

void reconstruct ( const Vec3s src,
Vec3i dst 
)

◆ reconstruct() [53/56]

static void reconstruct ( int16_t  src,
MonsterId dst 
)
static

◆ reconstruct() [54/56]

static void reconstruct ( int32_t  src,
Duration dst 
)
static

◆ reconstruct() [55/56]

static void reconstruct ( int64_t  src,
Time dst 
)
static

◆ reconstruct() [56/56]

void reconstruct ( uint16_t  src,
Pid dst 
)

◆ snapshot() [1/32]

void snapshot ( const ActiveOverlay src,
ActiveOverlay_MM7 dst 
)

◆ snapshot() [2/32]

void snapshot ( const ActiveOverlayList src,
ActiveOverlayList_MM7 dst 
)

◆ snapshot() [3/32]

void snapshot ( const Actor src,
Actor_MM7 dst 
)

◆ snapshot() [4/32]

void snapshot ( const ActorJob src,
ActorJob_MM7 dst 
)

◆ snapshot() [5/32]

void snapshot ( const BBoxf src,
BBoxs_MM7 dst 
)

◆ snapshot() [6/32]

void snapshot ( const BBoxi src,
BBoxs_MM7 dst 
)

◆ snapshot() [7/32]

void snapshot ( const BLVDoor src,
BLVDoor_MM7 dst 
)

◆ snapshot() [8/32]

void snapshot ( const BLVSector src,
BLVSector_MM7 dst 
)

◆ snapshot() [9/32]

void snapshot ( const Character src,
Player_MM7 dst 
)

◆ snapshot() [10/32]

void snapshot ( const Chest src,
Chest_MM7 dst 
)

◆ snapshot() [11/32]

static void snapshot ( const CombinedSkillValue src,
uint16_t *  dst 
)
static

◆ snapshot() [12/32]

static void snapshot ( const Duration src,
int32_t *  dst 
)
static

◆ snapshot() [13/32]

void snapshot ( const GUICharMetric src,
GUICharMetric_MM7 dst 
)

◆ snapshot() [14/32]

void snapshot ( const IconFrameData src,
IconFrameData_MM7 dst 
)

◆ snapshot() [15/32]

void snapshot ( const ItemGen src,
ItemGen_MM7 dst 
)

◆ snapshot() [16/32]

void snapshot ( const LocationInfo src,
LocationInfo_MM7 dst 
)

◆ snapshot() [17/32]

void snapshot ( const LocationTime src,
LocationTime_MM7 dst 
)

◆ snapshot() [18/32]

void snapshot ( const MonsterDesc src,
MonsterDesc_MM7 dst 
)

◆ snapshot() [19/32]

static void snapshot ( const MonsterId src,
int16_t *  dst 
)
static

◆ snapshot() [20/32]

void snapshot ( const NPCData src,
NPCData_MM7 dst 
)

◆ snapshot() [21/32]

void snapshot ( const Party src,
Party_MM7 dst 
)

◆ snapshot() [22/32]

void snapshot ( const PersistentVariables src,
PersistentVariables_MM7 dst 
)

◆ snapshot() [23/32]

void snapshot ( const Pid src,
uint16_t *  dst 
)

◆ snapshot() [24/32]

void snapshot ( const RawCharacterConditions src,
CharacterConditions_MM7 dst 
)

◆ snapshot() [25/32]

void snapshot ( const RawTimer src,
Timer_MM7 dst 
)

◆ snapshot() [26/32]

void snapshot ( const SaveGameHeader src,
SaveGameHeader_MM7 dst 
)

◆ snapshot() [27/32]

void snapshot ( const SpellBuff src,
SpellBuff_MM7 dst 
)

◆ snapshot() [28/32]

void snapshot ( const SpriteObject src,
SpriteObject_MM7 dst 
)

◆ snapshot() [29/32]

static void snapshot ( const Time src,
int64_t *  dst 
)
static

◆ snapshot() [30/32]

void snapshot ( const Vec3f src,
Vec3i dst 
)

◆ snapshot() [31/32]

void snapshot ( const Vec3f src,
Vec3s dst 
)

◆ snapshot() [32/32]

void snapshot ( const Vec3i src,
Vec3s dst 
)

Variable Documentation

◆ gamesLodIndexByMapId

const std::unordered_map<MapId, uint16_t> gamesLodIndexByMapId
static

Mapping used for beacon map id serialization.

DON'T EDIT, THIS IS AUTOGENERATED CODE.

See also
runBeaconsCodeGen

◆ mapIdByGamesLodIndex

const std::unordered_map<uint16_t, MapId> mapIdByGamesLodIndex = inverted(gamesLodIndexByMapId)
static