public override void Serialize(GenericWriter writer) { base.Serialize(writer); writer.Write((int)2); if (Level3Spawner != null) { writer.Write(0); Level3Spawner.Serialize(writer); } else { writer.Write(1); } writer.Write(RespawnMin); writer.Write(RespawnMax); writer.Write(_Active); writer.Write(WaypointsA.Count); writer.Write(WaypointsB.Count); WaypointsA.ForEach(w => writer.Write(w)); WaypointsB.ForEach(w => writer.Write(w)); }
public override void Serialize(GenericWriter writer) { base.Serialize(writer); writer.Write((int)0); writer.Write(RespawnMin); writer.Write(RespawnMax); writer.Write(_Active); writer.Write(WaypointsA.Count); writer.Write(WaypointsB.Count); WaypointsA.ForEach(w => writer.Write(w)); WaypointsB.ForEach(w => writer.Write(w)); }