/// <summary> /// Extracts properties for a Nested object from the CSV-formatted line. /// </summary> /// <param name="values">CSV-formatted line containing properties of a Nested object</param> public sealed override void ExtractCsvLine(List <string> values) { GeneralData.Version = CSVReader.GetString(values[1]); GeneralData.Id = CSVReader.GetInt(values[2]); GeneralData.Name = CSVReader.GetString(values[3]); NestedData.NestedLioFileName = CSVReader.GetQuotedString(values[4]); }
public Sound(ref List <string> values, int start) { blobName = CSVReader.GetString(values[start]); blobID = CSVReader.GetString(values[start + 1]); maxSimultaneous = CSVReader.GetInt(values[start + 2]); if (blobID == "2") { Console.Write("Found blob id '{0}', {1},{2},{3} ", blobName, blobName, blobID, maxSimultaneous); } }
public static NestedItem Load(List <string> values) { NestedItem item = new NestedItem(); item.id = CSVReader.GetInt(values[0]); item.version = CSVReader.GetInt(values[1].Trim('v')); item.itemID = CSVReader.GetInt(values[2]); item.name = CSVReader.GetString(values[3]); item.location = CSVReader.GetString(values[4]); return(item); }
public Graphics(ref List <string> values, int start) { blobName = CSVReader.GetString(values[start]); blobID = CSVReader.GetString(values[start + 1]); lightPermutation = CSVReader.GetInt(values[start + 2]); paletteOffset = CSVReader.GetInt(values[start + 3]); hue = CSVReader.GetInt(values[start + 4]); saturation = CSVReader.GetInt(values[start + 5]); value = CSVReader.GetInt(values[start + 6]); animationTime = CSVReader.GetInt(values[start + 7]); }
/// <summary> /// Extracts properties for this object from a CSV-formatted line. /// </summary> /// <param name="values">CSV-formatted line containing properties of this object</param> public virtual void ExtractCsvLine(List <string> values) { GeneralData.Version = CSVReader.GetString(values[1]); GeneralData.Id = CSVReader.GetInt(values[2]); GeneralData.Name = CSVReader.GetString(values[3]); GeneralData.OffsetX = (short)CSVReader.GetInt(values[4]); GeneralData.OffsetY = (short)CSVReader.GetInt(values[5]); GeneralData.Width = (short)CSVReader.GetInt(values[6]); GeneralData.Height = (short)CSVReader.GetInt(values[7]); GeneralData.RelativeId = CSVReader.GetInt(values[8]); GeneralData.HuntFrequency = CSVReader.GetInt(values[9]); }
public static Projectile Load(List <string> values) { Projectile projectile = new Projectile(); projectile.iconGraphic = new Graphics(ref values, 23); projectile.fireGraphic = new Graphics(ref values, 175); projectile.projectileGraphic = new Graphics(ref values, 183); projectile.shadowGraphic = new Graphics(ref values, 191); projectile.trailGraphic = new Graphics(ref values, 199); projectile.explosionGraphic = new Graphics(ref values, 207); projectile.prefireGraphic = new Graphics(ref values, 71); projectile.firingSound = new Sound(ref values, 215); projectile.explosionSound = new Sound(ref values, 219); projectile.bounceSound = new Sound(ref values, 223); projectile.prefireSound = new Sound(ref values, 79); ItemInfo.LoadGeneralSettings1((ItemInfo)projectile, values); projectile.useAmmoID = CSVReader.GetInt(values[31]); projectile.ammoUsedPerShot = CSVReader.GetInt(values[32]); projectile.ammoCapacity = CSVReader.GetInt(values[33]); projectile.requiredItem = CSVReader.GetInt(values[34]); projectile.requiredItemAmount = CSVReader.GetInt(values[35]); projectile.terrain0EnergyCost = CSVReader.GetInt(values[36]); projectile.terrain1EnergyCost = CSVReader.GetInt(values[37]); projectile.terrain2EnergyCost = CSVReader.GetInt(values[38]); projectile.terrain3EnergyCost = CSVReader.GetInt(values[39]); projectile.terrain4EnergyCost = CSVReader.GetInt(values[40]); projectile.terrain5EnergyCost = CSVReader.GetInt(values[41]); projectile.terrain6EnergyCost = CSVReader.GetInt(values[42]); projectile.terrain7EnergyCost = CSVReader.GetInt(values[43]); projectile.terrain8EnergyCost = CSVReader.GetInt(values[44]); projectile.terrain9EnergyCost = CSVReader.GetInt(values[45]); projectile.terrain10EnergyCost = CSVReader.GetInt(values[46]); projectile.terrain11EnergyCost = CSVReader.GetInt(values[47]); projectile.terrain12EnergyCost = CSVReader.GetInt(values[48]); projectile.terrain13EnergyCost = CSVReader.GetInt(values[49]); projectile.terrain14EnergyCost = CSVReader.GetInt(values[50]); projectile.terrain15EnergyCost = CSVReader.GetInt(values[51]); projectile.secondShotEnergy = CSVReader.GetInt(values[52]); projectile.secondShotTimeout = CSVReader.GetInt(values[53]); projectile.fireDelay = CSVReader.GetInt(values[54]); projectile.fireDelayOther = CSVReader.GetInt(values[55]); projectile.maxFireDelay = CSVReader.GetInt(values[56]); projectile.entryFireDelay = CSVReader.GetInt(values[57]); projectile.reloadDelayNormal = CSVReader.GetInt(values[58]); projectile.reloadDelayPartial = CSVReader.GetInt(values[59]); projectile.reloadDelayAsyncronous = CSVReader.GetInt(values[60]); projectile.reloadDelayAsynchronousPartial = CSVReader.GetInt(values[61]); projectile.routeRange = CSVReader.GetInt(values[62]); projectile.routeRotationalRange = CSVReader.GetInt(values[63]); projectile.routeFriendly = CSVReader.GetBool(values[65]); projectile.recoil = CSVReader.GetInt(values[66]); projectile.verticle = CSVReader.GetInt(values[67]); projectile.prefireDelay = CSVReader.GetInt(values[68]); projectile.reliability = CSVReader.GetInt(values[69]); projectile.reliabilityFireDelay = CSVReader.GetInt(values[70]); projectile.movementCancelsPrefire = CSVReader.GetBool(values[83]); projectile.notifyOthersOfPrefire = CSVReader.GetBool(values[84]); projectile.cashCost = CSVReader.GetInt(values[85]); projectile.useWhileCarryingBall = CSVReader.GetBool(values[86]); projectile.useWhileCarryingFlag = CSVReader.GetBool(values[87]); projectile.soccerThrow = CSVReader.GetInt(values[88]); projectile.soccerBallFriction = CSVReader.GetInt(values[89]); projectile.soccerBallSpeed = CSVReader.GetInt(values[90]); projectile.soccerLowFireAngle = CSVReader.GetInt(values[91]); projectile.soccerHighFireAngle = CSVReader.GetInt(values[92]); projectile.horizontalFriction = CSVReader.GetInt(values[93]); projectile.inheritedSpeed = CSVReader.GetInt(values[94]); projectile.inheritZSpeed = CSVReader.GetInt(values[95]); projectile.startHeightAdjust = CSVReader.GetInt(values[96]); projectile.lowRotationAngle = CSVReader.GetInt(values[97]); projectile.highRotationAngle = CSVReader.GetInt(values[98]); projectile.lowFireAngle = CSVReader.GetInt(values[99]); projectile.highFireAngle = CSVReader.GetInt(values[100]); projectile.muzzleVelocity = CSVReader.GetInt(values[101]); projectile.gravityAcceleration = CSVReader.GetInt(values[102]); projectile.horizontalBounceSpeed = CSVReader.GetInt(values[103]); projectile.bounceCount = CSVReader.GetInt(values[104]); projectile.floorBounceVerticalSpeed = CSVReader.GetInt(values[105]); projectile.floorBounceHorizontalSpeed = CSVReader.GetInt(values[106]); projectile.floorBounceCount = CSVReader.GetInt(values[107]); projectile.proximityRadius = CSVReader.GetInt(values[108]); projectile.triggerWeight = CSVReader.GetInt(values[109]); projectile.aliveTime = CSVReader.GetInt(values[110]); projectile.rotationalStartTime = CSVReader.GetInt(values[111]); projectile.rotationalEndTime = CSVReader.GetInt(values[112]); projectile.rotationalSpeed = CSVReader.GetInt(values[113]); projectile.rotationalAcceleration = CSVReader.GetInt(values[114]); projectile.inactiveTime = CSVReader.GetInt(values[115]); projectile.damageMode = CSVReader.GetInt(values[116]); projectile.damageAccessible = CSVReader.GetBool(values[117]); projectile.trailDelay = CSVReader.GetInt(values[119]); projectile.explosionRecoilRadius = CSVReader.GetInt(values[120]); projectile.explosionRecoilVehicleVertical = CSVReader.GetInt(values[122]); projectile.explosionRecoilIgnoreTime = CSVReader.GetInt(values[123]); projectile.explosionRecoilWeapon = CSVReader.GetInt(values[124]); projectile.explosionRecoilWeaponDuration = CSVReader.GetInt(values[125]); projectile.explosionRecoilVehicleAbsolute = CSVReader.GetBool(values[126]); projectile.explosionRecoilWeaponAbsolute = CSVReader.GetBool(values[127]); projectile.explosionRecoilDirectionPercent = CSVReader.GetInt(values[128]); projectile.explosionScreenShakeAmount = CSVReader.GetInt(values[129]); projectile.maxLiveCategoryCode = CSVReader.GetInt(values[130]); projectile.maxLivePerPlayer = CSVReader.GetInt(values[131]); projectile.maxLivePerTeam = CSVReader.GetInt(values[132]); projectile.maxLivePerLevel = CSVReader.GetInt(values[133]); projectile.antiEffectsRadius = CSVReader.GetInt(values[134]); projectile.antiEffectsRecharge = CSVReader.GetInt(values[135]); projectile.antiEffectsFire = CSVReader.GetInt(values[136]); projectile.antiEffectsThrust = CSVReader.GetInt(values[137]); projectile.antiEffectsRotate = CSVReader.GetInt(values[138]); projectile.antiEffectsBallPickupDuration = CSVReader.GetInt(values[139]); projectile.antiEffectsBallThrowDuration = CSVReader.GetInt(values[140]); projectile.preventPointBlank = CSVReader.GetInt(values[141]); projectile.explodeItem = CSVReader.GetInt(values[142]); projectile.projectileRadarMode = CSVReader.GetInt(values[143]); projectile.damageEventRadius = CSVReader.GetInt(values[146]); projectile.damageEventString = CSVReader.GetString(values[147]); projectile.portalGravity = CSVReader.GetBool(values[148]); projectile.vehicleGravity = CSVReader.GetInt(values[150]); projectile.kineticDamageRadius = CSVReader.GetInt(values[151]); projectile.kineticDamageInner = CSVReader.GetInt(values[152]); projectile.kineticDamageOuter = CSVReader.GetInt(values[153]); projectile.kineticDamageMode = CSVReader.GetInt(values[154]); projectile.explosiveDamageRadius = CSVReader.GetInt(values[155]); projectile.explosiveDamageInner = CSVReader.GetInt(values[156]); projectile.explosiveDamageOuter = CSVReader.GetInt(values[157]); projectile.explosiveDamageMode = CSVReader.GetInt(values[158]); projectile.electronicDamageRadius = CSVReader.GetInt(values[159]); projectile.electronicDamageInner = CSVReader.GetInt(values[160]); projectile.electronicDamageOuter = CSVReader.GetInt(values[161]); projectile.electronicDamageMode = CSVReader.GetInt(values[162]); projectile.psionicDamageRadius = CSVReader.GetInt(values[163]); projectile.psionicDamageInner = CSVReader.GetInt(values[164]); projectile.psionicDamageOuter = CSVReader.GetInt(values[165]); projectile.psionicDamageMode = CSVReader.GetInt(values[166]); projectile.bypassDamageRadius = CSVReader.GetInt(values[167]); projectile.bypassDamageInner = CSVReader.GetInt(values[168]); projectile.bypassDamageOuter = CSVReader.GetInt(values[169]); projectile.bypassDamageMode = CSVReader.GetInt(values[170]); projectile.energyDamageRadius = CSVReader.GetInt(values[171]); projectile.energyDamageInner = CSVReader.GetInt(values[172]); projectile.energyDamageOuter = CSVReader.GetInt(values[173]); projectile.energyDamageMode = CSVReader.GetInt(values[174]); return(projectile); }
public static VehicleMaker Load(List <string> values) { VehicleMaker vehicleMaker = new VehicleMaker(); vehicleMaker.iconGraphic = new Graphics(ref values, 23); vehicleMaker.prefireGraphic = new Graphics(ref values, 71); vehicleMaker.prefireSound = new Sound(ref values, 79); vehicleMaker.itemType = (ItemType)CSVReader.GetInt(values[0]); vehicleMaker.version = CSVReader.GetInt(values[1].Trim('v')); vehicleMaker.id = CSVReader.GetInt(values[2]); vehicleMaker.name = CSVReader.GetQuotedString(values[3]); vehicleMaker.category = CSVReader.GetString(values[4]); vehicleMaker.skillLogic = CSVReader.GetQuotedString(values[5]); vehicleMaker.description = CSVReader.GetString(values[6]); vehicleMaker.weight = CSVReader.GetInt(values[7]); vehicleMaker.buyPrice = CSVReader.GetInt(values[8]); vehicleMaker.probability = CSVReader.GetInt(values[9]); vehicleMaker.droppable = CSVReader.GetBool(values[10]); vehicleMaker.keyPreference = CSVReader.GetInt(values[11]); vehicleMaker.recommended = CSVReader.GetInt(values[12]); vehicleMaker.maxAllowed = CSVReader.GetInt(values[13]); vehicleMaker.pickupMode = (PickupMode)CSVReader.GetInt(values[14]); vehicleMaker.sellPrice = CSVReader.GetInt(values[15]); vehicleMaker.radarColor = CSVReader.GetInt(values[17]); vehicleMaker.ammoID = CSVReader.GetInt(values[31]); vehicleMaker.ammoUsedPerShot = CSVReader.GetInt(values[32]); vehicleMaker.ammoCapacity = CSVReader.GetInt(values[33]); vehicleMaker.requiredItemID = CSVReader.GetInt(values[34]); vehicleMaker.requiredItemAmount = CSVReader.GetInt(values[35]); vehicleMaker.energyUseTerrain1 = CSVReader.GetInt(values[36]); vehicleMaker.energyUseTerrain2 = CSVReader.GetInt(values[37]); vehicleMaker.energyUseTerrain3 = CSVReader.GetInt(values[38]); vehicleMaker.energyUseTerrain4 = CSVReader.GetInt(values[39]); vehicleMaker.energyUseTerrain5 = CSVReader.GetInt(values[40]); vehicleMaker.energyUseTerrain6 = CSVReader.GetInt(values[41]); vehicleMaker.energyUseTerrain7 = CSVReader.GetInt(values[42]); vehicleMaker.energyUseTerrain8 = CSVReader.GetInt(values[43]); vehicleMaker.energyUseTerrain9 = CSVReader.GetInt(values[44]); vehicleMaker.energyUseTerrain10 = CSVReader.GetInt(values[45]); vehicleMaker.energyUseTerrain11 = CSVReader.GetInt(values[46]); vehicleMaker.energyUseTerrain12 = CSVReader.GetInt(values[47]); vehicleMaker.energyUseTerrain13 = CSVReader.GetInt(values[48]); vehicleMaker.energyUseTerrain14 = CSVReader.GetInt(values[49]); vehicleMaker.energyUseTerrain15 = CSVReader.GetInt(values[50]); vehicleMaker.energyUseTerrain16 = CSVReader.GetInt(values[51]); vehicleMaker.secondShotEnergy = CSVReader.GetInt(values[52]); vehicleMaker.secondShotTimeout = CSVReader.GetInt(values[53]); vehicleMaker.fireDelay = CSVReader.GetInt(values[54]); vehicleMaker.fireDelayOther = CSVReader.GetInt(values[55]); vehicleMaker.maxFireDelay = CSVReader.GetInt(values[56]); vehicleMaker.entryFireDelay = CSVReader.GetInt(values[57]); vehicleMaker.normalReloadDelay = CSVReader.GetInt(values[58]); vehicleMaker.partialReloadDelay = CSVReader.GetInt(values[59]); vehicleMaker.asynchronousReloadDelay = CSVReader.GetInt(values[60]); vehicleMaker.asynchronousPartialReloadDelay = CSVReader.GetInt(values[61]); vehicleMaker.routeRange = CSVReader.GetInt(values[62]); vehicleMaker.routeRotationalRange = CSVReader.GetInt(values[63]); vehicleMaker.routeFriendly = CSVReader.GetBool(values[65]); vehicleMaker.recoil = CSVReader.GetInt(values[66]); vehicleMaker.verticalRecoil = CSVReader.GetInt(values[67]); vehicleMaker.prefireDelay = CSVReader.GetInt(values[68]); vehicleMaker.reliabilityMisfire = CSVReader.GetInt(values[69]); vehicleMaker.reliabilityMisfireFireDelay = CSVReader.GetInt(values[70]); vehicleMaker.movementCancelsPrefire = CSVReader.GetInt(values[83]); vehicleMaker.prefireNotify = CSVReader.GetInt(values[84]); vehicleMaker.cashCost = CSVReader.GetInt(values[85]); vehicleMaker.useWhileCarryingBall = CSVReader.GetInt(values[86]); vehicleMaker.useWhileCarryingFlag = CSVReader.GetInt(values[87]); vehicleMaker.soccerThrow = CSVReader.GetInt(values[88]); vehicleMaker.soccerBallFriction = CSVReader.GetInt(values[89]); vehicleMaker.soccerBallSpeed = CSVReader.GetInt(values[90]); vehicleMaker.soccerLowFireAngle = CSVReader.GetInt(values[91]); vehicleMaker.soccerHighFireAngle = CSVReader.GetInt(values[92]); vehicleMaker.vehicleID = CSVReader.GetInt(values[93]); return(vehicleMaker); }