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(); }
public override void Read(ICsvReader reader) { base.Read(reader); this.Version = int.Parse(reader.GetString().Substring(1)); // sets version...? this.Id = reader.GetInt(); this.Name = reader.GetString(); this.Unknown5C8 = reader.GetString(); }
// >= 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 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.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(); } }
} // 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 override void Read(ICsvReader reader) { base.Read(reader); if (this.Version >= 21) { for (int i = 0; i < 16; i++) { this.Unknown120[i] = reader.GetString(); this.Unknown520[i] = reader.GetInt(); } } else { this.Unknown520[0] = reader.GetInt(); } }
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.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); } } }
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); 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(); } }