} // 69C public Dependent() : base() { this.SpriteOccupied = new BlobSprite(); this.SpriteEmpty = new BlobSprite(); this.SpriteBroken = new BlobSprite(); this.SoundRotate = new BlobSound(); }
public override void Read(ICsvReader reader) { base.Read(reader); this.ChildRotateLeft = reader.GetInt(); this.ChildRotateRight = reader.GetInt(); this.ChildParentRelativeRotation = reader.GetShort(); this.ChildAngleStart = reader.GetShort(); this.ChildAngleLength = reader.GetShort(); this.ChildCenterDeltaX = reader.GetShort(); this.ChildCenterDeltaY = reader.GetShort(); this.ChildCenterDeltaZ = (this.Version >= 27) ? reader.GetShort() : (short)0; this.ChildSortAdjust = reader.GetShort(); this.ChildDisableWhenParentDead = (this.Version >= 14) ? reader.GetShort() : (short)0; this.ChildDisableWhenParentEmpty = (this.Version >= 38) ? reader.GetShort() : (short)0; this.ChildElevationLowAngle = (this.Version >= 44) ? reader.GetShort() : (short)0; this.ChildEelevationHighAngle = (this.Version >= 44) ? reader.GetShort() : (short)0; this.ChildElevationSpeed = (this.Version >= 44) ? reader.GetShort() : (short)0; this.Unknown6D0 = (this.Version >= 44) ? reader.GetString() : ""; this.Unknown6E8 = (this.Version >= 44) ? reader.GetString() : ""; this.Unknown700 = (this.Version >= 44) ? reader.GetShort() : (short)0; this.Unknown702 = (this.Version >= 44) ? reader.GetShort() : (short)0; if (this.Version >= 30) { this.SpriteOccupied.ReadV3(reader); this.SpriteEmpty.ReadV3(reader); this.SpriteBroken.ReadV3(reader); } else if (this.Version >= 12) { this.SpriteOccupied.ReadV2(reader); this.SpriteEmpty.ReadV2(reader); this.SpriteBroken.ReadV2(reader); } else { this.SpriteOccupied.ReadV1(reader); this.SpriteEmpty.ReadV1(reader); this.SpriteBroken.ReadV1(reader); } this.SoundRotate = reader.GetInstance <BlobSound>(); if (this.Version < 3) { this.SpriteOccupied.FixBlobId(); this.SpriteEmpty.FixBlobId(); this.SpriteBroken.FixBlobId(); this.SoundRotate.FixBlobId(); } }
} // AB2 public Car() : base() { this.TerrainSpeeds = CreateInstances <SpeedValues>(16); this.SpriteRoll = new BlobSprite(); this.SpriteEmpty = new BlobSprite(); this.SpriteBroken = new BlobSprite(); this.SpriteThrust = new BlobSprite(); this.SpriteSmoke = new BlobSprite(); this.SpriteStopped = new BlobSprite(); this.SpriteShadow = new BlobSprite(); this.SoundIdle = new BlobSound(); this.SoundThrust = new BlobSound(); this.SoundRotate = new BlobSound(); this.SoundDeath = new BlobSound(); }
public Projectile() : base() { Unknown318 = 10000; Unknown328 = 1000; Unknown2F6 = 50; Unknown52C = CreateInstances <Unknown00405A12>(6); Unknown364 = new BlobSprite(); Unknown3A0 = new BlobSprite(); Unknown3DC = new BlobSprite(); Unknown418 = new BlobSprite(); Unknown454 = new BlobSprite(); Unknown490 = new BlobSound(); Unknown4C4 = new BlobSound(); Unknown4F8 = new BlobSound(); }
public override void Read(ICsvReader reader) { base.Read(reader); for (int i = 0; i < 16; i++) { this.TerrainSpeeds[i].Parse(this.Version, reader); } this.BouncePercent = reader.GetShort(); this.Mode = reader.GetShort(); this.RemoveDeadTimer = (this.Version >= 2) ? reader.GetShort() : (short)0; this.RemoveUnoccupiedTimer = (this.Version >= 2) ? reader.GetShort() : (short)0; this.RemoveGlobalTimer = (this.Version >= 2) ? reader.GetShort() : (short)0; this.ThrustOffsetX = (this.Version >= 5) ? reader.GetShort() : (short)0; this.ThrustOffsetY = (this.Version >= 5) ? reader.GetShort() : (short)0; this.ThrustHeight = (this.Version >= 5) ? reader.GetShort() : (short)0; this.ThrustEffectSpeed = (this.Version >= 43) ? reader.GetShort() : (short)4000; this.SmokeCount = (this.Version >= 5) ? reader.GetShort() : (short)0; this.SmokeDelta = (this.Version >= 5) ? reader.GetShort() : (short)0; this.HyperEnergyCost = (this.Version >= 16) ? reader.GetInt() : 0; this.GravityAcceleration = (this.Version >= 18) ? reader.GetShort() : (short)0; this.FloorBouncePercent = (this.Version >= 18) ? reader.GetShort() : (short)0; this.ThrustWhileFlying = (this.Version >= 20) ? reader.GetShort() : (short)1; this.RotateWhileFlying = (this.Version >= 20) ? reader.GetShort() : (short)1; this.CatchLipPercent = (this.Version >= 28) ? reader.GetShort() : (short)1000; this.PortalGravity = (this.Version >= 40) ? reader.GetShort() : (short)0; this.ThrustDelay = (this.Version >= 41) ? reader.GetShort() : (short)10; this.ThrustOffsetDelay = (this.Version >= 41) ? reader.GetShort() : (short)24; if (this.Version >= 30) { this.SpriteRoll.ReadV3(reader); this.SpriteEmpty.ReadV3(reader); this.SpriteBroken.ReadV3(reader); this.SpriteThrust.ReadV3(reader); this.SpriteSmoke.ReadV3(reader); this.SpriteStopped.ReadV3(reader); } else if (this.Version >= 12) { this.SpriteRoll.ReadV2(reader); this.SpriteEmpty.ReadV2(reader); this.SpriteBroken.ReadV2(reader); this.SpriteThrust.ReadV2(reader); this.SpriteSmoke.ReadV2(reader); this.SpriteStopped.ReadV2(reader); } else { this.SpriteRoll.ReadV1(reader); this.SpriteEmpty.ReadV1(reader); this.SpriteBroken.ReadV1(reader); this.SpriteThrust.ReadV1(reader); this.SpriteSmoke.ReadV1(reader); this.SpriteStopped.ReadV1(reader); } if (this.Version >= 30) { this.SpriteShadow.ReadV3(reader); } else if (this.Version >= 19) { this.SpriteShadow.ReadV2(reader); } this.SoundIdle = reader.GetInstance <BlobSound>(); this.SoundThrust = reader.GetInstance <BlobSound>(); this.SoundRotate = reader.GetInstance <BlobSound>(); if (this.Version >= 4) { this.SoundDeath = reader.GetInstance <BlobSound>(); } else { this.SoundDeath = new BlobSound() { BlobName = "None", }; } if (this.Version < 3) { this.SpriteRoll.FixBlobId(); this.SpriteEmpty.FixBlobId(); this.SpriteBroken.FixBlobId(); this.SpriteThrust.FixBlobId(); this.SpriteSmoke.FixBlobId(); this.SpriteStopped.FixBlobId(); this.SoundIdle.FixBlobId(); this.SoundThrust.FixBlobId(); this.SoundRotate.FixBlobId(); } }
public override void Read(ICsvReader reader) { base.Read(reader); this.Unknown318 = reader.GetShort(); this.Unknown31A = reader.GetShort(); if (this.Version >= 25) { this.Unknown31C = reader.GetShort(); this.Unknown31E = reader.GetShort(); } else { reader.Skip(); } this.Unknown320 = reader.GetShort(); this.Unknown322 = reader.GetShort(); this.Unknown32A = reader.GetShort(); this.Unknown32C = reader.GetShort(); this.Unknown324 = reader.GetShort(); this.Unknown326 = reader.GetShort(); this.Unknown328 = reader.GetShort(); this.Unknown32E = reader.GetShort(); this.Unknown33A = reader.GetShort(); this.Unknown33C = reader.GetShort(); this.Unknown33E = reader.GetShort(); this.Unknown330 = reader.GetShort(); this.Unknown340 = reader.GetInt(); this.Unknown344 = reader.GetInt(); this.Unknown354 = reader.GetInt(); this.Unknown358 = reader.GetInt(); this.Unknown35C = reader.GetInt(); this.Unknown360 = reader.GetInt(); this.Unknown348 = reader.GetInt(); this.Unknown2E0 = (this.Version >= 1) ? reader.GetShort() : (short)0; this.Unknown2E4 = (this.Version >= 48) ? reader.GetShort() : (short)0; this.Unknown2E2 = (this.Version >= 37) ? reader.GetShort() : (short)0; this.Unknown2E6 = (this.Version >= 1) ? reader.GetShort() : (short)10; this.Unknown2E8 = (this.Version >= 1) ? reader.GetShort() : (short)0; this.Unknown2EA = (this.Version >= 1) ? reader.GetShort() : (short)2000; this.Unknown2EC = (this.Version >= 26) ? reader.GetShort() : (short)0; this.Unknown2EE = (this.Version >= 1) ? reader.GetShort() : (short)30; this.Unknown2F4 = (this.Version >= 1) ? reader.GetShort() : (short)0; this.Unknown2F6 = (this.Version >= 42) ? reader.GetShort() : (short)50; this.Unknown2F2 = (this.Version >= 43) ? reader.GetShort() : (short)0; this.Unknown2F8 = (this.Version >= 43) ? reader.GetShort() : (short)0; this.Unknown2F0 = (this.Version >= 2) ? reader.GetShort() : (short)0; this.Unknown2FA = (this.Version >= 40) ? reader.GetShort() : (short)0; if (this.Version < 40) { reader.Skip(2); } this.Unknown2FC = (this.Version >= 14) ? reader.GetShort() : (short)0; this.Unknown2FE = (this.Version >= 14) ? reader.GetShort() : (short)0; this.Unknown300 = (this.Version >= 14) ? reader.GetShort() : (short)0; this.Unknown302 = (this.Version >= 14) ? reader.GetShort() : (short)0; this.Unknown304 = (this.Version >= 16) ? reader.GetShort() : (short)0; this.Unknown306 = (this.Version >= 16) ? reader.GetShort() : (short)0; this.Unknown308 = (this.Version >= 16) ? reader.GetShort() : (short)0; this.Unknown30A = (this.Version >= 16) ? reader.GetShort() : (short)0; this.Unknown30C = (this.Version >= 16) ? reader.GetShort() : (short)0; this.Unknown30E = (this.Version >= 27) ? reader.GetShort() : (short)0; this.Unknown310 = (this.Version >= 27) ? reader.GetShort() : (short)0; if (this.Version >= 53) { this.Unknown312 = reader.GetShort(); } else if (this.Version >= 20) { this.Unknown312 = -1; reader.Skip(); } this.Unknown314 = (this.Version >= 23) ? reader.GetShort() : (short)0; this.Unknown316 = (this.Version >= 36) ? reader.GetShort() : (short)0; this.Unknown34C = (this.Version >= 38) ? reader.GetInt() : 0; this.Unknown332 = (this.Version >= 36) ? reader.GetShort() : (short)0; this.Unknown336 = (this.Version >= 36) ? reader.GetShort() : (short)0; this.Unknown260 = (this.Version >= 36) ? reader.GetString() : ""; this.Unknown334 = (this.Version >= 39) ? reader.GetShort() : (short)0; this.Unknown338 = (this.Version >= 41) ? reader.GetShort() : (short)0; this.Unknown350 = (this.Version >= 44) ? reader.GetInt() : 0; for (int i = 0; i < 6; i++) { if (this.Version >= 50) { this.Unknown52C[i].ReadV2(reader); } else { this.Unknown52C[i].ReadV1(reader); } } if (this.Version >= 33) { this.Unknown364.ReadV3(reader); this.Unknown3A0.ReadV3(reader); this.Unknown3DC.ReadV3(reader); this.Unknown418.ReadV3(reader); this.Unknown454.ReadV3(reader); } else if (this.Version >= 17) { this.Unknown364.ReadV2(reader); this.Unknown3A0.ReadV2(reader); this.Unknown3DC.ReadV2(reader); this.Unknown418.ReadV2(reader); this.Unknown454.ReadV2(reader); } else { this.Unknown364.ReadV1(reader); this.Unknown3A0.ReadV1(reader); this.Unknown3DC.ReadV1(reader); this.Unknown418.ReadV1(reader); this.Unknown454.ReadV1(reader); } this.Unknown490 = reader.GetInstance <BlobSound>(); this.Unknown4C4 = reader.GetInstance <BlobSound>(); this.Unknown4F8 = reader.GetInstance <BlobSound>(); if (this.Version < 3) { this.Unknown364.FixBlobId(); this.Unknown3A0.FixBlobId(); this.Unknown3DC.FixBlobId(); this.Unknown418.FixBlobId(); this.Unknown454.FixBlobId(); this.Unknown490.FixBlobId(); this.Unknown4C4.FixBlobId(); this.Unknown4F8.FixBlobId(); } }