mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
- reformatting for easier search.
This commit is contained in:
parent
e754fae0a8
commit
d24aa5dec9
69 changed files with 202 additions and 170 deletions
|
@ -583,7 +583,7 @@ public:
|
||||||
void Destroy ();
|
void Destroy ();
|
||||||
~AActor ();
|
~AActor ();
|
||||||
|
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Serialize(FSerializer &arc);
|
void Serialize(FSerializer &arc);
|
||||||
void PostSerialize();
|
void PostSerialize();
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ void DBot::Clear ()
|
||||||
old = { 0, 0 };
|
old = { 0, 0 };
|
||||||
}
|
}
|
||||||
|
|
||||||
void DBot::Serialize (FArchive &arc)
|
void DBot::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
|
|
||||||
|
|
|
@ -142,7 +142,7 @@ public:
|
||||||
DBot ();
|
DBot ();
|
||||||
|
|
||||||
void Clear ();
|
void Clear ();
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Tick ();
|
void Tick ();
|
||||||
|
|
||||||
//(b_think.cpp)
|
//(b_think.cpp)
|
||||||
|
|
|
@ -65,7 +65,7 @@ class DWaitingCommand : public DThinker
|
||||||
public:
|
public:
|
||||||
DWaitingCommand (const char *cmd, int tics);
|
DWaitingCommand (const char *cmd, int tics);
|
||||||
~DWaitingCommand ();
|
~DWaitingCommand ();
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Tick ();
|
void Tick ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -189,7 +189,7 @@ static const char *KeyConfCommands[] =
|
||||||
|
|
||||||
IMPLEMENT_CLASS (DWaitingCommand)
|
IMPLEMENT_CLASS (DWaitingCommand)
|
||||||
|
|
||||||
void DWaitingCommand::Serialize (FArchive &arc)
|
void DWaitingCommand::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << Command << TicsLeft;
|
arc << Command << TicsLeft;
|
||||||
|
|
|
@ -102,7 +102,7 @@ class APlayerPawn : public AActor
|
||||||
DECLARE_CLASS_WITH_META(APlayerPawn, AActor, PClassPlayerPawn)
|
DECLARE_CLASS_WITH_META(APlayerPawn, AActor, PClassPlayerPawn)
|
||||||
HAS_OBJECT_POINTERS
|
HAS_OBJECT_POINTERS
|
||||||
public:
|
public:
|
||||||
virtual void Serialize (FArchive &arc);
|
virtual void Serialize(FArchive &arc);
|
||||||
|
|
||||||
virtual void PostBeginPlay();
|
virtual void PostBeginPlay();
|
||||||
virtual void Tick();
|
virtual void Tick();
|
||||||
|
@ -383,7 +383,7 @@ public:
|
||||||
~player_t();
|
~player_t();
|
||||||
player_t &operator= (const player_t &p);
|
player_t &operator= (const player_t &p);
|
||||||
|
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
size_t FixPointers (const DObject *obj, DObject *replacement);
|
size_t FixPointers (const DObject *obj, DObject *replacement);
|
||||||
size_t PropagateMark();
|
size_t PropagateMark();
|
||||||
|
|
||||||
|
|
|
@ -113,7 +113,7 @@ struct DDecalThinker : public DThinker
|
||||||
HAS_OBJECT_POINTERS
|
HAS_OBJECT_POINTERS
|
||||||
public:
|
public:
|
||||||
DDecalThinker (DBaseDecal *decal) : DThinker (STAT_DECALTHINKER), TheDecal (decal) {}
|
DDecalThinker (DBaseDecal *decal) : DThinker (STAT_DECALTHINKER), TheDecal (decal) {}
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
TObjPtr<DBaseDecal> TheDecal;
|
TObjPtr<DBaseDecal> TheDecal;
|
||||||
protected:
|
protected:
|
||||||
DDecalThinker () : DThinker (STAT_DECALTHINKER) {}
|
DDecalThinker () : DThinker (STAT_DECALTHINKER) {}
|
||||||
|
@ -123,7 +123,7 @@ IMPLEMENT_POINTY_CLASS (DDecalThinker)
|
||||||
DECLARE_POINTER (TheDecal)
|
DECLARE_POINTER (TheDecal)
|
||||||
END_POINTERS
|
END_POINTERS
|
||||||
|
|
||||||
void DDecalThinker::Serialize (FArchive &arc)
|
void DDecalThinker::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << TheDecal;
|
arc << TheDecal;
|
||||||
|
@ -143,7 +143,7 @@ class DDecalFader : public DDecalThinker
|
||||||
DECLARE_CLASS (DDecalFader, DDecalThinker)
|
DECLARE_CLASS (DDecalFader, DDecalThinker)
|
||||||
public:
|
public:
|
||||||
DDecalFader (DBaseDecal *decal) : DDecalThinker (decal) {}
|
DDecalFader (DBaseDecal *decal) : DDecalThinker (decal) {}
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Tick ();
|
void Tick ();
|
||||||
|
|
||||||
int TimeToStartDecay;
|
int TimeToStartDecay;
|
||||||
|
@ -168,7 +168,7 @@ class DDecalColorer : public DDecalThinker
|
||||||
DECLARE_CLASS (DDecalColorer, DDecalThinker)
|
DECLARE_CLASS (DDecalColorer, DDecalThinker)
|
||||||
public:
|
public:
|
||||||
DDecalColorer (DBaseDecal *decal) : DDecalThinker (decal) {}
|
DDecalColorer (DBaseDecal *decal) : DDecalThinker (decal) {}
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Tick ();
|
void Tick ();
|
||||||
|
|
||||||
int TimeToStartDecay;
|
int TimeToStartDecay;
|
||||||
|
@ -194,7 +194,7 @@ class DDecalStretcher : public DDecalThinker
|
||||||
DECLARE_CLASS (DDecalStretcher, DDecalThinker)
|
DECLARE_CLASS (DDecalStretcher, DDecalThinker)
|
||||||
public:
|
public:
|
||||||
DDecalStretcher (DBaseDecal *decal) : DDecalThinker (decal) {}
|
DDecalStretcher (DBaseDecal *decal) : DDecalThinker (decal) {}
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Tick ();
|
void Tick ();
|
||||||
|
|
||||||
int TimeToStart;
|
int TimeToStart;
|
||||||
|
@ -225,7 +225,7 @@ class DDecalSlider : public DDecalThinker
|
||||||
DECLARE_CLASS (DDecalSlider, DDecalThinker)
|
DECLARE_CLASS (DDecalSlider, DDecalThinker)
|
||||||
public:
|
public:
|
||||||
DDecalSlider (DBaseDecal *decal) : DDecalThinker (decal) {}
|
DDecalSlider (DBaseDecal *decal) : DDecalThinker (decal) {}
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Tick ();
|
void Tick ();
|
||||||
|
|
||||||
int TimeToStart;
|
int TimeToStart;
|
||||||
|
@ -1153,7 +1153,7 @@ FDecalAnimator::~FDecalAnimator ()
|
||||||
|
|
||||||
IMPLEMENT_CLASS (DDecalFader)
|
IMPLEMENT_CLASS (DDecalFader)
|
||||||
|
|
||||||
void DDecalFader::Serialize (FArchive &arc)
|
void DDecalFader::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << TimeToStartDecay << TimeToEndDecay << StartTrans;
|
arc << TimeToStartDecay << TimeToEndDecay << StartTrans;
|
||||||
|
@ -1200,7 +1200,7 @@ DThinker *FDecalFaderAnim::CreateThinker (DBaseDecal *actor, side_t *wall) const
|
||||||
|
|
||||||
IMPLEMENT_CLASS (DDecalStretcher)
|
IMPLEMENT_CLASS (DDecalStretcher)
|
||||||
|
|
||||||
void DDecalStretcher::Serialize (FArchive &arc)
|
void DDecalStretcher::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << TimeToStart
|
arc << TimeToStart
|
||||||
|
@ -1288,7 +1288,7 @@ void DDecalStretcher::Tick ()
|
||||||
|
|
||||||
IMPLEMENT_CLASS (DDecalSlider)
|
IMPLEMENT_CLASS (DDecalSlider)
|
||||||
|
|
||||||
void DDecalSlider::Serialize (FArchive &arc)
|
void DDecalSlider::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << TimeToStart
|
arc << TimeToStart
|
||||||
|
@ -1371,7 +1371,7 @@ FDecalAnimator *FDecalLib::FindAnimator (const char *name)
|
||||||
|
|
||||||
IMPLEMENT_CLASS (DDecalColorer)
|
IMPLEMENT_CLASS (DDecalColorer)
|
||||||
|
|
||||||
void DDecalColorer::Serialize (FArchive &arc)
|
void DDecalColorer::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << TimeToStartDecay << TimeToEndDecay << StartColor << GoalColor;
|
arc << TimeToStartDecay << TimeToEndDecay << StartColor << GoalColor;
|
||||||
|
|
|
@ -467,7 +467,7 @@ public:
|
||||||
inline bool IsA (const PClass *type) const;
|
inline bool IsA (const PClass *type) const;
|
||||||
|
|
||||||
void SerializeUserVars(FArchive &arc);
|
void SerializeUserVars(FArchive &arc);
|
||||||
virtual void Serialize (FArchive &arc);
|
virtual void Serialize(FArchive &arc);
|
||||||
|
|
||||||
void SerializeUserVars(FSerializer &arc);
|
void SerializeUserVars(FSerializer &arc);
|
||||||
virtual void Serialize(FSerializer &arc);
|
virtual void Serialize(FSerializer &arc);
|
||||||
|
|
|
@ -64,7 +64,7 @@ DSectorEffect::DSectorEffect (sector_t *sector)
|
||||||
m_Sector = sector;
|
m_Sector = sector;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DSectorEffect::Serialize (FArchive &arc)
|
void DSectorEffect::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << m_Sector;
|
arc << m_Sector;
|
||||||
|
@ -90,7 +90,7 @@ void DMover::Destroy()
|
||||||
Super::Destroy();
|
Super::Destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DMover::Serialize (FArchive &arc)
|
void DMover::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << interpolation;
|
arc << interpolation;
|
||||||
|
|
|
@ -10,7 +10,7 @@ class DSectorEffect : public DThinker
|
||||||
public:
|
public:
|
||||||
DSectorEffect (sector_t *sector);
|
DSectorEffect (sector_t *sector);
|
||||||
|
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Destroy();
|
void Destroy();
|
||||||
|
|
||||||
sector_t *GetSector() const { return m_Sector; }
|
sector_t *GetSector() const { return m_Sector; }
|
||||||
|
@ -32,7 +32,7 @@ protected:
|
||||||
private:
|
private:
|
||||||
protected:
|
protected:
|
||||||
DMover ();
|
DMover ();
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Destroy();
|
void Destroy();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -526,7 +526,7 @@ void FCompressedMemFile::Close ()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void FCompressedMemFile::Serialize (FArchive &arc)
|
void FCompressedMemFile::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
if (arc.IsStoring ())
|
if (arc.IsStoring ())
|
||||||
{
|
{
|
||||||
|
|
|
@ -127,7 +127,7 @@ public:
|
||||||
bool IsOpen () const;
|
bool IsOpen () const;
|
||||||
void GetSizes(unsigned int &one, unsigned int &two) const;
|
void GetSizes(unsigned int &one, unsigned int &two) const;
|
||||||
|
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool FreeOnExplode () { return !m_SourceFromMem; }
|
bool FreeOnExplode () { return !m_SourceFromMem; }
|
||||||
|
|
|
@ -1780,7 +1780,8 @@ class DLightLevel : public DLighting
|
||||||
public:
|
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; }
|
||||||
};
|
};
|
||||||
|
@ -1789,7 +1790,7 @@ public:
|
||||||
|
|
||||||
IMPLEMENT_CLASS (DLightLevel)
|
IMPLEMENT_CLASS (DLightLevel)
|
||||||
|
|
||||||
void DLightLevel::Serialize (FArchive &arc)
|
void DLightLevel::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << destlevel << speed;
|
arc << destlevel << speed;
|
||||||
|
|
|
@ -29,7 +29,7 @@ public:
|
||||||
void Tick ();
|
void Tick ();
|
||||||
void SetWeapon (EMarineWeapon);
|
void SetWeapon (EMarineWeapon);
|
||||||
void SetSprite (PClassActor *source);
|
void SetSprite (PClassActor *source);
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
|
|
||||||
int CurrentWeapon;
|
int CurrentWeapon;
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ static FRandom pr_m_fireshotgun2 ("SMarineFireSSG");
|
||||||
|
|
||||||
IMPLEMENT_CLASS (AScriptedMarine)
|
IMPLEMENT_CLASS (AScriptedMarine)
|
||||||
|
|
||||||
void AScriptedMarine::Serialize (FArchive &arc)
|
void AScriptedMarine::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
|
|
||||||
|
|
|
@ -866,13 +866,13 @@ class ARainTracker : public AInventory
|
||||||
{
|
{
|
||||||
DECLARE_CLASS (ARainTracker, AInventory)
|
DECLARE_CLASS (ARainTracker, AInventory)
|
||||||
public:
|
public:
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
AActor *Rain1, *Rain2;
|
AActor *Rain1, *Rain2;
|
||||||
};
|
};
|
||||||
|
|
||||||
IMPLEMENT_CLASS (ARainTracker)
|
IMPLEMENT_CLASS (ARainTracker)
|
||||||
|
|
||||||
void ARainTracker::Serialize (FArchive &arc)
|
void ARainTracker::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << Rain1 << Rain2;
|
arc << Rain1 << Rain2;
|
||||||
|
@ -1140,7 +1140,7 @@ class APhoenixRod : public AWeapon
|
||||||
{
|
{
|
||||||
DECLARE_CLASS (APhoenixRod, AWeapon)
|
DECLARE_CLASS (APhoenixRod, AWeapon)
|
||||||
public:
|
public:
|
||||||
void Serialize (FArchive &arc)
|
void Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << FlameCount;
|
arc << FlameCount;
|
||||||
|
|
|
@ -31,7 +31,7 @@ class ACWeapWraithverge : public AClericWeapon
|
||||||
{
|
{
|
||||||
DECLARE_CLASS (ACWeapWraithverge, AClericWeapon)
|
DECLARE_CLASS (ACWeapWraithverge, AClericWeapon)
|
||||||
public:
|
public:
|
||||||
void Serialize (FArchive &arc)
|
void Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << CHolyCount;
|
arc << CHolyCount;
|
||||||
|
|
|
@ -67,13 +67,13 @@ public:
|
||||||
const PClass *StopBall;
|
const PClass *StopBall;
|
||||||
DAngle BallAngle;
|
DAngle BallAngle;
|
||||||
|
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Die (AActor *source, AActor *inflictor, int dmgflags);
|
void Die (AActor *source, AActor *inflictor, int dmgflags);
|
||||||
};
|
};
|
||||||
|
|
||||||
IMPLEMENT_CLASS (AHeresiarch)
|
IMPLEMENT_CLASS (AHeresiarch)
|
||||||
|
|
||||||
void AHeresiarch::Serialize (FArchive &arc)
|
void AHeresiarch::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << StopBall << BallAngle;
|
arc << StopBall << BallAngle;
|
||||||
|
@ -105,7 +105,7 @@ public:
|
||||||
DAngle AngleOffset;
|
DAngle AngleOffset;
|
||||||
DAngle OldAngle;
|
DAngle OldAngle;
|
||||||
|
|
||||||
void Serialize (FArchive &arc)
|
void Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << AngleOffset << OldAngle;
|
arc << AngleOffset << OldAngle;
|
||||||
|
|
|
@ -29,7 +29,7 @@ class AMWeapBloodscourge : public AMageWeapon
|
||||||
{
|
{
|
||||||
DECLARE_CLASS (AMWeapBloodscourge, AMageWeapon)
|
DECLARE_CLASS (AMWeapBloodscourge, AMageWeapon)
|
||||||
public:
|
public:
|
||||||
void Serialize (FArchive &arc)
|
void Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << MStaffCount;
|
arc << MStaffCount;
|
||||||
|
|
|
@ -22,7 +22,7 @@ class AThrustFloor : public AActor
|
||||||
DECLARE_CLASS (AThrustFloor, AActor)
|
DECLARE_CLASS (AThrustFloor, AActor)
|
||||||
HAS_OBJECT_POINTERS
|
HAS_OBJECT_POINTERS
|
||||||
public:
|
public:
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
|
|
||||||
void Activate (AActor *activator);
|
void Activate (AActor *activator);
|
||||||
void Deactivate (AActor *activator);
|
void Deactivate (AActor *activator);
|
||||||
|
@ -34,7 +34,7 @@ IMPLEMENT_POINTY_CLASS (AThrustFloor)
|
||||||
DECLARE_POINTER (DirtClump)
|
DECLARE_POINTER (DirtClump)
|
||||||
END_POINTERS
|
END_POINTERS
|
||||||
|
|
||||||
void AThrustFloor::Serialize (FArchive &arc)
|
void AThrustFloor::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << DirtClump;
|
arc << DirtClump;
|
||||||
|
|
|
@ -79,7 +79,7 @@ void AMinotaurFriend::BeginPlay ()
|
||||||
StartTime = -1;
|
StartTime = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AMinotaurFriend::Serialize (FArchive &arc)
|
void AMinotaurFriend::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << StartTime;
|
arc << StartTime;
|
||||||
|
|
|
@ -23,7 +23,7 @@ public:
|
||||||
void Die (AActor *source, AActor *inflictor, int dmgflags);
|
void Die (AActor *source, AActor *inflictor, int dmgflags);
|
||||||
bool OkayToSwitchTarget (AActor *other);
|
bool OkayToSwitchTarget (AActor *other);
|
||||||
void BeginPlay ();
|
void BeginPlay ();
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif //__RAVENSHARED_H__
|
#endif //__RAVENSHARED_H__
|
||||||
|
|
|
@ -361,7 +361,7 @@ class DCorpsePointer : public DThinker
|
||||||
public:
|
public:
|
||||||
DCorpsePointer (AActor *ptr);
|
DCorpsePointer (AActor *ptr);
|
||||||
void Destroy ();
|
void Destroy ();
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
TObjPtr<AActor> Corpse;
|
TObjPtr<AActor> Corpse;
|
||||||
DWORD Count; // Only the first corpse pointer's count is valid.
|
DWORD Count; // Only the first corpse pointer's count is valid.
|
||||||
private:
|
private:
|
||||||
|
@ -435,7 +435,7 @@ void DCorpsePointer::Destroy ()
|
||||||
Super::Destroy ();
|
Super::Destroy ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DCorpsePointer::Serialize (FArchive &arc)
|
void DCorpsePointer::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize(arc);
|
Super::Serialize(arc);
|
||||||
arc << Corpse << Count;
|
arc << Corpse << Count;
|
||||||
|
|
|
@ -21,7 +21,7 @@ IMPLEMENT_CLASS (AHexenArmor)
|
||||||
//
|
//
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
||||||
void ABasicArmor::Serialize (FArchive &arc)
|
void ABasicArmor::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << SavePercent << BonusCount << MaxAbsorb << MaxFullAbsorb << AbsorbCount << ArmorType << ActualSaveAmount;
|
arc << SavePercent << BonusCount << MaxAbsorb << MaxFullAbsorb << AbsorbCount << ArmorType << ActualSaveAmount;
|
||||||
|
@ -192,7 +192,7 @@ void ABasicArmor::AbsorbDamage (int damage, FName damageType, int &newdamage)
|
||||||
//
|
//
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
||||||
void ABasicArmorPickup::Serialize (FArchive &arc)
|
void ABasicArmorPickup::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << SavePercent << SaveAmount << MaxAbsorb << MaxFullAbsorb;
|
arc << SavePercent << SaveAmount << MaxAbsorb << MaxFullAbsorb;
|
||||||
|
@ -274,7 +274,7 @@ bool ABasicArmorPickup::Use (bool pickup)
|
||||||
//
|
//
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
||||||
void ABasicArmorBonus::Serialize (FArchive &arc)
|
void ABasicArmorBonus::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << SavePercent << SaveAmount << MaxSaveAmount << BonusCount << BonusMax
|
arc << SavePercent << SaveAmount << MaxSaveAmount << BonusCount << BonusMax
|
||||||
|
@ -371,7 +371,7 @@ bool ABasicArmorBonus::Use (bool pickup)
|
||||||
//
|
//
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
||||||
void AHexenArmor::Serialize (FArchive &arc)
|
void AHexenArmor::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << Slots[0] << Slots[1] << Slots[2] << Slots[3]
|
arc << Slots[0] << Slots[1] << Slots[2] << Slots[3]
|
||||||
|
|
|
@ -101,7 +101,7 @@ bool APowerupGiver::Use (bool pickup)
|
||||||
//
|
//
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
||||||
void APowerupGiver::Serialize (FArchive &arc)
|
void APowerupGiver::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << PowerupType;
|
arc << PowerupType;
|
||||||
|
@ -136,7 +136,7 @@ void APowerup::Tick ()
|
||||||
//
|
//
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
||||||
void APowerup::Serialize (FArchive &arc)
|
void APowerup::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << EffectTics << BlendColor << Mode;
|
arc << EffectTics << BlendColor << Mode;
|
||||||
|
@ -901,7 +901,7 @@ IMPLEMENT_CLASS (APowerTorch)
|
||||||
//
|
//
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
||||||
void APowerTorch::Serialize (FArchive &arc)
|
void APowerTorch::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << NewTorch << NewTorchDelta;
|
arc << NewTorch << NewTorchDelta;
|
||||||
|
@ -963,7 +963,7 @@ IMPLEMENT_CLASS (APowerFlight)
|
||||||
//
|
//
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
||||||
void APowerFlight::Serialize (FArchive &arc)
|
void APowerFlight::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << HitCenterFrame;
|
arc << HitCenterFrame;
|
||||||
|
@ -1899,7 +1899,7 @@ IMPLEMENT_CLASS(APowerMorph)
|
||||||
//
|
//
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
||||||
void APowerMorph::Serialize (FArchive &arc)
|
void APowerMorph::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << PlayerClass << MorphStyle << MorphFlash << UnMorphFlash;
|
arc << PlayerClass << MorphStyle << MorphFlash << UnMorphFlash;
|
||||||
|
|
|
@ -16,7 +16,7 @@ public:
|
||||||
virtual bool HandlePickup (AInventory *item);
|
virtual bool HandlePickup (AInventory *item);
|
||||||
virtual AInventory *CreateCopy (AActor *other);
|
virtual AInventory *CreateCopy (AActor *other);
|
||||||
virtual AInventory *CreateTossable ();
|
virtual AInventory *CreateTossable ();
|
||||||
virtual void Serialize (FArchive &arc);
|
virtual void Serialize(FArchive &arc);
|
||||||
virtual void OwnerDied ();
|
virtual void OwnerDied ();
|
||||||
virtual bool GetNoTeleportFreeze();
|
virtual bool GetNoTeleportFreeze();
|
||||||
virtual PalEntry GetBlend ();
|
virtual PalEntry GetBlend ();
|
||||||
|
@ -51,7 +51,7 @@ class APowerupGiver : public AInventory
|
||||||
DECLARE_CLASS_WITH_META (APowerupGiver, AInventory, PClassPowerupGiver)
|
DECLARE_CLASS_WITH_META (APowerupGiver, AInventory, PClassPowerupGiver)
|
||||||
public:
|
public:
|
||||||
virtual bool Use (bool pickup);
|
virtual bool Use (bool pickup);
|
||||||
virtual void Serialize (FArchive &arc);
|
virtual void Serialize(FArchive &arc);
|
||||||
|
|
||||||
|
|
||||||
PClassActor *PowerupType;
|
PClassActor *PowerupType;
|
||||||
|
@ -121,7 +121,7 @@ class APowerTorch : public APowerLightAmp
|
||||||
{
|
{
|
||||||
DECLARE_CLASS (APowerTorch, APowerLightAmp)
|
DECLARE_CLASS (APowerTorch, APowerLightAmp)
|
||||||
public:
|
public:
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
protected:
|
protected:
|
||||||
void DoEffect ();
|
void DoEffect ();
|
||||||
int NewTorch, NewTorchDelta;
|
int NewTorch, NewTorchDelta;
|
||||||
|
@ -132,7 +132,7 @@ class APowerFlight : public APowerup
|
||||||
DECLARE_CLASS (APowerFlight, APowerup)
|
DECLARE_CLASS (APowerFlight, APowerup)
|
||||||
public:
|
public:
|
||||||
bool DrawPowerup (int x, int y);
|
bool DrawPowerup (int x, int y);
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void InitEffect ();
|
void InitEffect ();
|
||||||
|
@ -272,7 +272,7 @@ class APowerMorph : public APowerup
|
||||||
{
|
{
|
||||||
DECLARE_CLASS( APowerMorph, APowerup )
|
DECLARE_CLASS( APowerMorph, APowerup )
|
||||||
public:
|
public:
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void SetNoCallUndoMorph() { bNoCallUndoMorph = true; }
|
void SetNoCallUndoMorph() { bNoCallUndoMorph = true; }
|
||||||
|
|
||||||
FNameNoInit PlayerClass, MorphFlash, UnMorphFlash;
|
FNameNoInit PlayerClass, MorphFlash, UnMorphFlash;
|
||||||
|
|
|
@ -55,7 +55,7 @@ public:
|
||||||
void PostBeginPlay ();
|
void PostBeginPlay ();
|
||||||
void Tick ();
|
void Tick ();
|
||||||
|
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
protected:
|
protected:
|
||||||
DAngle Center;
|
DAngle Center;
|
||||||
DAngle Acc;
|
DAngle Acc;
|
||||||
|
@ -65,7 +65,7 @@ protected:
|
||||||
|
|
||||||
IMPLEMENT_CLASS (ASecurityCamera)
|
IMPLEMENT_CLASS (ASecurityCamera)
|
||||||
|
|
||||||
void ASecurityCamera::Serialize (FArchive &arc)
|
void ASecurityCamera::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << Center << Acc << Delta << Range;
|
arc << Center << Acc << Delta << Range;
|
||||||
|
@ -114,14 +114,14 @@ public:
|
||||||
void PostBeginPlay ();
|
void PostBeginPlay ();
|
||||||
void Tick ();
|
void Tick ();
|
||||||
|
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
protected:
|
protected:
|
||||||
DAngle MaxPitchChange;
|
DAngle MaxPitchChange;
|
||||||
};
|
};
|
||||||
|
|
||||||
IMPLEMENT_CLASS (AAimingCamera)
|
IMPLEMENT_CLASS (AAimingCamera)
|
||||||
|
|
||||||
void AAimingCamera::Serialize (FArchive &arc)
|
void AAimingCamera::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << MaxPitchChange;
|
arc << MaxPitchChange;
|
||||||
|
|
|
@ -122,7 +122,7 @@ void DBaseDecal::Remove ()
|
||||||
WallNext = NULL;
|
WallNext = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DBaseDecal::Serialize (FArchive &arc)
|
void DBaseDecal::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << LeftDistance
|
arc << LeftDistance
|
||||||
|
@ -609,7 +609,7 @@ void DImpactDecal::SerializeTime (FArchive &arc)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DImpactDecal::Serialize (FArchive &arc)
|
void DImpactDecal::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,7 @@ void DFlashFader::Destroy ()
|
||||||
Super::Destroy();
|
Super::Destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DFlashFader::Serialize (FArchive &arc)
|
void DFlashFader::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << TotalTics << StartTic << ForWho;
|
arc << TotalTics << StartTic << ForWho;
|
||||||
|
|
|
@ -35,7 +35,7 @@ DLightningThinker::~DLightningThinker ()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DLightningThinker::Serialize (FArchive &arc)
|
void DLightningThinker::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
short *lights;
|
short *lights;
|
||||||
|
|
|
@ -13,7 +13,7 @@ class DLightningThinker : public DThinker
|
||||||
public:
|
public:
|
||||||
DLightningThinker ();
|
DLightningThinker ();
|
||||||
~DLightningThinker ();
|
~DLightningThinker ();
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Tick ();
|
void Tick ();
|
||||||
void ForceLightning (int mode);
|
void ForceLightning (int mode);
|
||||||
void TerminateLightning();
|
void TerminateLightning();
|
||||||
|
|
|
@ -634,7 +634,7 @@ int AMorphProjectile::DoSpecialDamage (AActor *target, int damage, FName damaget
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AMorphProjectile::Serialize (FArchive &arc)
|
void AMorphProjectile::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << PlayerClass << MonsterClass << Duration << MorphStyle << MorphFlash << UnMorphFlash;
|
arc << PlayerClass << MonsterClass << Duration << MorphStyle << MorphFlash << UnMorphFlash;
|
||||||
|
@ -647,7 +647,7 @@ IMPLEMENT_POINTY_CLASS (AMorphedMonster)
|
||||||
DECLARE_POINTER (UnmorphedMe)
|
DECLARE_POINTER (UnmorphedMe)
|
||||||
END_POINTERS
|
END_POINTERS
|
||||||
|
|
||||||
void AMorphedMonster::Serialize (FArchive &arc)
|
void AMorphedMonster::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << UnmorphedMe << UnmorphTime << MorphStyle << MorphExitFlash << FlagsSave;
|
arc << UnmorphedMe << UnmorphTime << MorphStyle << MorphExitFlash << FlagsSave;
|
||||||
|
|
|
@ -60,7 +60,7 @@ public:
|
||||||
AInterpolationPoint *ScanForLoop ();
|
AInterpolationPoint *ScanForLoop ();
|
||||||
void FormChain ();
|
void FormChain ();
|
||||||
|
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
|
|
||||||
TObjPtr<AInterpolationPoint> Next;
|
TObjPtr<AInterpolationPoint> Next;
|
||||||
};
|
};
|
||||||
|
@ -69,7 +69,7 @@ IMPLEMENT_POINTY_CLASS (AInterpolationPoint)
|
||||||
DECLARE_POINTER (Next)
|
DECLARE_POINTER (Next)
|
||||||
END_POINTERS
|
END_POINTERS
|
||||||
|
|
||||||
void AInterpolationPoint::Serialize (FArchive &arc)
|
void AInterpolationPoint::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << Next;
|
arc << Next;
|
||||||
|
@ -166,7 +166,7 @@ protected:
|
||||||
virtual bool Interpolate ();
|
virtual bool Interpolate ();
|
||||||
virtual void NewNode ();
|
virtual void NewNode ();
|
||||||
|
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
|
|
||||||
bool bActive, bJustStepped;
|
bool bActive, bJustStepped;
|
||||||
TObjPtr<AInterpolationPoint> PrevNode, CurrNode;
|
TObjPtr<AInterpolationPoint> PrevNode, CurrNode;
|
||||||
|
@ -179,7 +179,7 @@ IMPLEMENT_POINTY_CLASS (APathFollower)
|
||||||
DECLARE_POINTER (CurrNode)
|
DECLARE_POINTER (CurrNode)
|
||||||
END_POINTERS
|
END_POINTERS
|
||||||
|
|
||||||
void APathFollower::Serialize (FArchive &arc)
|
void APathFollower::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << bActive << bJustStepped << PrevNode << CurrNode << Time << HoldTime;
|
arc << bActive << bJustStepped << PrevNode << CurrNode << Time << HoldTime;
|
||||||
|
@ -577,7 +577,7 @@ class AMovingCamera : public APathFollower
|
||||||
public:
|
public:
|
||||||
void PostBeginPlay ();
|
void PostBeginPlay ();
|
||||||
|
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
protected:
|
protected:
|
||||||
bool Interpolate ();
|
bool Interpolate ();
|
||||||
|
|
||||||
|
@ -588,7 +588,7 @@ IMPLEMENT_POINTY_CLASS (AMovingCamera)
|
||||||
DECLARE_POINTER (Activator)
|
DECLARE_POINTER (Activator)
|
||||||
END_POINTERS
|
END_POINTERS
|
||||||
|
|
||||||
void AMovingCamera::Serialize (FArchive &arc)
|
void AMovingCamera::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << Activator;
|
arc << Activator;
|
||||||
|
|
|
@ -89,7 +89,7 @@ IMPLEMENT_CLASS (AAmmo)
|
||||||
//
|
//
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
||||||
void AAmmo::Serialize (FArchive &arc)
|
void AAmmo::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << BackpackAmount << BackpackMaxAmount;
|
arc << BackpackAmount << BackpackMaxAmount;
|
||||||
|
@ -514,7 +514,7 @@ void AInventory::Tick ()
|
||||||
//
|
//
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
||||||
void AInventory::Serialize (FArchive &arc)
|
void AInventory::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << Owner << Amount << MaxAmount << RespawnTics << ItemFlags << Icon << PickupSound << SpawnPointClass;
|
arc << Owner << Amount << MaxAmount << RespawnTics << ItemFlags << Icon << PickupSound << SpawnPointClass;
|
||||||
|
@ -1809,7 +1809,7 @@ bool AHealthPickup::Use (bool pickup)
|
||||||
//
|
//
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
||||||
void AHealthPickup::Serialize (FArchive &arc)
|
void AHealthPickup::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize(arc);
|
Super::Serialize(arc);
|
||||||
arc << autousemode;
|
arc << autousemode;
|
||||||
|
@ -1823,7 +1823,7 @@ void AHealthPickup::Serialize (FArchive &arc)
|
||||||
//
|
//
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
||||||
void ABackpackItem::Serialize (FArchive &arc)
|
void ABackpackItem::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << bDepleted;
|
arc << bDepleted;
|
||||||
|
|
|
@ -153,7 +153,7 @@ class AInventory : public AActor
|
||||||
HAS_OBJECT_POINTERS
|
HAS_OBJECT_POINTERS
|
||||||
public:
|
public:
|
||||||
virtual void Touch (AActor *toucher);
|
virtual void Touch (AActor *toucher);
|
||||||
virtual void Serialize (FArchive &arc);
|
virtual void Serialize(FArchive &arc);
|
||||||
|
|
||||||
virtual void MarkPrecacheSounds() const;
|
virtual void MarkPrecacheSounds() const;
|
||||||
virtual void BeginPlay ();
|
virtual void BeginPlay ();
|
||||||
|
@ -254,7 +254,7 @@ class AAmmo : public AInventory
|
||||||
{
|
{
|
||||||
DECLARE_CLASS_WITH_META(AAmmo, AInventory, PClassAmmo)
|
DECLARE_CLASS_WITH_META(AAmmo, AInventory, PClassAmmo)
|
||||||
public:
|
public:
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
AInventory *CreateCopy (AActor *other);
|
AInventory *CreateCopy (AActor *other);
|
||||||
bool HandlePickup (AInventory *item);
|
bool HandlePickup (AInventory *item);
|
||||||
PClassActor *GetParentAmmo () const;
|
PClassActor *GetParentAmmo () const;
|
||||||
|
@ -311,7 +311,7 @@ public:
|
||||||
bool bAltFire; // Set when this weapon's alternate fire is used.
|
bool bAltFire; // Set when this weapon's alternate fire is used.
|
||||||
|
|
||||||
virtual void MarkPrecacheSounds() const;
|
virtual void MarkPrecacheSounds() const;
|
||||||
virtual void Serialize (FArchive &arc);
|
virtual void Serialize(FArchive &arc);
|
||||||
virtual bool ShouldStay ();
|
virtual bool ShouldStay ();
|
||||||
virtual void AttachToOwner (AActor *other);
|
virtual void AttachToOwner (AActor *other);
|
||||||
virtual bool HandlePickup (AInventory *item);
|
virtual bool HandlePickup (AInventory *item);
|
||||||
|
@ -431,7 +431,7 @@ class AHealthPickup : public AInventory
|
||||||
public:
|
public:
|
||||||
int autousemode;
|
int autousemode;
|
||||||
|
|
||||||
virtual void Serialize (FArchive &arc);
|
virtual void Serialize(FArchive &arc);
|
||||||
virtual AInventory *CreateCopy (AActor *other);
|
virtual AInventory *CreateCopy (AActor *other);
|
||||||
virtual AInventory *CreateTossable ();
|
virtual AInventory *CreateTossable ();
|
||||||
virtual bool HandlePickup (AInventory *item);
|
virtual bool HandlePickup (AInventory *item);
|
||||||
|
@ -451,7 +451,7 @@ class ABasicArmor : public AArmor
|
||||||
{
|
{
|
||||||
DECLARE_CLASS (ABasicArmor, AArmor)
|
DECLARE_CLASS (ABasicArmor, AArmor)
|
||||||
public:
|
public:
|
||||||
virtual void Serialize (FArchive &arc);
|
virtual void Serialize(FArchive &arc);
|
||||||
virtual void Tick ();
|
virtual void Tick ();
|
||||||
virtual AInventory *CreateCopy (AActor *other);
|
virtual AInventory *CreateCopy (AActor *other);
|
||||||
virtual bool HandlePickup (AInventory *item);
|
virtual bool HandlePickup (AInventory *item);
|
||||||
|
@ -471,7 +471,7 @@ class ABasicArmorPickup : public AArmor
|
||||||
{
|
{
|
||||||
DECLARE_CLASS (ABasicArmorPickup, AArmor)
|
DECLARE_CLASS (ABasicArmorPickup, AArmor)
|
||||||
public:
|
public:
|
||||||
virtual void Serialize (FArchive &arc);
|
virtual void Serialize(FArchive &arc);
|
||||||
virtual AInventory *CreateCopy (AActor *other);
|
virtual AInventory *CreateCopy (AActor *other);
|
||||||
virtual bool Use (bool pickup);
|
virtual bool Use (bool pickup);
|
||||||
|
|
||||||
|
@ -486,7 +486,7 @@ class ABasicArmorBonus : public AArmor
|
||||||
{
|
{
|
||||||
DECLARE_CLASS (ABasicArmorBonus, AArmor)
|
DECLARE_CLASS (ABasicArmorBonus, AArmor)
|
||||||
public:
|
public:
|
||||||
virtual void Serialize (FArchive &arc);
|
virtual void Serialize(FArchive &arc);
|
||||||
virtual AInventory *CreateCopy (AActor *other);
|
virtual AInventory *CreateCopy (AActor *other);
|
||||||
virtual bool Use (bool pickup);
|
virtual bool Use (bool pickup);
|
||||||
|
|
||||||
|
@ -505,7 +505,7 @@ class AHexenArmor : public AArmor
|
||||||
{
|
{
|
||||||
DECLARE_CLASS (AHexenArmor, AArmor)
|
DECLARE_CLASS (AHexenArmor, AArmor)
|
||||||
public:
|
public:
|
||||||
virtual void Serialize (FArchive &arc);
|
virtual void Serialize(FArchive &arc);
|
||||||
virtual AInventory *CreateCopy (AActor *other);
|
virtual AInventory *CreateCopy (AActor *other);
|
||||||
virtual AInventory *CreateTossable ();
|
virtual AInventory *CreateTossable ();
|
||||||
virtual bool HandlePickup (AInventory *item);
|
virtual bool HandlePickup (AInventory *item);
|
||||||
|
@ -533,7 +533,7 @@ class APuzzleItem : public AInventory
|
||||||
{
|
{
|
||||||
DECLARE_CLASS_WITH_META(APuzzleItem, AInventory, PClassPuzzleItem)
|
DECLARE_CLASS_WITH_META(APuzzleItem, AInventory, PClassPuzzleItem)
|
||||||
public:
|
public:
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
bool ShouldStay ();
|
bool ShouldStay ();
|
||||||
bool Use (bool pickup);
|
bool Use (bool pickup);
|
||||||
bool HandlePickup (AInventory *item);
|
bool HandlePickup (AInventory *item);
|
||||||
|
@ -555,7 +555,7 @@ class ABackpackItem : public AInventory
|
||||||
{
|
{
|
||||||
DECLARE_CLASS (ABackpackItem, AInventory)
|
DECLARE_CLASS (ABackpackItem, AInventory)
|
||||||
public:
|
public:
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
bool HandlePickup (AInventory *item);
|
bool HandlePickup (AInventory *item);
|
||||||
AInventory *CreateCopy (AActor *other);
|
AInventory *CreateCopy (AActor *other);
|
||||||
AInventory *CreateTossable ();
|
AInventory *CreateTossable ();
|
||||||
|
|
|
@ -20,7 +20,7 @@ void PClassPuzzleItem::DeriveData(PClass *newclass)
|
||||||
|
|
||||||
IMPLEMENT_CLASS(APuzzleItem)
|
IMPLEMENT_CLASS(APuzzleItem)
|
||||||
|
|
||||||
void APuzzleItem::Serialize (FArchive &arc)
|
void APuzzleItem::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << PuzzleItemNumber;
|
arc << PuzzleItemNumber;
|
||||||
|
|
|
@ -64,7 +64,7 @@ DEarthquake::DEarthquake(AActor *center, int intensityX, int intensityY, int int
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
void DEarthquake::Serialize (FArchive &arc)
|
void DEarthquake::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << m_Spot << m_Intensity << m_Countdown
|
arc << m_Spot << m_Intensity << m_Countdown
|
||||||
|
|
|
@ -24,7 +24,7 @@ public:
|
||||||
DBaseDecal (const AActor *actor);
|
DBaseDecal (const AActor *actor);
|
||||||
DBaseDecal (const DBaseDecal *basis);
|
DBaseDecal (const DBaseDecal *basis);
|
||||||
|
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Destroy ();
|
void Destroy ();
|
||||||
FTextureID StickToWall(side_t *wall, double x, double y, F3DFloor * ffloor);
|
FTextureID StickToWall(side_t *wall, double x, double y, F3DFloor * ffloor);
|
||||||
double GetRealZ (const side_t *wall) const;
|
double GetRealZ (const side_t *wall) const;
|
||||||
|
@ -70,7 +70,7 @@ public:
|
||||||
void BeginPlay ();
|
void BeginPlay ();
|
||||||
void Destroy ();
|
void Destroy ();
|
||||||
|
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
static void SerializeTime (FArchive &arc);
|
static void SerializeTime (FArchive &arc);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -122,7 +122,7 @@ public:
|
||||||
float r2, float g2, float b2, float a2,
|
float r2, float g2, float b2, float a2,
|
||||||
float time, AActor *who);
|
float time, AActor *who);
|
||||||
void Destroy ();
|
void Destroy ();
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Tick ();
|
void Tick ();
|
||||||
AActor *WhoFor() { return ForWho; }
|
AActor *WhoFor() { return ForWho; }
|
||||||
void Cancel ();
|
void Cancel ();
|
||||||
|
@ -165,7 +165,7 @@ public:
|
||||||
int damrad, int tremrad, FSoundID quakesfx, int flags,
|
int damrad, int tremrad, FSoundID quakesfx, int flags,
|
||||||
double waveSpeedX, double waveSpeedY, double waveSpeedZ, int falloff, int highpoint, double rollIntensity, double rollWave);
|
double waveSpeedX, double waveSpeedY, double waveSpeedZ, int falloff, int highpoint, double rollIntensity, double rollWave);
|
||||||
|
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Tick ();
|
void Tick ();
|
||||||
TObjPtr<AActor> m_Spot;
|
TObjPtr<AActor> m_Spot;
|
||||||
double m_TremorRadius, m_DamageRadius;
|
double m_TremorRadius, m_DamageRadius;
|
||||||
|
@ -194,7 +194,7 @@ class AMorphProjectile : public AActor
|
||||||
DECLARE_CLASS (AMorphProjectile, AActor)
|
DECLARE_CLASS (AMorphProjectile, AActor)
|
||||||
public:
|
public:
|
||||||
int DoSpecialDamage (AActor *target, int damage, FName damagetype);
|
int DoSpecialDamage (AActor *target, int damage, FName damagetype);
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
|
|
||||||
FNameNoInit PlayerClass, MonsterClass, MorphFlash, UnMorphFlash;
|
FNameNoInit PlayerClass, MonsterClass, MorphFlash, UnMorphFlash;
|
||||||
int Duration, MorphStyle;
|
int Duration, MorphStyle;
|
||||||
|
@ -206,7 +206,7 @@ class AMorphedMonster : public AActor
|
||||||
HAS_OBJECT_POINTERS
|
HAS_OBJECT_POINTERS
|
||||||
public:
|
public:
|
||||||
void Tick ();
|
void Tick ();
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Die (AActor *source, AActor *inflictor, int dmgflags);
|
void Die (AActor *source, AActor *inflictor, int dmgflags);
|
||||||
void Destroy ();
|
void Destroy ();
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,7 @@ class ASoundSequenceSlot : public AActor
|
||||||
DECLARE_CLASS (ASoundSequenceSlot, AActor)
|
DECLARE_CLASS (ASoundSequenceSlot, AActor)
|
||||||
HAS_OBJECT_POINTERS
|
HAS_OBJECT_POINTERS
|
||||||
public:
|
public:
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
|
|
||||||
TObjPtr<DSeqNode> Sequence;
|
TObjPtr<DSeqNode> Sequence;
|
||||||
};
|
};
|
||||||
|
@ -89,7 +89,7 @@ END_POINTERS
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
void ASoundSequenceSlot::Serialize (FArchive &arc)
|
void ASoundSequenceSlot::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << Sequence;
|
arc << Sequence;
|
||||||
|
|
|
@ -17,7 +17,7 @@ void PClassWeaponPiece::ReplaceClassRef(PClass *oldclass, PClass *newclass)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void AWeaponHolder::Serialize (FArchive &arc)
|
void AWeaponHolder::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize(arc);
|
Super::Serialize(arc);
|
||||||
arc << PieceMask << PieceWeapon;
|
arc << PieceMask << PieceWeapon;
|
||||||
|
@ -29,7 +29,7 @@ IMPLEMENT_POINTY_CLASS (AWeaponPiece)
|
||||||
END_POINTERS
|
END_POINTERS
|
||||||
|
|
||||||
|
|
||||||
void AWeaponPiece::Serialize (FArchive &arc)
|
void AWeaponPiece::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << WeaponClass << FullWeapon << PieceValue;
|
arc << WeaponClass << FullWeapon << PieceValue;
|
||||||
|
|
|
@ -15,7 +15,7 @@ class AWeaponPiece : public AInventory
|
||||||
protected:
|
protected:
|
||||||
bool PrivateShouldStay ();
|
bool PrivateShouldStay ();
|
||||||
public:
|
public:
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
bool TryPickup (AActor *&toucher);
|
bool TryPickup (AActor *&toucher);
|
||||||
bool TryPickupRestricted (AActor *&toucher);
|
bool TryPickupRestricted (AActor *&toucher);
|
||||||
bool ShouldStay ();
|
bool ShouldStay ();
|
||||||
|
@ -37,5 +37,5 @@ public:
|
||||||
int PieceMask;
|
int PieceMask;
|
||||||
const PClass * PieceWeapon;
|
const PClass * PieceWeapon;
|
||||||
|
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
};
|
};
|
||||||
|
|
|
@ -73,7 +73,7 @@ void PClassWeapon::ReplaceClassRef(PClass *oldclass, PClass *newclass)
|
||||||
//
|
//
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
||||||
void AWeapon::Serialize (FArchive &arc)
|
void AWeapon::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << WeaponFlags
|
arc << WeaponFlags
|
||||||
|
|
|
@ -504,7 +504,7 @@ DHUDMessageFadeOut::DHUDMessageFadeOut (FFont *font, const char *text, float x,
|
||||||
//
|
//
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
||||||
void DHUDMessageFadeOut::Serialize (FArchive &arc)
|
void DHUDMessageFadeOut::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << FadeOutTics;
|
arc << FadeOutTics;
|
||||||
|
@ -609,7 +609,7 @@ DHUDMessageFadeInOut::DHUDMessageFadeInOut (FFont *font, const char *text, float
|
||||||
//
|
//
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
||||||
void DHUDMessageFadeInOut::Serialize (FArchive &arc)
|
void DHUDMessageFadeInOut::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << FadeInTics;
|
arc << FadeInTics;
|
||||||
|
@ -718,7 +718,7 @@ DHUDMessageTypeOnFadeOut::DHUDMessageTypeOnFadeOut (FFont *font, const char *tex
|
||||||
//
|
//
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
||||||
void DHUDMessageTypeOnFadeOut::Serialize (FArchive &arc)
|
void DHUDMessageTypeOnFadeOut::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << TypeOnTime << CurrLine << LineVisible << LineLen;
|
arc << TypeOnTime << CurrLine << LineVisible << LineLen;
|
||||||
|
|
|
@ -71,7 +71,7 @@ public:
|
||||||
EColorRange textColor, float holdTime);
|
EColorRange textColor, float holdTime);
|
||||||
virtual ~DHUDMessage ();
|
virtual ~DHUDMessage ();
|
||||||
|
|
||||||
virtual void Serialize (FArchive &arc);
|
virtual void Serialize(FArchive &arc);
|
||||||
|
|
||||||
void Draw (int bottom, int visibility);
|
void Draw (int bottom, int visibility);
|
||||||
virtual void ResetText (const char *text);
|
virtual void ResetText (const char *text);
|
||||||
|
@ -157,7 +157,7 @@ public:
|
||||||
DHUDMessageFadeOut (FFont *font, const char *text, float x, float y, int hudwidth, int hudheight,
|
DHUDMessageFadeOut (FFont *font, const char *text, float x, float y, int hudwidth, int hudheight,
|
||||||
EColorRange textColor, float holdTime, float fadeOutTime);
|
EColorRange textColor, float holdTime, float fadeOutTime);
|
||||||
|
|
||||||
virtual void Serialize (FArchive &arc);
|
virtual void Serialize(FArchive &arc);
|
||||||
virtual void DoDraw (int linenum, int x, int y, bool clean, int hudheight);
|
virtual void DoDraw (int linenum, int x, int y, bool clean, int hudheight);
|
||||||
virtual bool Tick ();
|
virtual bool Tick ();
|
||||||
|
|
||||||
|
@ -176,7 +176,7 @@ public:
|
||||||
DHUDMessageFadeInOut (FFont *font, const char *text, float x, float y, int hudwidth, int hudheight,
|
DHUDMessageFadeInOut (FFont *font, const char *text, float x, float y, int hudwidth, int hudheight,
|
||||||
EColorRange textColor, float holdTime, float fadeInTime, float fadeOutTime);
|
EColorRange textColor, float holdTime, float fadeInTime, float fadeOutTime);
|
||||||
|
|
||||||
virtual void Serialize (FArchive &arc);
|
virtual void Serialize(FArchive &arc);
|
||||||
virtual void DoDraw (int linenum, int x, int y, bool clean, int hudheight);
|
virtual void DoDraw (int linenum, int x, int y, bool clean, int hudheight);
|
||||||
virtual bool Tick ();
|
virtual bool Tick ();
|
||||||
|
|
||||||
|
@ -195,7 +195,7 @@ public:
|
||||||
DHUDMessageTypeOnFadeOut (FFont *font, const char *text, float x, float y, int hudwidth, int hudheight,
|
DHUDMessageTypeOnFadeOut (FFont *font, const char *text, float x, float y, int hudwidth, int hudheight,
|
||||||
EColorRange textColor, float typeTime, float holdTime, float fadeOutTime);
|
EColorRange textColor, float typeTime, float holdTime, float fadeOutTime);
|
||||||
|
|
||||||
virtual void Serialize (FArchive &arc);
|
virtual void Serialize(FArchive &arc);
|
||||||
virtual void DoDraw (int linenum, int x, int y, bool clean, int hudheight);
|
virtual void DoDraw (int linenum, int x, int y, bool clean, int hudheight);
|
||||||
virtual bool Tick ();
|
virtual bool Tick ();
|
||||||
virtual void ScreenSizeChanged ();
|
virtual void ScreenSizeChanged ();
|
||||||
|
@ -355,7 +355,7 @@ public:
|
||||||
|
|
||||||
static void AddBlend (float r, float g, float b, float a, float v_blend[4]);
|
static void AddBlend (float r, float g, float b, float a, float v_blend[4]);
|
||||||
|
|
||||||
virtual void Serialize (FArchive &arc);
|
virtual void Serialize(FArchive &arc);
|
||||||
|
|
||||||
virtual void Tick ();
|
virtual void Tick ();
|
||||||
virtual void Draw (EHudState state);
|
virtual void Draw (EHudState state);
|
||||||
|
|
|
@ -1654,7 +1654,7 @@ void DBaseStatusBar::ReceivedWeapon (AWeapon *weapon)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void DBaseStatusBar::Serialize (FArchive &arc)
|
void DBaseStatusBar::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
for (size_t i = 0; i < countof(Messages); ++i)
|
for (size_t i = 0; i < countof(Messages); ++i)
|
||||||
{
|
{
|
||||||
|
|
|
@ -55,7 +55,7 @@ class ASigil : public AWeapon
|
||||||
public:
|
public:
|
||||||
bool HandlePickup (AInventory *item);
|
bool HandlePickup (AInventory *item);
|
||||||
AInventory *CreateCopy (AActor *other);
|
AInventory *CreateCopy (AActor *other);
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
bool SpecialDropAction (AActor *dropper);
|
bool SpecialDropAction (AActor *dropper);
|
||||||
static int GiveSigilPiece (AActor *daPlayer);
|
static int GiveSigilPiece (AActor *daPlayer);
|
||||||
void BeginPlay();
|
void BeginPlay();
|
||||||
|
|
|
@ -753,7 +753,7 @@ void ASigil::BeginPlay()
|
||||||
//
|
//
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
||||||
void ASigil::Serialize (FArchive &arc)
|
void ASigil::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << NumPieces << DownPieces;
|
arc << NumPieces << DownPieces;
|
||||||
|
|
|
@ -1367,7 +1367,7 @@ public:
|
||||||
int tag, int height, int special,
|
int tag, int height, int special,
|
||||||
int arg0, int arg1, int arg2, int arg3, int arg4);
|
int arg0, int arg1, int arg2, int arg3, int arg4);
|
||||||
void Tick ();
|
void Tick ();
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
private:
|
private:
|
||||||
sector_t *Sector;
|
sector_t *Sector;
|
||||||
double WatchD, LastD;
|
double WatchD, LastD;
|
||||||
|
@ -1417,7 +1417,7 @@ DPlaneWatcher::DPlaneWatcher (AActor *it, line_t *line, int lineSide, bool ceili
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DPlaneWatcher::Serialize (FArchive &arc)
|
void DPlaneWatcher::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
|
|
||||||
|
@ -2927,7 +2927,7 @@ DACSThinker::~DACSThinker ()
|
||||||
ActiveThinker = NULL;
|
ActiveThinker = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DACSThinker::Serialize (FArchive &arc)
|
void DACSThinker::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
int scriptnum;
|
int scriptnum;
|
||||||
int scriptcount = 0;
|
int scriptcount = 0;
|
||||||
|
@ -3056,7 +3056,7 @@ inline FArchive &operator<< (FArchive &arc, DLevelScript::EScriptState &state)
|
||||||
return arc;
|
return arc;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DLevelScript::Serialize (FArchive &arc)
|
void DLevelScript::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
DWORD i;
|
DWORD i;
|
||||||
|
|
||||||
|
|
|
@ -859,7 +859,7 @@ public:
|
||||||
const int *args, int argcount, int flags);
|
const int *args, int argcount, int flags);
|
||||||
~DLevelScript ();
|
~DLevelScript ();
|
||||||
|
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
int RunScript ();
|
int RunScript ();
|
||||||
|
|
||||||
inline void SetState (EScriptState newstate) { state = newstate; }
|
inline void SetState (EScriptState newstate) { state = newstate; }
|
||||||
|
@ -944,7 +944,7 @@ public:
|
||||||
DACSThinker ();
|
DACSThinker ();
|
||||||
~DACSThinker ();
|
~DACSThinker ();
|
||||||
|
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Tick ();
|
void Tick ();
|
||||||
|
|
||||||
typedef TMap<int, DLevelScript *> ScriptMap;
|
typedef TMap<int, DLevelScript *> ScriptMap;
|
||||||
|
|
|
@ -72,7 +72,7 @@ DCeiling::DCeiling ()
|
||||||
//
|
//
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
||||||
void DCeiling::Serialize (FArchive &arc)
|
void DCeiling::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << m_Type
|
arc << m_Type
|
||||||
|
|
|
@ -59,7 +59,7 @@ DDoor::DDoor ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void DDoor::Serialize (FArchive &arc)
|
void DDoor::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << m_Type
|
arc << m_Type
|
||||||
|
@ -530,7 +530,7 @@ DAnimatedDoor::DAnimatedDoor (sector_t *sec)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void DAnimatedDoor::Serialize (FArchive &arc)
|
void DAnimatedDoor::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
|
|
||||||
|
|
|
@ -84,7 +84,7 @@ DFloor::DFloor ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void DFloor::Serialize (FArchive &arc)
|
void DFloor::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << m_Type
|
arc << m_Type
|
||||||
|
@ -855,7 +855,7 @@ DElevator::DElevator (sector_t *sec)
|
||||||
m_Interp_Ceiling = sec->SetInterpolation(sector_t::CeilingMove, true);
|
m_Interp_Ceiling = sec->SetInterpolation(sector_t::CeilingMove, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DElevator::Serialize (FArchive &arc)
|
void DElevator::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << m_Type
|
arc << m_Type
|
||||||
|
@ -1136,7 +1136,7 @@ DWaggleBase::DWaggleBase ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void DWaggleBase::Serialize (FArchive &arc)
|
void DWaggleBase::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << m_OriginalDist
|
arc << m_OriginalDist
|
||||||
|
|
|
@ -197,7 +197,7 @@ DFireFlicker::DFireFlicker ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void DFireFlicker::Serialize (FArchive &arc)
|
void DFireFlicker::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << m_Count << m_MaxLight << m_MinLight;
|
arc << m_Count << m_MaxLight << m_MinLight;
|
||||||
|
@ -262,7 +262,7 @@ DFlicker::DFlicker ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void DFlicker::Serialize (FArchive &arc)
|
void DFlicker::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << m_Count << m_MaxLight << m_MinLight;
|
arc << m_Count << m_MaxLight << m_MinLight;
|
||||||
|
@ -336,7 +336,7 @@ DLightFlash::DLightFlash ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void DLightFlash::Serialize (FArchive &arc)
|
void DLightFlash::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << m_Count << m_MaxLight << m_MaxTime << m_MinLight << m_MinTime;
|
arc << m_Count << m_MaxLight << m_MaxTime << m_MinLight << m_MinTime;
|
||||||
|
@ -407,7 +407,7 @@ DStrobe::DStrobe ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void DStrobe::Serialize (FArchive &arc)
|
void DStrobe::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << m_Count << m_MaxLight << m_MinLight << m_DarkTime << m_BrightTime;
|
arc << m_Count << m_MaxLight << m_MinLight << m_DarkTime << m_BrightTime;
|
||||||
|
@ -661,7 +661,7 @@ DGlow::DGlow ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void DGlow::Serialize (FArchive &arc)
|
void DGlow::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << m_Direction << m_MaxLight << m_MinLight;
|
arc << m_Direction << m_MaxLight << m_MinLight;
|
||||||
|
@ -728,7 +728,7 @@ DGlow2::DGlow2 ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void DGlow2::Serialize (FArchive &arc)
|
void DGlow2::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << m_End << m_MaxTics << m_OneShot << m_Start << m_Tics;
|
arc << m_End << m_MaxTics << m_OneShot << m_Start << m_Tics;
|
||||||
|
@ -857,7 +857,7 @@ DPhased::DPhased ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void DPhased::Serialize (FArchive &arc)
|
void DPhased::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << m_BaseLevel << m_Phase;
|
arc << m_BaseLevel << m_Phase;
|
||||||
|
|
|
@ -72,7 +72,7 @@ void DPillar::Destroy()
|
||||||
Super::Destroy();
|
Super::Destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DPillar::Serialize (FArchive &arc)
|
void DPillar::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << m_Type
|
arc << m_Type
|
||||||
|
|
|
@ -56,7 +56,7 @@ DPlat::DPlat ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void DPlat::Serialize (FArchive &arc)
|
void DPlat::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << m_Speed
|
arc << m_Speed
|
||||||
|
|
|
@ -52,7 +52,7 @@ public:
|
||||||
|
|
||||||
DPusher ();
|
DPusher ();
|
||||||
DPusher (EPusher type, line_t *l, int magnitude, int angle, AActor *source, int affectee);
|
DPusher (EPusher type, line_t *l, int magnitude, int angle, AActor *source, int affectee);
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
int CheckForSectorMatch (EPusher type, int tag);
|
int CheckForSectorMatch (EPusher type, int tag);
|
||||||
void ChangeValues (int magnitude, int angle)
|
void ChangeValues (int magnitude, int angle)
|
||||||
{
|
{
|
||||||
|
@ -91,7 +91,7 @@ inline FArchive &operator<< (FArchive &arc, DPusher::EPusher &type)
|
||||||
return arc;
|
return arc;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DPusher::Serialize (FArchive &arc)
|
void DPusher::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << m_Type
|
arc << m_Type
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -46,7 +46,7 @@ public:
|
||||||
DScroller (double dx, double dy, const line_t *l, int control, int accel, EScrollPos scrollpos = EScrollPos::scw_all);
|
DScroller (double dx, double dy, const line_t *l, int control, int accel, EScrollPos scrollpos = EScrollPos::scw_all);
|
||||||
void Destroy();
|
void Destroy();
|
||||||
|
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Tick ();
|
void Tick ();
|
||||||
|
|
||||||
bool AffectsWall (int wallnum) const { return m_Type == EScroll::sc_side && m_Affectee == wallnum; }
|
bool AffectsWall (int wallnum) const { return m_Type == EScroll::sc_side && m_Affectee == wallnum; }
|
||||||
|
@ -114,7 +114,7 @@ EScrollPos operator &(EScrollPos one, EScrollPos two)
|
||||||
//
|
//
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
void DScroller::Serialize (FArchive &arc)
|
void DScroller::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << m_Type
|
arc << m_Type
|
||||||
|
|
|
@ -648,7 +648,7 @@ class DLightTransfer : public DThinker
|
||||||
DLightTransfer() {}
|
DLightTransfer() {}
|
||||||
public:
|
public:
|
||||||
DLightTransfer (sector_t *srcSec, int target, bool copyFloor);
|
DLightTransfer (sector_t *srcSec, int target, bool copyFloor);
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Tick ();
|
void Tick ();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -662,7 +662,7 @@ protected:
|
||||||
|
|
||||||
IMPLEMENT_CLASS (DLightTransfer)
|
IMPLEMENT_CLASS (DLightTransfer)
|
||||||
|
|
||||||
void DLightTransfer::Serialize (FArchive &arc)
|
void DLightTransfer::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << LastLight;
|
arc << LastLight;
|
||||||
|
@ -736,7 +736,7 @@ class DWallLightTransfer : public DThinker
|
||||||
DWallLightTransfer() {}
|
DWallLightTransfer() {}
|
||||||
public:
|
public:
|
||||||
DWallLightTransfer (sector_t *srcSec, int target, BYTE flags);
|
DWallLightTransfer (sector_t *srcSec, int target, BYTE flags);
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Tick ();
|
void Tick ();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -750,7 +750,7 @@ protected:
|
||||||
|
|
||||||
IMPLEMENT_CLASS (DWallLightTransfer)
|
IMPLEMENT_CLASS (DWallLightTransfer)
|
||||||
|
|
||||||
void DWallLightTransfer::Serialize (FArchive &arc)
|
void DWallLightTransfer::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << LastLight;
|
arc << LastLight;
|
||||||
|
|
16
src/p_spec.h
16
src/p_spec.h
|
@ -184,7 +184,7 @@ public:
|
||||||
platRaiseAndStayLockout,
|
platRaiseAndStayLockout,
|
||||||
};
|
};
|
||||||
|
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Tick ();
|
void Tick ();
|
||||||
|
|
||||||
bool IsLift() const { return m_Type == platDownWaitUpStay || m_Type == platDownWaitUpStayStone; }
|
bool IsLift() const { return m_Type == platDownWaitUpStay || m_Type == platDownWaitUpStayStone; }
|
||||||
|
@ -241,7 +241,7 @@ public:
|
||||||
DPillar (sector_t *sector, EPillar type, double speed, double height,
|
DPillar (sector_t *sector, EPillar type, double speed, double height,
|
||||||
double height2, int crush, bool hexencrush);
|
double height2, int crush, bool hexencrush);
|
||||||
|
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Tick ();
|
void Tick ();
|
||||||
void Destroy();
|
void Destroy();
|
||||||
|
|
||||||
|
@ -283,7 +283,7 @@ public:
|
||||||
DDoor (sector_t *sector);
|
DDoor (sector_t *sector);
|
||||||
DDoor (sector_t *sec, EVlDoor type, double speed, int delay, int lightTag, int topcountdown);
|
DDoor (sector_t *sec, EVlDoor type, double speed, int delay, int lightTag, int topcountdown);
|
||||||
|
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Tick ();
|
void Tick ();
|
||||||
protected:
|
protected:
|
||||||
EVlDoor m_Type;
|
EVlDoor m_Type;
|
||||||
|
@ -325,7 +325,7 @@ public:
|
||||||
DAnimatedDoor (sector_t *sector);
|
DAnimatedDoor (sector_t *sector);
|
||||||
DAnimatedDoor (sector_t *sec, line_t *line, int speed, int delay, FDoorAnimation *anim);
|
DAnimatedDoor (sector_t *sec, line_t *line, int speed, int delay, FDoorAnimation *anim);
|
||||||
|
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Tick ();
|
void Tick ();
|
||||||
|
|
||||||
bool StartClosing ();
|
bool StartClosing ();
|
||||||
|
@ -405,7 +405,7 @@ public:
|
||||||
DCeiling (sector_t *sec);
|
DCeiling (sector_t *sec);
|
||||||
DCeiling (sector_t *sec, double speed1, double speed2, int silent);
|
DCeiling (sector_t *sec, double speed1, double speed2, int silent);
|
||||||
|
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Tick ();
|
void Tick ();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -508,7 +508,7 @@ public:
|
||||||
|
|
||||||
DFloor (sector_t *sec);
|
DFloor (sector_t *sec);
|
||||||
|
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Tick ();
|
void Tick ();
|
||||||
|
|
||||||
//protected:
|
//protected:
|
||||||
|
@ -573,7 +573,7 @@ public:
|
||||||
DElevator (sector_t *sec);
|
DElevator (sector_t *sec);
|
||||||
|
|
||||||
void Destroy();
|
void Destroy();
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Tick ();
|
void Tick ();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -601,7 +601,7 @@ class DWaggleBase : public DMover
|
||||||
public:
|
public:
|
||||||
DWaggleBase (sector_t *sec);
|
DWaggleBase (sector_t *sec);
|
||||||
|
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
double m_OriginalDist;
|
double m_OriginalDist;
|
||||||
|
|
|
@ -61,7 +61,7 @@ public:
|
||||||
DActiveButton ();
|
DActiveButton ();
|
||||||
DActiveButton (side_t *, int, FSwitchDef *, const DVector2 &pos, bool flippable);
|
DActiveButton (side_t *, int, FSwitchDef *, const DVector2 &pos, bool flippable);
|
||||||
|
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Tick ();
|
void Tick ();
|
||||||
|
|
||||||
side_t *m_Side;
|
side_t *m_Side;
|
||||||
|
@ -354,7 +354,7 @@ DActiveButton::DActiveButton (side_t *side, int Where, FSwitchDef *Switch,
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
void DActiveButton::Serialize (FArchive &arc)
|
void DActiveButton::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << m_Side << m_Part << m_SwitchDef << m_Frame << m_Timer << bFlippable << m_Pos << bReturning;
|
arc << m_Side << m_Part << m_SwitchDef << m_Frame << m_Timer << bFlippable << m_Pos << bReturning;
|
||||||
|
|
|
@ -631,7 +631,7 @@ END_POINTERS
|
||||||
|
|
||||||
IMPLEMENT_CLASS (APlayerChunk)
|
IMPLEMENT_CLASS (APlayerChunk)
|
||||||
|
|
||||||
void APlayerPawn::Serialize (FArchive &arc)
|
void APlayerPawn::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
|
|
||||||
|
@ -3001,7 +3001,7 @@ void P_UnPredictPlayer ()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void player_t::Serialize (FArchive &arc)
|
void player_t::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
FString skinname;
|
FString skinname;
|
||||||
|
|
|
@ -87,7 +87,7 @@ class DMovePoly : public DPolyAction
|
||||||
DECLARE_CLASS (DMovePoly, DPolyAction)
|
DECLARE_CLASS (DMovePoly, DPolyAction)
|
||||||
public:
|
public:
|
||||||
DMovePoly (int polyNum);
|
DMovePoly (int polyNum);
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Tick ();
|
void Tick ();
|
||||||
protected:
|
protected:
|
||||||
DMovePoly ();
|
DMovePoly ();
|
||||||
|
@ -118,7 +118,7 @@ class DPolyDoor : public DMovePoly
|
||||||
DECLARE_CLASS (DPolyDoor, DMovePoly)
|
DECLARE_CLASS (DPolyDoor, DMovePoly)
|
||||||
public:
|
public:
|
||||||
DPolyDoor (int polyNum, podoortype_t type);
|
DPolyDoor (int polyNum, podoortype_t type);
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void Tick ();
|
void Tick ();
|
||||||
protected:
|
protected:
|
||||||
DAngle m_Direction;
|
DAngle m_Direction;
|
||||||
|
@ -199,7 +199,7 @@ DPolyAction::DPolyAction ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void DPolyAction::Serialize (FArchive &arc)
|
void DPolyAction::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << m_PolyObj << m_Speed << m_Dist << m_Interpolation;
|
arc << m_PolyObj << m_Speed << m_Dist << m_Interpolation;
|
||||||
|
@ -277,7 +277,7 @@ DMovePoly::DMovePoly ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void DMovePoly::Serialize (FArchive &arc)
|
void DMovePoly::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << m_Angle << m_Speed;
|
arc << m_Angle << m_Speed;
|
||||||
|
@ -331,7 +331,7 @@ DPolyDoor::DPolyDoor ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void DPolyDoor::Serialize (FArchive &arc)
|
void DPolyDoor::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << m_Direction << m_TotalDist << m_Tics << m_WaitTics << m_Type << m_Close;
|
arc << m_Direction << m_TotalDist << m_Tics << m_WaitTics << m_Type << m_Close;
|
||||||
|
|
|
@ -1041,7 +1041,7 @@ void FCanvasTextureInfo::EmptyList ()
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
void FCanvasTextureInfo::Serialize (FArchive &arc)
|
void FCanvasTextureInfo::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
if (arc.IsStoring ())
|
if (arc.IsStoring ())
|
||||||
{
|
{
|
||||||
|
|
|
@ -113,7 +113,7 @@ struct FCanvasTextureInfo
|
||||||
static void Add (AActor *viewpoint, FTextureID picnum, int fov);
|
static void Add (AActor *viewpoint, FTextureID picnum, int fov);
|
||||||
static void UpdateAll ();
|
static void UpdateAll ();
|
||||||
static void EmptyList ();
|
static void EmptyList ();
|
||||||
static void Serialize (FArchive &arc);
|
static void Serialize(FArchive &arc);
|
||||||
static void Mark();
|
static void Mark();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -2102,7 +2102,7 @@ class AAmbientSound : public AActor
|
||||||
{
|
{
|
||||||
DECLARE_CLASS (AAmbientSound, AActor)
|
DECLARE_CLASS (AAmbientSound, AActor)
|
||||||
public:
|
public:
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
|
|
||||||
void MarkPrecacheSounds () const;
|
void MarkPrecacheSounds () const;
|
||||||
void BeginPlay ();
|
void BeginPlay ();
|
||||||
|
@ -2125,7 +2125,7 @@ IMPLEMENT_CLASS (AAmbientSound)
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
void AAmbientSound::Serialize (FArchive &arc)
|
void AAmbientSound::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << bActive << NextCheck;
|
arc << bActive << NextCheck;
|
||||||
|
|
|
@ -298,7 +298,7 @@ DSeqNode::DSeqNode ()
|
||||||
m_Next = m_Prev = m_ChildSeqNode = m_ParentSeqNode = NULL;
|
m_Next = m_Prev = m_ChildSeqNode = m_ParentSeqNode = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DSeqNode::Serialize (FArchive &arc)
|
void DSeqNode::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
int seqOffset;
|
int seqOffset;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
@ -425,7 +425,7 @@ IMPLEMENT_POINTY_CLASS (DSeqActorNode)
|
||||||
DECLARE_POINTER (m_Actor)
|
DECLARE_POINTER (m_Actor)
|
||||||
END_POINTERS
|
END_POINTERS
|
||||||
|
|
||||||
void DSeqActorNode::Serialize (FArchive &arc)
|
void DSeqActorNode::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << m_Actor;
|
arc << m_Actor;
|
||||||
|
@ -433,7 +433,7 @@ void DSeqActorNode::Serialize (FArchive &arc)
|
||||||
|
|
||||||
IMPLEMENT_CLASS (DSeqPolyNode)
|
IMPLEMENT_CLASS (DSeqPolyNode)
|
||||||
|
|
||||||
void DSeqPolyNode::Serialize (FArchive &arc)
|
void DSeqPolyNode::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << m_Poly;
|
arc << m_Poly;
|
||||||
|
@ -441,7 +441,7 @@ void DSeqPolyNode::Serialize (FArchive &arc)
|
||||||
|
|
||||||
IMPLEMENT_CLASS (DSeqSectorNode)
|
IMPLEMENT_CLASS (DSeqSectorNode)
|
||||||
|
|
||||||
void DSeqSectorNode::Serialize (FArchive &arc)
|
void DSeqSectorNode::Serialize(FArchive &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize (arc);
|
Super::Serialize (arc);
|
||||||
arc << m_Sector << Channel;
|
arc << m_Sector << Channel;
|
||||||
|
|
|
@ -20,7 +20,7 @@ class DSeqNode : public DObject
|
||||||
DECLARE_CLASS (DSeqNode, DObject)
|
DECLARE_CLASS (DSeqNode, DObject)
|
||||||
HAS_OBJECT_POINTERS
|
HAS_OBJECT_POINTERS
|
||||||
public:
|
public:
|
||||||
void Serialize (FArchive &arc);
|
void Serialize(FArchive &arc);
|
||||||
void StopAndDestroy ();
|
void StopAndDestroy ();
|
||||||
void Destroy ();
|
void Destroy ();
|
||||||
void Tick ();
|
void Tick ();
|
||||||
|
|
|
@ -83,7 +83,7 @@ public:
|
||||||
operator TT() const { return Value; }
|
operator TT() const { return Value; }
|
||||||
|
|
||||||
// Serialize to FArchive
|
// Serialize to FArchive
|
||||||
FArchive& Serialize (FArchive& arc)
|
FArchive& Serialize(FArchive& arc)
|
||||||
{
|
{
|
||||||
arc << Value;
|
arc << Value;
|
||||||
return arc;
|
return arc;
|
||||||
|
|
|
@ -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
|
||||||
|
@ -691,7 +693,35 @@ FArchive &operator<< (FArchive &arc, FState *&state)
|
||||||
return arc;
|
return arc;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DObject::Serialize (FArchive &arc)
|
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