public override void Serialize(IO.EndianStream s) { base.Serialize(s); BSaveGame.StreamCollection(s, Totals); s.Stream(Total); s.StreamNotNull(ref Combat_); }
public override void Serialize(IO.EndianStream s) { base.Serialize(s); BSaveGame.StreamArray(s, ref BombExplodeInfos); BSaveGame.StreamCollection(s, NudgedUnits); s.StreamV(ref StartLocation); s.StreamV(ref StartDirection); s.StreamV(ref RightVector); s.Stream(ref State); s.Stream(ref GotStartLocation); s.Stream(ref GotStartDirection); s.Stream(ref TickLength); s.Stream(ref NextBombTime); s.Stream(ref LastBombTime); s.Stream(ref NumBombClustersDropped); s.Stream(ref ProjectileProtoID); s.Stream(ref ImpactProtoID); s.Stream(ref ExplosionProtoID); s.Stream(ref BomberProtoID); s.Stream(ref InitialDelay); s.Stream(ref FuseTime); s.Stream(ref MaxBombs); s.Stream(ref MaxBombOffset); s.Stream(ref BombSpacing); s.Stream(ref LengthMultiplier); s.Stream(ref WedgeLengthMultiplier); s.Stream(ref WedgeMinOffset); s.Stream(ref NudgeMultiplier); s.Stream(BomberData); s.Stream(ref LOSMode); s.Stream(ref ReactionPlayed); }
public void Serialize(IO.EndianStream s) { s.Stream(ref UserMode); s.Stream(ref SubMode); if (UserMode == 16) { SerializeUserMode16(s); } BSaveGame.StreamArray16(s, ref SelectionList); s.Stream(ref CameraZoomMin); s.Stream(ref CameraZoomMax); s.Stream(ref CameraPitchMin); s.Stream(ref CameraPitchMax); s.Stream(ref CameraPitch); s.Stream(ref CameraYaw); s.Stream(ref CameraZoom); s.Stream(ref CameraFOV); s.StreamV(ref HoverPoint); s.StreamV(ref CameraHoverPoint); s.Stream(ref CameraHoverPointOffsetHeight); s.StreamV(ref LastCameraLoc); s.StreamV(ref LastCameraHoverPoint); s.Stream(ref HaveHoverPoint); s.Stream(ref HoverPointOverTerrain); s.Stream(ref HUDItemEnabled); BSaveGame.StreamCollection(s, ObjectiveArrows); }
public void Serialize(IO.EndianStream s) { BSaveGame.StreamCollection(s, Civs); BSaveGame.StreamCollection(s, Leaders); BSaveGame.StreamCollection(s, Abilities); BSaveGame.StreamCollection(s, ProtoVisuals); BSaveGame.StreamCollection(s, Models); BSaveGame.StreamCollection(s, Animations); BSaveGame.StreamCollection(s, TerrainEffects); BSaveGame.StreamCollection(s, ProtoImpactEffects); BSaveGame.StreamCollection(s, LightEffects); BSaveGame.StreamCollection(s, ParticleGateways); BSaveGame.StreamCollection(s, GenericProtoObjects); BSaveGame.StreamCollection(s, ProtoSquads); BSaveGame.StreamCollection(s, ProtoTechs); BSaveGame.StreamCollection(s, ProtoPowers); BSaveGame.StreamCollection(s, ProtoObjects); BSaveGame.StreamCollection(s, Resources); BSaveGame.StreamCollection(s, Rates); BSaveGame.StreamCollection(s, Populations); BSaveGame.StreamCollection(s, WeaponTypes); BSaveGame.StreamCollection(s, DamageTypes); BSaveGame.StreamCollection(s, Templates); BSaveGame.StreamCollection(s, AnimTypes); BSaveGame.StreamCollection(s, EffectTypes); BSaveGame.StreamCollection(s, Actions); BSaveGame.StreamList(s, Tactics, kTacticsListInfo); s.Stream(ref NumUniqueProtoObjects); s.StreamSignature((uint)NumUniqueProtoObjects); BSaveGame.StreamList(s, Shapes, kDataTagsListInfo); BSaveGame.StreamList(s, PhysicsInfo, kDataTagsListInfo); BSaveGame.StreamCollection(s, ProtoIcons); s.StreamSignature(cSaveMarker.DB); }
public void Serialize(IO.EndianStream s) { var sg = s.Owner as BSaveGame; BSaveGame.StreamArray16(s, ref Recorders, isIterated: true); s.StreamSignature(cSaveMarker.StatsRecorders); BSaveGame.StreamCollection(s, Powers); s.StreamSignature(cSaveMarker.StatsPowers); BSaveGame.StreamCollection(s, Abilities); s.StreamSignature(cSaveMarker.StatsAbilities); sg.StreamBCost(s, ref TotalResources); sg.StreamBCost(s, ref MaxResources); sg.StreamBCost(s, ref GatheredResources); sg.StreamBCost(s, ref TributedResources); s.Stream(ref PlayerID); s.Stream(ref TeamID); s.Stream(ref PlayerStateTime); s.Stream(ref PlayerState); s.Stream(ref StrengthTime); s.Stream(ref StrengthTimer); s.Stream(ref CivID); s.Stream(ref LeaderID); s.Stream(ref ResourcesUsed); s.Stream(ref PlayerType); s.Stream(ref RandomCiv); s.Stream(ref RandomLeader); s.Stream(ref Resigned); s.Stream(ref Defeated); s.Stream(ref Disconnected); s.Stream(ref Won); s.StreamSignature(cSaveMarker.StatsPlayer); }
public override void Serialize(IO.EndianStream s) { base.Serialize(s); var sg = s.Owner as BSaveGame; s.Stream(ref NextTickTime); s.Stream(ref RealGravityBall); s.StreamV(ref DesiredBallPosition); BSaveGame.StreamCollection(s, CapturedUnits); s.Stream(ref ExplodeCooldownLeft); BSaveGame.StreamArray(s, ref UnitsToPull); BSaveGame.StreamArray(s, ref QueuedPickupObjects); sg.StreamBCost(s, ref CostPerTick); s.Stream(ref TickLength); s.Stream(ref BallProtoID); s.Stream(ref LightningProtoID); s.Stream(ref LightningBeamVisualProtoID); s.Stream(ref DebrisProtoID); s.Stream(ref ExplodeProtoID); s.Stream(ref PickupAttachmentProtoID); s.Stream(ref AudioReactionTimer); s.Stream(ref LeaderAnimOrderID); s.Stream(ref MaxBallSpeedStagnant); s.Stream(ref MaxBallSpeedPulling); s.Stream(ref ExplodeTime); s.Stream(ref PullingRange); s.Stream(ref ExplosionForceOnDebris); s.Stream(ref HealthToCapture); s.Stream(ref NudgeStrength); s.Stream(ref InitialLateralPullStrength); s.Stream(ref CapturedRadialSpacing); s.Stream(ref CapturedSpringStrength); s.Stream(ref CapturedSpringDampening); s.Stream(ref CapturedSpringRestLength); s.Stream(ref CapturedMinLateralSpeed); s.Stream(ref RipAttachmentChancePulling); s.Stream(ref PickupObjectRate); s.Stream(ref DebrisAngularDamping); s.Stream(ref CurrentExplosionDamageBank); s.Stream(ref MaxPossibleExplosionDamageBank); s.Stream(ref MaxExplosionDamageBankPerCaptured); s.Stream(ref ExplosionDamageBankPerTick); s.Stream(ref CommandInterval); s.Stream(ref MinBallDistance); s.Stream(ref MaxBallDistance); s.Stream(ref LightningPerTick); s.Stream(ref MaxCapturedObjects); s.Stream(ref NudgeChancePulling); s.Stream(ref ThrowPartChancePulling); s.Stream(ref LightningChancePulling); s.Stream(ref ExplodeSound); s.Stream(ref MinDamageBankPercentToThrow); BSaveGame.StreamArray(s, ref RevealedTeamIDs); s.Stream(ref unknown0); s.Stream(ref unknown1); s.Stream(ref unknown2); s.Stream(ref CompletedInitialization); s.Stream(ref ThrowUnitsOnExplosion); }
public void Serialize(IO.EndianStream s) { s.Pad8(); s.StreamVersion(kVersion); BSaveGame.StreamCollection(s, Settings); }