Example #1
0
 public static void LoadGeneralSettings1(ItemInfo item, List <string> values)
 {
     item.itemType          = (ItemType)CSVReader.GetInt(values[0]);
     item.version           = CSVReader.GetInt(values[1].Trim('v'));
     item.id                = CSVReader.GetInt(values[2]);
     item.name              = CSVReader.GetQuotedString(values[3]);
     item.category          = CSVReader.GetQuotedString(values[4]);
     item.skillLogic        = CSVReader.GetQuotedString(values[5]);
     item.description       = CSVReader.GetQuotedString(values[6]);
     item.weight            = CSVReader.GetFloat(values[7]);
     item.buyPrice          = CSVReader.GetInt(values[8]);
     item.probability       = CSVReader.GetInt(values[9]);
     item.droppable         = CSVReader.GetBool(values[10]);
     item.keyPreference     = CSVReader.GetInt(values[11]);
     item.recommended       = CSVReader.GetInt(values[12]);
     item.maxAllowed        = CSVReader.GetInt(values[13]);
     item.pickupMode        = (PickupMode)CSVReader.GetInt(values[14]);
     item.sellPrice         = CSVReader.GetInt(values[15]);
     item.expireTimer       = CSVReader.GetInt(values[16]);
     item.radarColor        = CSVReader.GetInt(values[17]);
     item.prizeBountyPoints = CSVReader.GetInt(values[18]);
     item.relativeID        = CSVReader.GetInt(values[19]);
     item.heldCategoryType  = CSVReader.GetInt(values[20]);
     item.pruneDropPercent  = CSVReader.GetInt(values[21]);
     item.pruneOdds         = CSVReader.GetInt(values[22]);
 }
Example #2
0
            /// <summary>
            /// Extracts properties for a Sound object from the CSV-formatted line.
            /// </summary>
            /// <param name="values">CSV-formatted line containing properties of a Sound object</param>
            public sealed override void ExtractCsvLine(List <string> values)
            {
                base.ExtractCsvLine(values);

                SoundData.Frequency          = CSVReader.GetInt(values[10]);
                SoundData.PlayOdds           = CSVReader.GetInt(values[11]);
                SoundData.IsTriggeredOnEntry = CSVReader.GetBool(values[12]);
                SoundData.TriggerDelay       = CSVReader.GetInt(values[13]);
                SoundData.SoundVolume        = CSVReader.GetInt(values[14]);
                SoundData.MinPlayerCount     = CSVReader.GetInt(values[15]);
                SoundData.MaxPlayerCount     = CSVReader.GetInt(values[16]);
                SoundData.InactiveFrame      = CSVReader.GetInt(values[17]);
                SoundData.SoundGfxBlobName   = CSVReader.GetQuotedString(values[18]);
                SoundData.SoundGfxBlobId     = CSVReader.GetQuotedString(values[19]);
                SoundData.LightPermutation   = CSVReader.GetInt(values[20]);
                SoundData.PaletteOffset      = CSVReader.GetInt(values[21]);
                SoundData.Hue           = CSVReader.GetInt(values[22]);
                SoundData.Saturation    = CSVReader.GetInt(values[23]);
                SoundData.Value         = CSVReader.GetInt(values[24]);
                SoundData.AnimationTime = CSVReader.GetInt(values[25]);
                SoundData.SoundBlobName = CSVReader.GetQuotedString(values[26]);
                SoundData.SoundBlobId   = CSVReader.GetQuotedString(values[27]);
                SoundData.Simultaneous  = CSVReader.GetInt(values[28]);

                //Load the blobs
                BlobsToLoad.Add(SoundData.SoundBlobName);
                BlobsToLoad.Add(SoundData.SoundGfxBlobName);
            }
            public static ItemMaker Load(List <string> values)
            {
                ItemMaker item = new ItemMaker();

                item.iconGraphic    = new Graphics(ref values, 23);
                item.prefireGraphic = new Graphics(ref values, 71);
                item.prefireSound   = new Sound(ref values, 79);
                ItemInfo.LoadGeneralSettings1((ItemInfo)item, values);

                item.useAmmoID                      = CSVReader.GetInt(values[31]);
                item.ammoUsedPerShot                = CSVReader.GetInt(values[32]);
                item.ammoCapacity                   = CSVReader.GetInt(values[33]);
                item.requiredItem                   = CSVReader.GetInt(values[34]);
                item.requiredItemAmount             = CSVReader.GetInt(values[35]);
                item.energyCostTerrain0             = CSVReader.GetInt(values[36]);
                item.energyCostTerrain1             = CSVReader.GetInt(values[37]);
                item.energyCostTerrain2             = CSVReader.GetInt(values[38]);
                item.energyCostTerrain3             = CSVReader.GetInt(values[39]);
                item.energyCostTerrain4             = CSVReader.GetInt(values[40]);
                item.energyCostTerrain5             = CSVReader.GetInt(values[41]);
                item.energyCostTerrain6             = CSVReader.GetInt(values[42]);
                item.energyCostTerrain7             = CSVReader.GetInt(values[43]);
                item.energyCostTerrain8             = CSVReader.GetInt(values[44]);
                item.energyCostTerrain9             = CSVReader.GetInt(values[45]);
                item.energyCostTerrain10            = CSVReader.GetInt(values[46]);
                item.energyCostTerrain11            = CSVReader.GetInt(values[47]);
                item.energyCostTerrain12            = CSVReader.GetInt(values[48]);
                item.energyCostTerrain13            = CSVReader.GetInt(values[49]);
                item.energyCostTerrain14            = CSVReader.GetInt(values[50]);
                item.energyCostTerrain15            = CSVReader.GetInt(values[51]);
                item.secondShotEnergy               = CSVReader.GetInt(values[52]);
                item.secondShotTimeout              = CSVReader.GetInt(values[53]);
                item.fireDelay                      = CSVReader.GetInt(values[54]);
                item.fireDelayOther                 = CSVReader.GetInt(values[55]);
                item.maxFireDelay                   = CSVReader.GetInt(values[56]);
                item.entryFireDelay                 = CSVReader.GetInt(values[57]);
                item.reloadDelayNormal              = CSVReader.GetInt(values[58]);
                item.reloadDelayPartial             = CSVReader.GetInt(values[59]);
                item.reloadDelayAsynchronous        = CSVReader.GetInt(values[60]);
                item.reloadDelayAsynchronousPartial = CSVReader.GetInt(values[61]);
                item.routeRange                     = CSVReader.GetInt(values[62]);
                item.routeRotationalRange           = CSVReader.GetInt(values[63]);
                item.routeFriendly                  = CSVReader.GetBool(values[65]);
                item.recoil                 = CSVReader.GetInt(values[66]);
                item.verticalRecoil         = CSVReader.GetInt(values[67]);
                item.prefireDelay           = CSVReader.GetInt(values[68]);
                item.reliability            = CSVReader.GetInt(values[69]);
                item.reliabilityFireDelay   = CSVReader.GetInt(values[70]);
                item.movementCancelsPrefire = CSVReader.GetBool(values[83]);
                item.notifyOthersOfPrefire  = CSVReader.GetBool(values[84]);
                item.cashCost               = CSVReader.GetInt(values[85]);
                item.useWhileCarryingBall   = CSVReader.GetBool(values[86]);
                item.useWhileCarryingFlag   = CSVReader.GetBool(values[87]);
                item.itemMakerItemID        = CSVReader.GetInt(values[93]);
                item.itemMakerQuantity      = CSVReader.GetInt(values[94]);

                return(item);
            }
Example #4
0
            /// <summary>
            /// Extracts properties for a Switch object from the CSV-formatted line.
            /// </summary>
            /// <param name="values">CSV-formatted line containing properties of a Switch object</param>
            public sealed override void ExtractCsvLine(List <string> values)
            {
                base.ExtractCsvLine(values);

                SwitchData.Switch = CSVReader.GetInt(values[10]);

                for (int i = 0; i < 16; i++)
                {
                    SwitchData.SwitchLioId[i] = CSVReader.GetInt(values[11 + i]);
                }

                SwitchData.SwitchDelay     = CSVReader.GetInt(values[27]);
                SwitchData.AmmoId          = CSVReader.GetInt(values[28]);
                SwitchData.UseAmmoAmount   = CSVReader.GetInt(values[29]);
                SwitchData.UseEnergyAmount = CSVReader.GetInt(values[30]);
                SwitchData.AutoCloseDelay  = CSVReader.GetInt(values[31]);
                SwitchData.SkillLogic      = CSVReader.GetQuotedString(values[32]);

                SwitchData.Frequency               = CSVReader.GetInt(values[33]);
                SwitchData.AmmoOverridesLogic      = CSVReader.GetBool(values[34]);
                SwitchData.AmmoOverridesFrequency  = CSVReader.GetBool(values[35]);
                SwitchData.FrequencyOverridesAmmo  = CSVReader.GetBool(values[36]);
                SwitchData.FrequencyOverridesLogic = CSVReader.GetBool(values[37]);
                SwitchData.LogicOverridesAmmo      = CSVReader.GetBool(values[38]);
                SwitchData.LogicOverridesFrequency = CSVReader.GetBool(values[39]);

                SwitchData.SwitchGfxBlobName = CSVReader.GetQuotedString(values[40]);
                SwitchData.SwitchGfxBlobId   = CSVReader.GetQuotedString(values[41]);
                SwitchData.LightPermutation  = CSVReader.GetInt(values[42]);
                SwitchData.PaletteOffset     = CSVReader.GetInt(values[43]);
                SwitchData.Hue           = CSVReader.GetInt(values[44]);
                SwitchData.Saturation    = CSVReader.GetInt(values[45]);
                SwitchData.Value         = CSVReader.GetInt(values[46]);
                SwitchData.AnimationTime = CSVReader.GetInt(values[47]);

                SwitchData.SwitchSoundBlobName     = CSVReader.GetQuotedString(values[48]);
                SwitchData.SwitchSoundBlobId       = CSVReader.GetQuotedString(values[49]);
                SwitchData.SwitchSoundSimultaneous = CSVReader.GetInt(values[50]);

                //Load the blobs
                BlobsToLoad.Add(SwitchData.SwitchGfxBlobName);
                BlobsToLoad.Add(SwitchData.SwitchSoundBlobName);
            }
Example #5
0
            /// <summary>
            /// Extracts properties for a Flag object from the CSV-formatted line.
            /// </summary>
            /// <param name="values">CSV-formatted line containing properties of a Flag object</param>
            public sealed override void ExtractCsvLine(List <string> values)
            {
                base.ExtractCsvLine(values);

                FlagData.OddsOfAppearance = CSVReader.GetInt(values[10]);
                FlagData.MinPlayerCount   = CSVReader.GetInt(values[11]);
                FlagData.MaxPlayerCount   = CSVReader.GetInt(values[12]);
                FlagData.FriendlyOwnedFlagPlayerVisibility = CSVReader.GetInt(values[13]);
                FlagData.EnemyOwnedFlagPlayerVisibility    = CSVReader.GetInt(values[14]);
                FlagData.UnownedFlagPlayerVisibility       = CSVReader.GetInt(values[15]);
                FlagData.OwnedFlagSpectatorVisibility      = CSVReader.GetInt(values[16]);
                FlagData.UnownedFlagSpectatorVisibility    = CSVReader.GetInt(values[17]);
                FlagData.FriendlyFlagLos = CSVReader.GetInt(values[18]);
                FlagData.EnemyFlagLos    = CSVReader.GetInt(values[19]);
                FlagData.UnownedFlagLos  = CSVReader.GetInt(values[20]);

                FlagData.FlagCarriable          = CSVReader.GetInt(values[21]);
                FlagData.IsFlagOwnedWhenCarried = CSVReader.GetBool(values[22]);
                FlagData.IsFlagOwnedWhenDropped = CSVReader.GetBool(values[23]);

                FlagData.DropDelay      = CSVReader.GetInt(values[24]);
                FlagData.DropDelayReset = CSVReader.GetInt(values[25]);
                FlagData.DropRadius     = CSVReader.GetInt(values[26]);

                FlagData.TransferMode = CSVReader.GetInt(values[27]);

                FlagData.PeriodicPointsReward     = CSVReader.GetInt(values[28]);
                FlagData.PeriodicExperienceReward = CSVReader.GetInt(values[29]);
                FlagData.PeriodicCashReward       = CSVReader.GetInt(values[30]);

                FlagData.PickupDelay = CSVReader.GetInt(values[31]);

                FlagData.FlagOwnerSpecialRadius        = CSVReader.GetInt(values[32]);
                FlagData.FlagOwnerSpecialHealRate      = CSVReader.GetInt(values[33]);
                FlagData.FlagOwnerSpecialEnergyRate    = CSVReader.GetInt(values[34]);
                FlagData.FlagOwnerSpecialRepairRate    = CSVReader.GetInt(values[35]);
                FlagData.FlagOwnerSpecialShieldPercent = CSVReader.GetInt(values[36]);

                FlagData.FlagGraphicRow = CSVReader.GetInt(values[37]);
                FlagData.TurretrGroupId = CSVReader.GetInt(values[38]);
                FlagData.FlagRelativeId = CSVReader.GetInt(values[39]);
                FlagData.SkillLogic     = CSVReader.GetQuotedString(values[40]);

                for (int i = 0; i < 15; i++)
                {
                    FlagData.FlagDroppableTerrains[i] = CSVReader.GetInt(values[41 + i]);
                }

                FlagData.NonFlagOwnerSpecialRadius        = CSVReader.GetInt(values[57]);
                FlagData.NonFlagOwnerSpecialHealRate      = CSVReader.GetInt(values[58]);
                FlagData.NonFlagOwnerSpecialEnergyRate    = CSVReader.GetInt(values[59]);
                FlagData.NonFlagOwnerSpecialRepairRate    = CSVReader.GetInt(values[60]);
                FlagData.NonFlagOwnerSpecialShieldPercent = CSVReader.GetInt(values[61]);

                FlagData.FlagGfxBlobName = CSVReader.GetQuotedString(values[62]);
                FlagData.FlagGfxBlobId   = CSVReader.GetQuotedString(values[63]);

                FlagData.LightPermutation = CSVReader.GetInt(values[64]);
                FlagData.PaletteOffset    = CSVReader.GetInt(values[65]);
                FlagData.Hue           = CSVReader.GetInt(values[66]);
                FlagData.Saturation    = CSVReader.GetInt(values[67]);
                FlagData.Value         = CSVReader.GetInt(values[68]);
                FlagData.AnimationTime = CSVReader.GetInt(values[69]);

                FlagData.SoundPickupBlobName     = CSVReader.GetQuotedString(values[70]);
                FlagData.SoundPickupBlobId       = CSVReader.GetQuotedString(values[71]);
                FlagData.SoundPickupSimultaneous = CSVReader.GetInt(values[72]);

                FlagData.SoundDropBlobName     = CSVReader.GetQuotedString(values[74]);
                FlagData.SoundDropBlobId       = CSVReader.GetQuotedString(values[75]);
                FlagData.SoundDropSimultaneous = CSVReader.GetInt(values[76]);

                //Load the blobs
                BlobsToLoad.Add(FlagData.FlagGfxBlobName);
                BlobsToLoad.Add(FlagData.SoundDropBlobName);
                BlobsToLoad.Add(FlagData.SoundPickupBlobName);
            }
Example #6
0
            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);
            }
Example #7
0
            public static RepairItem Load(List <string> values)
            {
                RepairItem item = new RepairItem();

                item.iconGraphic    = new Graphics(ref values, 23);
                item.prefireGraphic = new Graphics(ref values, 71);
                item.repairGraphic  = new Graphics(ref values, 100);
                item.prefireSound   = new Sound(ref values, 79);
                item.repairSound    = new Sound(ref values, 108);
                ItemInfo.LoadGeneralSettings1((ItemInfo)item, values);

                item.useAmmoID                      = CSVReader.GetInt(values[31]);
                item.ammoUsedPerShot                = CSVReader.GetInt(values[32]);
                item.ammoCapacity                   = CSVReader.GetInt(values[33]);
                item.requiredItem                   = CSVReader.GetInt(values[34]);
                item.requiredItemAmount             = CSVReader.GetInt(values[35]);
                item.energyCostTerrain0             = CSVReader.GetInt(values[36]);
                item.energyCostTerrain1             = CSVReader.GetInt(values[37]);
                item.energyCostTerrain2             = CSVReader.GetInt(values[38]);
                item.energyCostTerrain3             = CSVReader.GetInt(values[39]);
                item.energyCostTerrain4             = CSVReader.GetInt(values[40]);
                item.energyCostTerrain5             = CSVReader.GetInt(values[41]);
                item.energyCostTerrain6             = CSVReader.GetInt(values[42]);
                item.energyCostTerrain7             = CSVReader.GetInt(values[43]);
                item.energyCostTerrain8             = CSVReader.GetInt(values[44]);
                item.energyCostTerrain9             = CSVReader.GetInt(values[45]);
                item.energyCostTerrain10            = CSVReader.GetInt(values[46]);
                item.energyCostTerrain11            = CSVReader.GetInt(values[47]);
                item.energyCostTerrain12            = CSVReader.GetInt(values[48]);
                item.energyCostTerrain13            = CSVReader.GetInt(values[49]);
                item.energyCostTerrain14            = CSVReader.GetInt(values[50]);
                item.energyCostTerrain15            = CSVReader.GetInt(values[51]);
                item.secondShotEnergy               = CSVReader.GetInt(values[52]);
                item.secondShotTimeout              = CSVReader.GetInt(values[53]);
                item.fireDelay                      = CSVReader.GetInt(values[54]);
                item.fireDelayOther                 = CSVReader.GetInt(values[55]);
                item.maxFireDelay                   = CSVReader.GetInt(values[56]);
                item.entryFireDelay                 = CSVReader.GetInt(values[57]);
                item.reloadDelayNormal              = CSVReader.GetInt(values[58]);
                item.reloadDelayPartial             = CSVReader.GetInt(values[59]);
                item.reloadDelayAsynchronous        = CSVReader.GetInt(values[60]);
                item.reloadDelayAsynchronousPartial = CSVReader.GetInt(values[61]);
                item.routeRange                     = CSVReader.GetInt(values[62]);
                item.routeRotationalRange           = CSVReader.GetInt(values[63]);
                item.routeFriendly                  = CSVReader.GetBool(values[65]);
                item.recoil                 = CSVReader.GetInt(values[66]);
                item.verticalRecoil         = CSVReader.GetInt(values[67]);
                item.prefireDelay           = CSVReader.GetInt(values[68]);
                item.reliability            = CSVReader.GetInt(values[69]);
                item.reliabilityFireDelay   = CSVReader.GetInt(values[70]);
                item.movementCancelsPrefire = CSVReader.GetBool(values[83]);
                item.notifyOthersOfPrefire  = CSVReader.GetBool(values[84]);
                item.cashCost               = CSVReader.GetInt(values[85]);
                item.useWhileCarryingBall   = CSVReader.GetBool(values[86]);
                item.useWhileCarryingFlag   = CSVReader.GetBool(values[87]);
                item.soccerThrow            = CSVReader.GetInt(values[88]);
                item.soccerBallFriction     = CSVReader.GetInt(values[89]);
                item.soccerBallSpeed        = CSVReader.GetInt(values[90]);
                item.soccerLowFireAngle     = CSVReader.GetInt(values[91]);
                item.soccerHighFireAngle    = CSVReader.GetInt(values[92]);
                item.repairType             = CSVReader.GetInt(values[93]);
                item.repairAmount           = CSVReader.GetInt(values[94]);
                item.repairPercentage       = CSVReader.GetInt(values[95]);
                item.repairTime             = CSVReader.GetInt(values[96]);
                item.repairDistance         = CSVReader.GetInt(values[97]);
                item.killPotential          = CSVReader.GetInt(values[98]);
                item.repairSelf             = CSVReader.GetBool(values[99]);

                return(item);
            }
Example #8
0
            public static MultiUse Load(List <string> values)
            {
                MultiUse multiUse = new MultiUse();

                multiUse.prefireGraphic = new Graphics(ref values, 71);
                multiUse.prefireSound   = new Sound(ref values, 79);
                multiUse.firingSound    = new Sound(ref values, 93);
                multiUse.iconGraphic    = new Graphics(ref values, 23);
                ItemInfo.LoadGeneralSettings1((ItemInfo)multiUse, values);

                multiUse.useAmmoID                      = CSVReader.GetInt(values[31]);
                multiUse.ammoUsedPerShot                = CSVReader.GetInt(values[32]);
                multiUse.ammoCapacity                   = CSVReader.GetInt(values[33]);
                multiUse.requiredItem                   = CSVReader.GetInt(values[34]);
                multiUse.requiredAmmoAmount             = CSVReader.GetInt(values[35]);
                multiUse.energyCostTerrain0             = CSVReader.GetInt(values[36]);
                multiUse.energyCostTerrain1             = CSVReader.GetInt(values[37]);
                multiUse.energyCostTerrain2             = CSVReader.GetInt(values[38]);
                multiUse.energyCostTerrain3             = CSVReader.GetInt(values[39]);
                multiUse.energyCostTerrain4             = CSVReader.GetInt(values[40]);
                multiUse.energyCostTerrain5             = CSVReader.GetInt(values[41]);
                multiUse.energyCostTerrainTerrain6      = CSVReader.GetInt(values[42]);
                multiUse.energyCostTerrain7             = CSVReader.GetInt(values[43]);
                multiUse.energyCostTerrain8             = CSVReader.GetInt(values[44]);
                multiUse.energyCostTerrain9             = CSVReader.GetInt(values[45]);
                multiUse.energyCostTerrain10            = CSVReader.GetInt(values[46]);
                multiUse.energyCostTerrain11            = CSVReader.GetInt(values[47]);
                multiUse.energyCostTerrain12            = CSVReader.GetInt(values[48]);
                multiUse.energyCostTerrain13            = CSVReader.GetInt(values[49]);
                multiUse.energyCostTerrain14            = CSVReader.GetInt(values[50]);
                multiUse.energyCostTerrain15            = CSVReader.GetInt(values[51]);
                multiUse.secondShotEnergy               = CSVReader.GetInt(values[52]);
                multiUse.secondShotTimeout              = CSVReader.GetInt(values[53]);
                multiUse.fireDelay                      = CSVReader.GetInt(values[54]);
                multiUse.fireDelayOther                 = CSVReader.GetInt(values[55]);
                multiUse.maxFireDelay                   = CSVReader.GetInt(values[56]);
                multiUse.entryFireDelay                 = CSVReader.GetInt(values[57]);
                multiUse.reloadDelayNormal              = CSVReader.GetInt(values[58]);
                multiUse.reloadDelayPartial             = CSVReader.GetInt(values[59]);
                multiUse.reloadDelayAsynchronous        = CSVReader.GetInt(values[60]);
                multiUse.reloadDelayAsynchronousPartial = CSVReader.GetInt(values[61]);
                multiUse.routeRange                     = CSVReader.GetInt(values[62]);
                multiUse.routeRotationalRange           = CSVReader.GetInt(values[63]);
                multiUse.routeFriendly                  = CSVReader.GetBool(values[65]);
                multiUse.recoil                 = CSVReader.GetInt(values[66]);
                multiUse.verticalRecoil         = CSVReader.GetInt(values[67]);
                multiUse.prefireDelay           = CSVReader.GetInt(values[68]);
                multiUse.reliability            = CSVReader.GetInt(values[69]);
                multiUse.reliabilityFireDelay   = CSVReader.GetInt(values[70]);
                multiUse.movementCancelsPrefire = CSVReader.GetBool(values[83]);
                multiUse.notifyOthersOfPrefire  = CSVReader.GetBool(values[84]);
                multiUse.cashCost               = CSVReader.GetInt(values[85]);
                multiUse.useWhileCarryingBall   = CSVReader.GetBool(values[86]);
                multiUse.useWhileCarryingFlag   = CSVReader.GetBool(values[87]);
                multiUse.soccerThrow            = CSVReader.GetInt(values[88]);
                multiUse.soccerBallFriction     = CSVReader.GetInt(values[89]);
                multiUse.soccerBallSpeed        = CSVReader.GetInt(values[90]);
                multiUse.soccerLowFireAngle     = CSVReader.GetInt(values[91]);
                multiUse.soccerHighFireAngle    = CSVReader.GetInt(values[92]);

                int currentPlace = 97;

                multiUse.childItems = new List <ChildItem>();

                for (int i = 0; i < 32; i++)
                {
                    if (currentPlace < values.Count)
                    {
                        ChildItem child = new ChildItem();
                        child.id               = CSVReader.GetInt(values[currentPlace + 0]);
                        child.deltaX           = CSVReader.GetInt(values[currentPlace + 1]);
                        child.deltaY           = CSVReader.GetInt(values[currentPlace + 2]);
                        child.deltaZ           = CSVReader.GetInt(values[currentPlace + 3]);
                        child.deltaAngle       = CSVReader.GetInt(values[currentPlace + 4]);
                        child.theMultiLinkMode = (ChildItem.MultiLinkModes)CSVReader.GetInt(values[currentPlace + 5]);
                        multiUse.childItems.Add(child);
                        currentPlace += 6;
                    }
                    else
                    {
                        break;
                    }
                }
                return(multiUse);
            }
            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);
            }