public short Pass; // A public void Read(ICsvReader stream) { this.SelfIgnore = stream.GetInt(); this.PassIgnore = stream.GetInt(); this.SelfReduction = stream.GetShort(); this.Pass = stream.GetShort(); }
public override void Read(ICsvReader reader) { base.Read(reader); this.Unknown26C = reader.GetShort(); if (this.Version < 22 && this.Unknown26C > 6) { this.Unknown26C = 6; } this.Unknown26E = (this.Version >= 22) ? reader.GetShort() : (short)0; this.Unknown270 = (this.Version >= 46) ? reader.GetShort() : (short)0; this.Unknown272 = reader.GetShort(); this.Unknown274 = reader.GetShort(); this.Unknown260 = reader.GetInt(); this.Unknown268 = (this.Version >= 57) ? reader.GetInt() : 0; this.Unknown264 = (this.Version >= 57) ? reader.GetInt() : 0; if (this.Version >= 33) { this.Unknown278.ReadV3(reader); } else if (this.Version >= 17) { this.Unknown278.ReadV2(reader); } else { this.Unknown278.ReadV1(reader); } this.Unknown2B4 = reader.GetInstance <BlobSound>(); }
public short Unknown32; // 32 public void Read(ICsvReader reader) { this.BlobName = reader.GetString(); this.BlobId = reader.GetString(); this.Simultaneous = reader.GetShort(); this.Unknown32 = reader.GetShort(); }
// >= 30 public void ReadV3(ICsvReader reader) { this.BlobName = reader.GetString(); this.BlobId = reader.GetString(); this.LightPermutation = reader.GetShort(); this.PaletteOffset = reader.GetShort(); this.Hsv = reader.GetInstance <HSV>(); this.AnimationTime = reader.GetShort(); }
public void Read(ICsvReader reader) { this.Unknown8 = reader.GetShort(); this.Unknown2 = reader.GetShort(); this.Unknown4 = reader.GetShort(); this.Unknown6 = reader.GetShort(); this.Unknown0 = reader.GetShort(); this.UnknownC = reader.GetInt(); }
public override void Read(ICsvReader reader) { base.Read(reader); for (int i = 0; i < 16; i++) { this.Unknown120[i, 0] = reader.GetShort(); this.Unknown120[i, 1] = reader.GetShort(); } }
public short AnimationTime; // 38 // >= 0 public void ReadV1(ICsvReader reader) { this.BlobName = reader.GetString(); this.BlobId = reader.GetString(); this.LightPermutation = reader.GetShort(); this.PaletteOffset = reader.GetShort(); this.Hsv = new HSV(); this.AnimationTime = 0; }
public override void Read(ICsvReader reader) { base.Read(reader); this.Unknown124 = (this.Version >= 18) ? reader.GetInt() : 1; this.Unknown128 = (this.Version >= 18) ? reader.GetShort() : (short)0; this.Unknown14C = (this.Version >= 18) ? reader.GetShort() : (short)0; this.Unknown12A = (this.Version >= 18) ? reader.GetShort() : (short)0; this.Unknown124 = (this.Version >= 31) ? reader.GetInt() : 0; this.Unknown12C = (this.Version >= 32) ? reader.GetShorts(16) : new short[16]; this.Unknown14E = (this.Version >= 54) ? reader.GetShort() : (short)0; }
public override void Read(ICsvReader reader) { base.Read(reader); this.Unknown274 = reader.GetShort(); if (this.Version >= 36) { this.Unknown268 = reader.GetInt(); this.Unknown26C = reader.GetInt(); } else { int dummy = reader.GetInt(); if (dummy >= 0) { this.Unknown268 = 0; this.Unknown26C = dummy; } else { this.Unknown268 = -dummy; this.Unknown26C = 0; } } this.Unknown270 = (this.Version >= 36) ? reader.GetShort() : (short)0; this.Unknown260 = reader.GetInt(); this.Unknown264 = reader.GetInt(); this.Unknown272 = (this.Version >= 30) ? reader.GetShort() : (short)0; if (this.Version >= 33) { this.Unknown278.ReadV3(reader); } else if (this.Version >= 17) { this.Unknown278.ReadV2(reader); } else { this.Unknown278.ReadV1(reader); } this.Unknown2B4 = reader.GetInstance <BlobSound>(); if (this.Version < 3) { this.Unknown278.FixBlobId(); this.Unknown2B4.FixBlobId(); } }
public void ReadV1(ICsvReader reader) { this.Unknown0 = reader.GetShort(); this.Unknown4 = reader.GetInt(); this.Unknown8 = reader.GetInt(); this.UnknownC = 2; }
} // 20 public void Parse(int version, ICsvReader reader) { /* NOTE: Speaking with Mongoose, he double-checked the order of parsing and it does not match up with Rick's. * Regular speeds come first, then StrafeThrust, and then Hyper speeds. See the "out.png" screenshot * under Docs/Veh branch. * * this.RollTopSpeed = reader.GetShort(); * this.StrafeThrust = reader.GetInt(); * this.HyperTopSpeed = reader.GetInt(); * this.HyperThrust = reader.GetInt(); * this.BackwardThrust = reader.GetInt(); * this.BackwardHyperThrust = (version >= 4) ? reader.GetInt() : 0; * this.RollAllowed = (version >= 16) ? reader.GetInt() : 0; * this.RollFriction = (version >= 16) ? reader.GetInt() : 0; * this.RollThrust = (version >= 32) ? reader.GetInt() : 0; * this.RollRotate = (version >= 32) ? reader.GetInt() : 0; */ this.RollAllowed = (version >= 16) ? reader.GetInt() : 0; this.RollFriction = (version >= 16) ? reader.GetInt() : 0; this.RollThrust = (version >= 32) ? reader.GetInt() : 0; this.RollRotate = (version >= 32) ? reader.GetInt() : 0; this.RollTopSpeed = reader.GetShort(); this.StrafeThrust = reader.GetInt(); this.HyperTopSpeed = reader.GetInt(); this.HyperThrust = reader.GetInt(); this.BackwardThrust = reader.GetInt(); this.BackwardHyperThrust = (version >= 4) ? reader.GetInt() : 0; }
public void Read(int version, ICsvReader reader) { this.TickDistance = reader.GetShort(); this.TickFrequency = reader.GetShort(); this.Speed = reader.GetShort(); this.Color = reader.GetShort(); if (version >= 30) { this.Blob.ReadV3(reader); } else if (version >= 12) { this.Blob.ReadV2(reader); } else { this.Blob.ReadV1(reader); } }
} // C0 public void Read(int version, ICsvReader reader) { this.Title = reader.GetString(); this.ProductToCreate = reader.GetShort(); this.Quantity = reader.GetShort(); this.Team = reader.GetInt(); this.Time = reader.GetInt(); this.PlayerItemNeededId = reader.GetShort(); this.PlayerItemNeededQuantity = reader.GetInt(); this.Cost = reader.GetInt(); this.SkillLogic = reader.GetString(); this.TeamItemNeededId = reader.GetShort(); this.TeamItemNeededQuantity = reader.GetShort(); this.TeamBuildingLogic = reader.GetString(); this.TeamQueueRequest = reader.GetInt(); this.Confirm = (version >= 51) ? reader.GetShort() : (short)0; }
public virtual void Read(ICsvReader reader) { this.Version = reader.GetInt('v'); this.Unknown080 = reader.GetInt(); this.Unknown048 = reader.GetString(); this.Unknown068 = reader.GetString(); this.Unknown008 = reader.GetString(); this.Unknown004 = reader.GetString(); this.Unknown084 = reader.GetInt(); this.Unknown090 = reader.GetInt(); this.Unknown088 = reader.GetInt(); this.Unknown0A4 = reader.GetShort(); if (this.Version >= 8) { this.Unknown0A0 = reader.GetShort(); } else { reader.Skip(); } this.Unknown0A2 = reader.GetShort(); this.Unknown0A6 = (this.Version >= 1) ? reader.GetShort() : (short)0; if (this.Version >= 5 && this.Version < 34) { reader.Skip(); } if (this.Version >= 12) { this.Unknown0A8 = reader.GetShort(); } else { reader.Skip(); } if (this.Version >= 13) { this.Unknown08C = reader.GetInt(); } else { reader.Skip(); } this.Unknown094 = (this.Version >= 29) ? reader.GetInt() : 0; this.Unknown098 = (this.Version >= 35) ? reader.GetInt() : 44800; this.Unknown09C = (this.Version >= 47) ? reader.GetInt() : 1; this.Unknown0AA = (this.Version >= 51) ? reader.GetShort() : (short)0; this.Unknown0AC = (this.Version >= 52) ? reader.GetShort() : (short)0; this.Unknown0B0 = (this.Version >= 55) ? reader.GetShort() : (short)0; this.Unknown0AE = (this.Version >= 56) ? reader.GetShort() : (short)0; if (this.Version >= 33) { this.Unknown0B4.ReadV3(reader); } else if (this.Version >= 17) { this.Unknown0B4.ReadV2(reader); } else { this.Unknown0B4.ReadV1(reader); } if (this.Version < 15) { // this should probably be some form of parser.Skip() but f**k it~ new BlobSprite().ReadV1(reader); } if (this.Version < 3) { this.Unknown0B4.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(); } }
public override void Read(ICsvReader reader) { base.Read(reader); this.Unknown162 = reader.GetShort(); this.Unknown160 = reader.GetShort(); this.Unknown134 = reader.GetInt(); this.Unknown138 = reader.GetInt(); this.Unknown13C = reader.GetShort(); this.Unknown13E = reader.GetShort(); this.Unknown140 = reader.GetShort(); this.Unknown142 = reader.GetShort(); this.Unknown144 = (this.Version >= 9) ? reader.GetShort() : (short)0; this.Unknown146 = (this.Version >= 10) ? reader.GetShort() : (short)0; this.Unknown148 = (this.Version >= 10) ? reader.GetShort() : (short)0; this.Unknown152 = (this.Version >= 28) ? reader.GetShort() : (short)0; this.Unknown154 = (this.Version >= 28) ? reader.GetShort() : (short)0; this.Unknown14E = (this.Version >= 28) ? reader.GetShort() : (short)0; this.Unknown150 = (this.Version >= 28) ? reader.GetShort() : (short)0; this.Unknown14A = (this.Version >= 28) ? reader.GetShort() : (short)0; this.Unknown168 = (this.Version >= 28) ? reader.GetInt() : 0; if (this.Version >= 11) { this.Unknown214 = reader.GetInstance <BlobSound>(); } for (int i = 0; i < 6; i++) { this.Unknown16C[i].Read(reader); } if (this.Version >= 56) { for (int i = 0; i < 30; i++) { this.Unknown19C[i].Read(reader); } } this.Unknown156 = (this.Version >= 56) ? reader.GetShort() : (short)0; this.Unknown15A = (this.Version >= 56) ? reader.GetShort() : (short)0; this.Unknown158 = (this.Version >= 56) ? reader.GetShort() : (short)0; this.Unknown15C = (this.Version >= 56) ? reader.GetShort() : (short)0; this.Unknown15E = (this.Version >= 56) ? reader.GetShort() : (short)0; this.Unknown164 = (this.Version >= 56) ? reader.GetShort() : (short)0; this.Unknown166 = (this.Version >= 56) ? reader.GetShort() : (short)0; this.Unknown12C = (this.Version >= 56) ? reader.GetInt() : 0; this.Unknown130 = (this.Version >= 56) ? reader.GetInt() : 0; this.Unknown120 = (this.Version >= 56) ? reader.GetInt() : 0; this.Unknown124 = (this.Version >= 56) ? reader.GetInt() : 0; this.Unknown128 = (this.Version >= 56) ? reader.GetInt() : 0; this.Unknown14C = (this.Version >= 56) ? reader.GetShort() : (short)0; }
public virtual void Read(ICsvReader reader) { this.Version = reader.GetInt('v'); this.Id = reader.GetInt(); this.Name = reader.GetString(); this.SkillLogic = reader.GetString(); this.Description = reader.GetString(); this.Hitpoints = reader.GetInt(); this.Weight = reader.GetInt(); this.ClassId = this.Version < 31 ? 0 : reader.GetInt(); this.Armors = reader.GetInstances <ArmorValues>(6); this.BarrelLength = reader.GetShort(); this.FireHeight = reader.GetShort(); if (this.Version >= 34) { this.PhysicalRadius = reader.GetShort(); this.TriggerRadius = reader.GetShort(); } else { short dummy = reader.GetShort(); this.PhysicalRadius = dummy; this.TriggerRadius = dummy; if (dummy != -1) { dummy -= 8; this.PhysicalRadius = (dummy >= 1) ? dummy : (short)1; } } if (this.Version >= 11) { this.VehiclePhysicsOwned = reader.GetShort(); this.VehiclePhysicsUnowned = reader.GetShort(); this.WeaponPhysicsOwned = reader.GetShort(); this.WeaponPhysicsUnowned = reader.GetShort(); } else { reader.Skip(); reader.Skip(); } this.LowZ = reader.GetShort(); this.HighZ = reader.GetShort(); this.PickupItemId = reader.GetShort(); this.IsControllable = reader.GetShort(); this.IsWarpable = (this.Version >= 8) ? reader.GetShort() : (short)1; this.EnergyCostPerTick = reader.GetInt(); this.NormalWeight = reader.GetInt(); this.StopWeight = reader.GetInt(); this.DisplayHealth = (this.Version >= 1) ? reader.GetShort() : (short)0; this.InventoryItems = reader.GetInts(6); this.ChildVehicles = reader.GetInts(8); if (this.Version >= 6 && this.Version < 31) { reader.Skip(31); } this.ExplodeItemId = (this.Version >= 17) ? reader.GetShort() : (short)0; this.RadarPrize = (this.Version >= 35) ? reader.GetInt() : -1; this.VehicleGetInMode = (this.Version >= 36) ? reader.GetInt() : 0; this.VisualHeight = (this.Version >= 37) ? reader.GetShort() : (short)0; this.DropItemId = (this.Version >= 46) ? reader.GetShort() : (short)0; this.DropItemQuantity = (this.Version >= 46) ? reader.GetShort() : (short)0; if (this.Version >= 5) { this.Sprites[0].Read(this.Version, reader); this.Sprites[1].Read(this.Version, reader); } this.EnergyMax = (this.Version >= 5) ? reader.GetInt() : -1; this.EnergyRate = (this.Version >= 5) ? reader.GetInt() : -1; this.EnergyMin = (this.Version >= 21) ? reader.GetInt() : -1; this.ThrowTime = (this.Version >= 9) ? reader.GetShort() : (short)-1; if (this.Version >= 9 && this.Version < 24) { reader.Skip(); } this.AllowWeapons = (this.Version >= 9) ? reader.GetShort() : (short)-1; this.Style1BallSpeed = (this.Version >= 9) ? reader.GetShort() : (short)0; this.Style1LowFireAngle = (this.Version >= 9) ? reader.GetShort() : (short)45; this.Style1HighFireAngle = (this.Version >= 9) ? reader.GetShort() : (short)45; this.Style1KeyAssignment = (this.Version >= 15) ? reader.GetShort() : (short)1; this.Style1BallFriction = (this.Version >= 15) ? reader.GetShort() : (short)-1; this.Style2BallSpeed = (this.Version >= 15) ? reader.GetShort() : (short)0; this.Style2LowFireAngle = (this.Version >= 15) ? reader.GetShort() : (short)0; this.Style2HighFireAngle = (this.Version >= 15) ? reader.GetShort() : (short)0; this.Style2KeyAssignment = (this.Version >= 15) ? reader.GetShort() : (short)0; this.Style2BallFriction = (this.Version >= 9) ? reader.GetShort() : (short)1; if (this.Version >= 24) { this.TerrainModifiers = reader.GetShorts(16); } else { for (int i = 0; i < this.TerrainModifiers.Length; i++) { this.TerrainModifiers[i] = -1; } } if (this.Version >= 9 && this.Version < 23) { reader.Skip(); } this.BallCarryRollVehicleItem = (this.Version >= 29) ? reader.GetShort() : (short)0; this.BallCarryArmorVehicleItem = (this.Version >= 29) ? reader.GetShort() : (short)0; this.FlagCarryRollVehicleItem = (this.Version >= 29) ? reader.GetShort() : (short)0; this.FlagCarryArmorVehicleItem = (this.Version >= 29) ? reader.GetShort() : (short)0; this.EventString1 = (this.Version >= 33) ? reader.GetString() : ""; this.EventString2 = (this.Version >= 38) ? reader.GetString() : ""; this.EventString3 = (this.Version >= 38) ? reader.GetString() : ""; this.LosDistance = (this.Version >= 42) ? reader.GetInt() : 0; this.LosAngle = (this.Version >= 42) ? reader.GetInt() : 0; this.LosXRay = (this.Version >= 42) ? reader.GetInt() : 0; this.CombatAwarenessTime = (this.Version >= 42) ? reader.GetInt() : 0; this.SiblingKillsShared = (this.Version >= 42) ? reader.GetShort() : (short)0; this.RelativeId = (this.Version >= 47) ? reader.GetShort() : (short)0; this.DisplayOnFriendlyRadar = (this.Version >= 52) ? reader.GetInt() : 1; this.FriendlyRadarColor = (this.Version >= 50) ? reader.GetInt() : -1; this.DisplayOnEnemyRadar = (this.Version >= 52) ? reader.GetInt() : 1; this.EnemyRadarColor = (this.Version >= 50) ? reader.GetInt() : -1; if (this.Version >= 48) { for (int i = 0; i < 30; i++) { this.HoldItemLimits[i] = reader.GetShort(); this.HoldItemExtendedLimits[i] = reader.GetShort(); } } }
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.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(); } }
public void Read(ICsvReader reader) { this.Unknown2 = reader.GetShort(); this.Unknown0 = reader.GetShort(); }
public override void Read(ICsvReader reader) { base.Read(reader); if (this.Version < 8) { reader.Skip(3); } this.Unknown19C = reader.GetShort(); this.Unknown194 = reader.GetShort(); this.Unknown196 = reader.GetShort(); this.Unknown198 = (this.Version >= 16) ? reader.GetShort() : (short)0; this.Unknown19A = (this.Version >= 16) ? reader.GetShort() : (short)0; this.Unknown154 = reader.GetInts(16); this.Unknown14C = (this.Version >= 53) ? reader.GetInt() : 0; this.Unknown150 = (this.Version >= 53) ? reader.GetInt() : 0; this.Unknown120 = reader.GetInt(); this.Unknown124 = reader.GetInt(); this.Unknown128 = (this.Version >= 43) ? reader.GetInt() : -1; this.Unknown12C = (this.Version >= 45) ? reader.GetInt() : 0; this.Unknown140 = reader.GetInt(); this.Unknown134 = (this.Version >= 40) ? reader.GetInt() : this.Unknown140; this.Unknown138 = (this.Version >= 40) ? reader.GetInt() : 0; this.Unknown13C = (this.Version >= 40) ? reader.GetInt() : 0; this.Unknown144 = reader.GetInt(); this.Unknown148 = reader.GetInt(); this.Unknown1C0 = reader.GetInt(); this.Unknown1BC = (this.Version >= 38) ? reader.GetInt() : 0; this.Unknown1A0 = reader.GetShort(); this.Unknown1A2 = (this.Version >= 25) ? reader.GetShort() : (short)0; this.Unknown19E = reader.GetShort(); this.Unknown1A4 = (this.Version >= 36) ? reader.GetShort() : (short)0; this.Unknown1A6 = (this.Version >= 36) ? reader.GetShort() : (short)0; if (this.Version >= 33) { this.Unknown1C4.ReadV3(reader); } else if (this.Version >= 17) { this.Unknown1C4.ReadV2(reader); } else { this.Unknown1C4.ReadV1(reader); } this.Unknown200 = reader.GetInstance <BlobSound>(); this.Unknown1A8 = reader.GetShort(); this.Unknown1AA = reader.GetShort(); this.Unknown130 = (this.Version >= 7) ? reader.GetInt() : 0; this.Unknown1B4 = (this.Version >= 19) ? reader.GetShort() : (short)1; this.Unknown1B6 = (this.Version >= 19) ? reader.GetShort() : (short)1; this.Unknown1AC = (this.Version >= 27) ? reader.GetInt() : 0; this.Unknown1B2 = (this.Version >= 27) ? reader.GetShort() : (short)1; this.Unknown1B0 = (this.Version >= 27) ? reader.GetShort() : (short)1; this.Unknown1B8 = (this.Version >= 27) ? reader.GetShort() : (short)1; this.Unknown1BA = (this.Version >= 27) ? reader.GetShort() : (short)1; if (this.Version < 4) { reader.Skip(8 * 2); } if (this.Version < 3) { this.Unknown1C4.FixBlobId(); this.Unknown200.FixBlobId(); } }
public override void Read(ICsvReader reader) { base.Read(reader); this.RotateSpeed = reader.GetInt(); this.AngleStart = reader.GetShort(); this.AngleLength = reader.GetShort(); this.TrackingTime = reader.GetShort(); this.TrackingRadius = reader.GetShort(); this.TrackingWeightLow = (this.Version >= 30) ? reader.GetInt() : 0; this.TrackingWeightHigh = (this.Version >= 30) ? reader.GetInt() : 100000; this.FireRadius = reader.GetShort(); this.RepairRate = reader.GetShort(); this.HitpointsRequiredToOperate = reader.GetShort(); this.RemoveGlobalTimer = (this.Version >= 7) ? reader.GetShort() : (short)0; this.RandomizeAim = (this.Version >= 7) ? reader.GetShort() : (short)0; this.ObeyLos = (this.Version >= 7) ? reader.GetShort() : (short)0; this.ComputerEnergyMax = (this.Version >= 7) ? reader.GetShort() : (short)0; this.ComputerEnergyRate = (this.Version >= 7) ? reader.GetShort() : (short)0; this.Destroyable = (this.Version >= 10) ? reader.GetShort() : (short)0; this.DensityRadius = (this.Version >= 13) ? reader.GetShort() : (short)800; this.DensityMaxType = (this.Version >= 13) ? reader.GetShort() : (short)2; this.DensityMaxActive = (this.Version >= 13) ? reader.GetShort() : (short)2; this.DensityMaxInactive = (this.Version >= 13) ? reader.GetShort() : (short)-1; this.MaxTypeByPlayerRegardlessOfTeam = (this.Version >= 53) ? reader.GetShort() : (short)-1; this.FrequencyMaxType = (this.Version >= 13) ? reader.GetShort() : (short)10; this.FrequencyMaxActive = (this.Version >= 13) ? reader.GetShort() : (short)10; this.FrequencyMaxInactive = (this.Version >= 13) ? reader.GetShort() : (short)-1; this.FrequencyDensityMaxType = (this.Version >= 39) ? reader.GetShort() : (short)-1; this.FrequencyDensityMaxActive = (this.Version >= 39) ? reader.GetShort() : (short)-1; this.FrequencyDensityMaxInactive = (this.Version >= 39) ? reader.GetShort() : (short)-1; this.ChainedTurretRequiredForBuilding = (this.Version >= 53) ? reader.GetInt() : (short)0; this.ChainedTurretRequiredForOperation = (this.Version >= 53) ? reader.GetInt() : (short)0; this.ChainedTurretId = (this.Version >= 53) ? reader.GetShort() : (short)-1; this.ChainedTurretRadius = (this.Version >= 53) ? reader.GetShort() : (short)0; this.NumChainedTurretsRequired = (this.Version >= 53) ? reader.GetShort() : (short)0; this.LogicTakeOwnership = (this.Version >= 49) ? reader.GetString() : "1&!1"; this.LogicStealOwnership = (this.Version >= 49) ? reader.GetString() : "1&!1"; this.SpriteTurretZAdjust = (this.Version >= 27) ? reader.GetShort() : (short)0; if (this.Version >= 30) { this.SpriteBase.ReadV3(reader); this.SpriteTurret.ReadV3(reader); } else if (this.Version >= 12) { this.SpriteBase.ReadV2(reader); this.SpriteTurret.ReadV2(reader); } else { this.SpriteBase.ReadV1(reader); this.SpriteTurret.ReadV1(reader); } if (this.Version < 3) { this.SpriteBase.FixBlobId(); this.SpriteTurret.FixBlobId(); } if (this.Version >= 22) { for (int i = 0; i < 16; i++) { this.Products[i].Read(this.Version, reader); } } }