MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / LoadLighting

Function LoadLighting

Source/loadsave.cpp:900–915  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

898}
899
900void LoadLighting(LoadHelper *file, Light *pLight)
901{
902 pLight->position.tile.x = file->NextLE<int32_t>();
903 pLight->position.tile.y = file->NextLE<int32_t>();
904 pLight->radius = file->NextLE<int32_t>();
905 file->Skip<int32_t>(); // _lid
906 pLight->isInvalid = file->NextBool32();
907 pLight->hasChanged = file->NextBool32();
908 file->Skip(4); // Unused
909 pLight->position.old.x = file->NextLE<int32_t>();
910 pLight->position.old.y = file->NextLE<int32_t>();
911 pLight->oldRadius = file->NextLE<int32_t>();
912 pLight->position.offset.deltaX = file->NextLE<int32_t>();
913 pLight->position.offset.deltaY = file->NextLE<int32_t>();
914 file->Skip<uint32_t>(); // _lflags
915}
916
917void LoadPortal(LoadHelper *file, int i)
918{

Callers 1

LoadGameFunction · 0.85

Calls 2

NextBool32Method · 0.80
SkipMethod · 0.45

Tested by

no test coverage detected