mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-12 23:54:35 +00:00
- reformatting for easier search.
This commit is contained in:
parent
e754fae0a8
commit
d24aa5dec9
69 changed files with 202 additions and 170 deletions
|
@ -1781,6 +1781,7 @@ public:
|
||||||
|
|
||||||
DLightLevel(sector_t * s,int destlevel,int speed);
|
DLightLevel(sector_t * s,int destlevel,int speed);
|
||||||
void Serialize(FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
|
void Serialize(FArchive &arc);
|
||||||
void Tick ();
|
void Tick ();
|
||||||
void Destroy() { Super::Destroy(); m_Sector->lightingdata=NULL; }
|
void Destroy() { Super::Destroy(); m_Sector->lightingdata=NULL; }
|
||||||
};
|
};
|
||||||
|
|
|
@ -65,6 +65,7 @@
|
||||||
#include "serializer.h"
|
#include "serializer.h"
|
||||||
|
|
||||||
// just the stuff that already got converted to FSerializer so that it can be seen as 'done' when searching.
|
// just the stuff that already got converted to FSerializer so that it can be seen as 'done' when searching.
|
||||||
|
#define COMMON_STUFF
|
||||||
#include "zzz_old.cpp"
|
#include "zzz_old.cpp"
|
||||||
|
|
||||||
void CopyPlayer (player_t *dst, player_t *src, const char *name);
|
void CopyPlayer (player_t *dst, player_t *src, const char *name);
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#ifdef COMMON_STUFF
|
||||||
|
|
||||||
// For NULL states, which aren't owned by any actor, the owner
|
// For NULL states, which aren't owned by any actor, the owner
|
||||||
// is recorded as AActor with the following state. AActor should
|
// is recorded as AActor with the following state. AActor should
|
||||||
// never actually have this many states of its own, so this
|
// never actually have this many states of its own, so this
|
||||||
|
@ -695,3 +697,31 @@ void DObject::Serialize (FArchive &arc)
|
||||||
{
|
{
|
||||||
ObjectFlags |= OF_SerialSuccess;
|
ObjectFlags |= OF_SerialSuccess;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
class DLightLevel : public DLighting
|
||||||
|
{
|
||||||
|
DECLARE_CLASS(DLightLevel, DLighting)
|
||||||
|
|
||||||
|
unsigned char destlevel;
|
||||||
|
unsigned char speed;
|
||||||
|
|
||||||
|
DLightLevel() {}
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
DLightLevel(sector_t * s, int destlevel, int speed);
|
||||||
|
void Serialize(FArchive &arc);
|
||||||
|
void Serialize(FSerializer &arc);
|
||||||
|
void Tick();
|
||||||
|
void Destroy() { Super::Destroy(); m_Sector->lightingdata = NULL; }
|
||||||
|
};
|
||||||
|
|
||||||
|
void DLightLevel::Serialize(FArchive &arc)
|
||||||
|
{
|
||||||
|
Super::Serialize(arc);
|
||||||
|
arc << destlevel << speed;
|
||||||
|
if (arc.IsLoading()) m_Sector->lightingdata = this;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in a new issue