- refactored the thinker list.

This was an unorganized set of static members in DThinker but has now been regrouped into something more structured.
This commit is contained in:
Christoph Oelckers 2019-01-30 02:15:48 +01:00
commit 3b4ded5694
11 changed files with 508 additions and 470 deletions

View file

@ -928,7 +928,7 @@ void FLevelLocals::Serialize(FSerializer &arc, bool hubload)
if (arc.isReading())
{
DThinker::DestroyAllThinkers();
Thinkers.DestroyAllThinkers();
interpolator.ClearInterpolations();
arc.ReadObjects(hubload);
ActiveSequences = 0;
@ -1000,7 +1000,7 @@ void FLevelLocals::Serialize(FSerializer &arc, bool hubload)
P_SerializeHealthGroups(this, arc);
// [ZZ] serialize events
E_SerializeEvents(arc);
DThinker::SerializeThinkers(arc, hubload);
Thinkers.SerializeThinkers(arc, hubload);
arc("polyobjs", Polyobjects);
SerializeSubsectors(arc, "subsectors");
StatusBar->SerializeMessages(arc);