当前位置: 首页>>代码示例>>C#>>正文


C# InIReader.Write方法代码示例

本文整理汇总了C#中InIReader.Write方法的典型用法代码示例。如果您正苦于以下问题:C# InIReader.Write方法的具体用法?C# InIReader.Write怎么用?C# InIReader.Write使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在InIReader的用法示例。


在下文中一共展示了InIReader.Write方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Save

 public void Save(InIReader reader, int i)
 {
     reader.Write("Buff-" + i.ToString(), "Id", Id);
     reader.Write("Buff-" + i.ToString(), "Icon", Icon);
     reader.Write("Buff-" + i.ToString(), "Name", name);
     reader.Write("Buff-" + i.ToString(), "LevelReq", LevelRequirement);
     reader.Write("Buff-" + i.ToString(), "PointsReq", PointsRequirement);
     reader.Write("Buff-" + i.ToString(), "TimeLimit", TimeLimit); ;
     reader.Write("Buff-" + i.ToString(), "ActivationCost", ActivationCost); ;
     reader.Write("Buff-" + i.ToString(), "BuffAc", BuffAc); ;
     reader.Write("Buff-" + i.ToString(), "BuffMAC", BuffMac); ;
     reader.Write("Buff-" + i.ToString(), "BuffDc", BuffDc); ;
     reader.Write("Buff-" + i.ToString(), "BuffMc", BuffMc); ;
     reader.Write("Buff-" + i.ToString(), "BuffSc", BuffSc); ;
     reader.Write("Buff-" + i.ToString(), "BuffMaxHp", BuffMaxHp); ;
     reader.Write("Buff-" + i.ToString(), "BuffMaxMp", BuffMaxMp); ;
     reader.Write("Buff-" + i.ToString(), "BuffMineRate", BuffMineRate); ;
     reader.Write("Buff-" + i.ToString(), "BuffGemRate", BuffGemRate); ;
     reader.Write("Buff-" + i.ToString(), "BuffFishRate", BuffFishRate); ;
     reader.Write("Buff-" + i.ToString(), "BuffExpRate", BuffExpRate); ;
     reader.Write("Buff-" + i.ToString(), "BuffCraftRate", BuffCraftRate); ;
     reader.Write("Buff-" + i.ToString(), "BuffSkillRate", BuffSkillRate); ;
     reader.Write("Buff-" + i.ToString(), "BuffHpRegen", BuffHpRegen); ;
     reader.Write("Buff-" + i.ToString(), "BuffMpRegen", BuffMPRegen); ;
     reader.Write("Buff-" + i.ToString(), "BuffAttack", BuffAttack); ;
     reader.Write("Buff-" + i.ToString(), "BuffDropRate", BuffDropRate); ;
     reader.Write("Buff-" + i.ToString(), "BuffGoldRate", BuffGoldRate); ;
 }
开发者ID:thedeaths,项目名称:official-mir2c-,代码行数:28,代码来源:Common.cs

示例2: SaveMines

 public static void SaveMines()
 {
     File.Delete(ConfigPath + @".\Mines.ini");
     InIReader reader = new InIReader(ConfigPath + @".\Mines.ini");
     MineSet Mine;
     for (int i = 0; i < MineSetList.Count; i++)
     {
         Mine = MineSetList[i];
         reader.Write("Mine" + i.ToString(), "Name", Mine.Name);
         reader.Write("Mine" + i.ToString(), "SpotRegenRate", Mine.SpotRegenRate);
         reader.Write("Mine" + i.ToString(), "MaxStones", Mine.MaxStones);
         reader.Write("Mine" + i.ToString(), "HitRate", Mine.HitRate);
         reader.Write("Mine" + i.ToString(), "DropRate", Mine.DropRate);
         reader.Write("Mine" + i.ToString(), "TotalSlots", Mine.TotalSlots);
         
         for (int j = 0; j < Mine.Drops.Count; j++)
         {
             MineDrop Drop = Mine.Drops[j];
             reader.Write("Mine" + i.ToString(), "D" + j.ToString() + "-ItemName", Drop.ItemName);
             reader.Write("Mine" + i.ToString(), "D" + j.ToString() + "-MinSlot", Drop.MinSlot);
             reader.Write("Mine" + i.ToString(), "D" + j.ToString() + "-MaxSlot", Drop.MaxSlot);
             reader.Write("Mine" + i.ToString(), "D" + j.ToString() + "-MinDura", Drop.MinDura);
             reader.Write("Mine" + i.ToString(), "D" + j.ToString() + "-MaxDura", Drop.MaxDura);
             reader.Write("Mine" + i.ToString(), "D" + j.ToString() + "-BonusChance", Drop.BonusChance);
             reader.Write("Mine" + i.ToString(), "D" + j.ToString() + "-MaxBonusDura", Drop.MaxBonusDura);
         }
     }
 }
开发者ID:thedeaths,项目名称:mir2,代码行数:28,代码来源:Settings.cs

示例3: SaveGuildSettings

        public static void SaveGuildSettings()
        {
            File.Delete(ConfigPath + @".\GuildSettings.ini");
            InIReader reader = new InIReader(ConfigPath + @".\GuildSettings.ini");
            reader.Write("Guilds", "MinimumLevel", Guild_RequiredLevel);
            reader.Write("Guilds", "ExpRate", Guild_ExpRate);
            reader.Write("Guilds", "PointPerLevel", Guild_PointPerLevel);
            reader.Write("Guilds", "TotalBuffs", Guild_BuffList.Count);
            reader.Write("Guilds", "WarTime", Guild_WarTime);
            reader.Write("Guilds", "WarCost", Guild_WarCost);

            int i = 0;
            for (i = 0; i < Guild_ExperienceList.Count; i++)
            {
                reader.Write("Exp", "Level-" + i.ToString(), Guild_ExperienceList[i]);
            }
            for (i = 0; i < Guild_MembercapList.Count; i++)
            {
                reader.Write("Cap", "Level-" + i.ToString(), Guild_MembercapList[i]);
            }
            for (i = 0; i < Guild_CreationCostList.Count; i++)
            {
                reader.Write("Required-" + i.ToString(), "ItemName", Guild_CreationCostList[i].ItemName);
                reader.Write("Required-" + i.ToString(), "Amount", Guild_CreationCostList[i].Amount);
            }
            for (i = 0; i < Guild_BuffList.Count; i++)
            {
                Guild_BuffList[i].Save(reader, i);
            }
        }
开发者ID:thedeaths,项目名称:mir2,代码行数:30,代码来源:Settings.cs

示例4: SaveBaseStats

        public static void SaveBaseStats()
        {
            File.Delete(ConfigPath + @".\BaseStats.ini");
            InIReader reader = new InIReader(ConfigPath + @".\BaseStats.ini");

            for (int i = 0; i < ClassBaseStats.Length; i++)
            {
                reader.Write(BaseStatClassNames[i], "HpGain", ClassBaseStats[i].HpGain);
                reader.Write(BaseStatClassNames[i], "HpGainRate", ClassBaseStats[i].HpGainRate);
                reader.Write(BaseStatClassNames[i], "MpGainRate", ClassBaseStats[i].MpGainRate);
                reader.Write(BaseStatClassNames[i], "BagWeightGain", ClassBaseStats[i].BagWeightGain);
                reader.Write(BaseStatClassNames[i], "WearWeightGain", ClassBaseStats[i].WearWeightGain);
                reader.Write(BaseStatClassNames[i], "HandWeightGain", ClassBaseStats[i].HandWeightGain);
                reader.Write(BaseStatClassNames[i], "MinAc", ClassBaseStats[i].MinAc);
                reader.Write(BaseStatClassNames[i], "MaxAc", ClassBaseStats[i].MaxAc);
                reader.Write(BaseStatClassNames[i], "MinMac", ClassBaseStats[i].MinMac);
                reader.Write(BaseStatClassNames[i], "MaxMac", ClassBaseStats[i].MaxMac);
                reader.Write(BaseStatClassNames[i], "MinDc", ClassBaseStats[i].MinDc);
                reader.Write(BaseStatClassNames[i], "MaxDc", ClassBaseStats[i].MaxDc);
                reader.Write(BaseStatClassNames[i], "MinMc", ClassBaseStats[i].MinMc);
                reader.Write(BaseStatClassNames[i], "MaxMc", ClassBaseStats[i].MaxMc);
                reader.Write(BaseStatClassNames[i], "MinSc", ClassBaseStats[i].MinSc);
                reader.Write(BaseStatClassNames[i], "MaxSc", ClassBaseStats[i].MaxSc);
                reader.Write(BaseStatClassNames[i], "StartAgility", ClassBaseStats[i].StartAgility);
                reader.Write(BaseStatClassNames[i], "StartAccuracy", ClassBaseStats[i].StartAccuracy);
                reader.Write(BaseStatClassNames[i], "StartCriticalRate", ClassBaseStats[i].StartCriticalRate);
                reader.Write(BaseStatClassNames[i], "StartCriticalDamage", ClassBaseStats[i].StartCriticalDamage);
                reader.Write(BaseStatClassNames[i], "CritialRateGain", ClassBaseStats[i].CritialRateGain);
                reader.Write(BaseStatClassNames[i], "CriticalDamageGain", ClassBaseStats[i].CriticalDamageGain);
            }
        }
开发者ID:thedeaths,项目名称:mir2,代码行数:31,代码来源:Settings.cs

示例5: SaveRandomItemStats

 public static void SaveRandomItemStats()
 {
     File.Delete(ConfigPath + @".\RandomItemStats.ini");
     InIReader reader = new InIReader(ConfigPath + @".\RandomItemStats.ini");
     RandomItemStat stat;
     for (int i = 0; i < RandomItemStatsList.Count; i++)
     {
         stat = RandomItemStatsList[i];
         reader.Write("Item" + i.ToString(), "MaxDuraChance", stat.MaxDuraChance);
         reader.Write("Item" + i.ToString(), "MaxDuraStatChance", stat.MaxDuraStatChance);
         reader.Write("Item" + i.ToString(), "MaxDuraMaxStat", stat.MaxDuraMaxStat);
         reader.Write("Item" + i.ToString(), "MaxAcChance", stat.MaxAcChance);
         reader.Write("Item" + i.ToString(), "MaxAcStatChance", stat.MaxAcStatChance);
         reader.Write("Item" + i.ToString(), "MaxAcMaxStat", stat.MaxAcMaxStat);
         reader.Write("Item" + i.ToString(), "MaxMacChance", stat.MaxMacChance);
         reader.Write("Item" + i.ToString(), "MaxMacStatChance", stat.MaxMacStatChance);
         reader.Write("Item" + i.ToString(), "MaxMACMaxStat", stat.MaxMacMaxStat);
         reader.Write("Item" + i.ToString(), "MaxDcChance", stat.MaxDcChance);
         reader.Write("Item" + i.ToString(), "MaxDcStatChance", stat.MaxDcStatChance);
         reader.Write("Item" + i.ToString(), "MaxDcMaxStat", stat.MaxDcMaxStat);
         reader.Write("Item" + i.ToString(), "MaxMcChance", stat.MaxMcChance);
         reader.Write("Item" + i.ToString(), "MaxMcStatChance",  stat.MaxMcStatChance);
         reader.Write("Item" + i.ToString(), "MaxMcMaxStat", stat.MaxMcMaxStat);
         reader.Write("Item" + i.ToString(), "MaxScChance", stat.MaxScChance);
         reader.Write("Item" + i.ToString(), "MaxScStatChance", stat.MaxScStatChance);
         reader.Write("Item" + i.ToString(), "MaxScMaxStat", stat.MaxScMaxStat);
         reader.Write("Item" + i.ToString(), "AccuracyChance", stat.AccuracyChance);
         reader.Write("Item" + i.ToString(), "AccuracyStatChance", stat.AccuracyStatChance);
         reader.Write("Item" + i.ToString(), "AccuracyMaxStat", stat.AccuracyMaxStat);
         reader.Write("Item" + i.ToString(), "AgilityChance", stat.AgilityChance);
         reader.Write("Item" + i.ToString(), "AgilityStatChance", stat.AgilityStatChance);
         reader.Write("Item" + i.ToString(), "AgilityMaxStat", stat.AgilityMaxStat);
         reader.Write("Item" + i.ToString(), "HpChance", stat.HpChance);
         reader.Write("Item" + i.ToString(), "HpStatChance", stat.HpStatChance);
         reader.Write("Item" + i.ToString(), "HpMaxStat", stat.HpMaxStat);
         reader.Write("Item" + i.ToString(), "MpChance", stat.MpChance);
         reader.Write("Item" + i.ToString(), "MpStatChance", stat.MpStatChance);
         reader.Write("Item" + i.ToString(), "MpMaxStat", stat.MpMaxStat);
         reader.Write("Item" + i.ToString(), "StrongChance", stat.StrongChance);
         reader.Write("Item" + i.ToString(), "StrongStatChance", stat.StrongStatChance);
         reader.Write("Item" + i.ToString(), "StrongMaxStat", stat.StrongMaxStat);
         reader.Write("Item" + i.ToString(), "MagicResistChance", stat.MagicResistChance);
         reader.Write("Item" + i.ToString(), "MagicResistStatChance", stat.MagicResistStatChance);
         reader.Write("Item" + i.ToString(), "MagicResistMaxStat", stat.MagicResistMaxStat);
         reader.Write("Item" + i.ToString(), "PoisonResistChance", stat.PoisonResistChance);
         reader.Write("Item" + i.ToString(), "PoisonResistStatChance", stat.PoisonResistStatChance);
         reader.Write("Item" + i.ToString(), "PoisonResistMaxStat", stat.PoisonResistMaxStat);
         reader.Write("Item" + i.ToString(), "HpRecovChance", stat.HpRecovChance);
         reader.Write("Item" + i.ToString(), "HpRecovStatChance", stat.HpRecovStatChance);
         reader.Write("Item" + i.ToString(), "HpRecovMaxStat", stat.HpRecovMaxStat);
         reader.Write("Item" + i.ToString(), "MpRecovChance", stat.MpRecovChance);
         reader.Write("Item" + i.ToString(), "MpRecovStatChance", stat.MpRecovStatChance);
         reader.Write("Item" + i.ToString(), "MpRecovMaxStat", stat.MpRecovMaxStat);
         reader.Write("Item" + i.ToString(), "PoisonRecovChance", stat.PoisonRecovChance);
         reader.Write("Item" + i.ToString(), "PoisonRecovStatChance", stat.PoisonRecovStatChance);
         reader.Write("Item" + i.ToString(), "PoisonRecovMaxStat", stat.PoisonRecovMaxStat);
         reader.Write("Item" + i.ToString(), "CriticalRateChance", stat.CriticalRateChance);
         reader.Write("Item" + i.ToString(), "CriticalRateStatChance", stat.CriticalRateStatChance);
         reader.Write("Item" + i.ToString(), "CriticalRateMaxStat", stat.CriticalRateMaxStat);
         reader.Write("Item" + i.ToString(), "CriticalDamageChance", stat.CriticalDamageChance);
         reader.Write("Item" + i.ToString(), "CriticalDamageStatChance", stat.CriticalDamageStatChance);
         reader.Write("Item" + i.ToString(), "CriticalDamageMaxStat", stat.CriticalDamageMaxStat);
         reader.Write("Item" + i.ToString(), "FreezeChance", stat.FreezeChance);
         reader.Write("Item" + i.ToString(), "FreezeStatChance", stat.FreezeStatChance);
         reader.Write("Item" + i.ToString(), "FreezeMaxStat", stat.FreezeMaxStat);
         reader.Write("Item" + i.ToString(), "PoisonAttackChance", stat.PoisonAttackChance);
         reader.Write("Item" + i.ToString(), "PoisonAttackStatChance", stat.PoisonAttackStatChance);
         reader.Write("Item" + i.ToString(), "PoisonAttackMaxStat", stat.PoisonAttackMaxStat);
         reader.Write("Item" + i.ToString(), "AttackSpeedChance", stat.AttackSpeedChance);
         reader.Write("Item" + i.ToString(), "AttackSpeedStatChance", stat.AttackSpeedStatChance);
         reader.Write("Item" + i.ToString(), "AttackSpeedMaxStat", stat.AttackSpeedMaxStat);
         reader.Write("Item" + i.ToString(), "LuckChance", stat.LuckChance);
         reader.Write("Item" + i.ToString(), "LuckStatChance", stat.LuckStatChance);
         reader.Write("Item" + i.ToString(), "LuckMaxStat", stat.LuckMaxStat);
         reader.Write("Item" + i.ToString(), "CurseChance", stat.CurseChance);
     }
 }
开发者ID:thedeaths,项目名称:mir2,代码行数:77,代码来源:Settings.cs

示例6: SaveGem

 public static void SaveGem()
 {
     File.Delete(ConfigPath + @".\GemSystem.ini");
     InIReader reader = new InIReader(ConfigPath + @".\GemSystem.ini");
     reader.Write("Config", "GemStatIndependent", GemStatIndependent);
 }
开发者ID:thedeaths,项目名称:mir2,代码行数:6,代码来源:Settings.cs

示例7: SaveGoods

 public static void SaveGoods()
 {
     File.Delete(ConfigPath + @".\GoodsSystem.ini");
     InIReader reader = new InIReader(ConfigPath + @".\GoodsSystem.ini");
     reader.Write("Goods", "On", GoodsOn);
     reader.Write("Goods", "MaxStored", GoodsMaxStored);
     reader.Write("Goods", "BuyBackTime", GoodsBuyBackTime);
     reader.Write("Goods", "BuyBackMaxStored", GoodsBuyBackMaxStored);
 }
开发者ID:thedeaths,项目名称:mir2,代码行数:9,代码来源:Settings.cs

示例8: SaveMarriage

 public static void SaveMarriage()
 {
     File.Delete(ConfigPath + @".\MarriageSystem.ini");
     InIReader reader = new InIReader(ConfigPath + @".\MarriageSystem.ini");
     reader.Write("Config", "EXPBonus", LoverEXPBonus);
     reader.Write("Config", "MarriageCooldown", MarriageCooldown);
     reader.Write("Config", "AllowLoverRecall", WeddingRingRecall);
     reader.Write("Config", "MinimumLevel", MarriageLevelRequired);
     reader.Write("Config", "ReplaceRingCost", ReplaceWedRingCost); 
 }
开发者ID:thedeaths,项目名称:mir2,代码行数:10,代码来源:Settings.cs

示例9: SaveMentor

 public static void SaveMentor()
 {
     File.Delete(ConfigPath + @".\MentorSystem.ini");
     InIReader reader = new InIReader(ConfigPath + @".\MentorSystem.ini");
     reader.Write("Config", "LevelGap", MentorLevelGap);
     reader.Write("Config", "MenteeSkillBoost", MentorSkillBoost);
     reader.Write("Config", "MentorshipLength", MentorLength);
     reader.Write("Config", "MentorDamageBoost", MentorDamageBoost);
     reader.Write("Config", "MenteeExpBoost", MentorExpBoost);
     reader.Write("Config", "PercentXPtoMentor", MenteeExpBank);
 }
开发者ID:thedeaths,项目名称:mir2,代码行数:11,代码来源:Settings.cs

示例10: SaveRefine

        public static void SaveRefine()
        {
            File.Delete(ConfigPath + @".\RefineSystem.ini");
            InIReader reader = new InIReader(ConfigPath + @".\RefineSystem.ini");
            reader.Write("Config", "OnlyRefineWeapon", OnlyRefineWeapon);
            reader.Write("Config", "BaseChance", RefineBaseChance);
            reader.Write("Config", "Time", RefineTime);
            reader.Write("Config", "StatIncrease", RefineIncrease);
            reader.Write("Config", "CritChance", RefineCritChance);
            reader.Write("Config", "CritIncrease", RefineCritIncrease);
            reader.Write("Config", "WepStatReducedChance", RefineWepStatReduce);
            reader.Write("Config", "ItemStatReducedChance", RefineItemStatReduce);
            reader.Write("Config", "RefineCost", RefineCost);

            reader.Write("Ore", "OreName", RefineOreName);

        }
开发者ID:thedeaths,项目名称:mir2,代码行数:17,代码来源:Settings.cs

示例11: SaveMail

 public static void SaveMail()
 {
     File.Delete(ConfigPath + @".\MailSystem.ini");
     InIReader reader = new InIReader(ConfigPath + @".\MailSystem.ini");
     reader.Write("AutoSend", "Gold", MailAutoSendGold);
     reader.Write("AutoSend", "Items", MailAutoSendItems);
     reader.Write("Rates", "FreeWithStamp", MailFreeWithStamp);
     reader.Write("Rates", "CostPer1k", MailCostPer1KGold);
     reader.Write("Rates", "InsurancePerItem", MailItemInsurancePercentage);
 }
开发者ID:thedeaths,项目名称:mir2,代码行数:10,代码来源:Settings.cs

示例12: SaveFishing

 public static void SaveFishing()
 {
     File.Delete(ConfigPath + @".\FishingSystem.ini");
     InIReader reader = new InIReader(ConfigPath + @".\FishingSystem.ini");
     reader.Write("Rates", "Attempts", FishingAttempts);
     reader.Write("Rates", "SuccessStart", FishingSuccessStart);
     reader.Write("Rates", "SuccessMultiplier", FishingSuccessMultiplier);
     reader.Write("Rates", "Delay", FishingDelay);
     reader.Write("Rates", "MonsterSpawnChance", FishingMobSpawnChance);
     reader.Write("Game", "Monster", FishingMonster);
 }
开发者ID:thedeaths,项目名称:mir2,代码行数:11,代码来源:Settings.cs

示例13: SaveAwakeAttribute

        public static void SaveAwakeAttribute()
        {
            File.Delete(ConfigPath + @".\AwakeningSystem.ini");
            InIReader reader = new InIReader(ConfigPath + @".\AwakeningSystem.ini");
            reader.Write("Attribute", "SuccessRate", Awake.AwakeSuccessRate);
            reader.Write("Attribute", "HitRate", Awake.AwakeHitRate);
            reader.Write("Attribute", "MaxUpgradeLevel", Awake.MaxAwakeLevel);

            reader.Write("IncreaseValue", "WeaponValue", Awake.Awake_WeaponRate);
            reader.Write("IncreaseValue", "HelmetValue", Awake.Awake_HelmetRate);
            reader.Write("IncreaseValue", "ArmorValue", Awake.Awake_ArmorRate);

            for (int i = 0; i < 4; i++)
            {
                reader.Write("Value", "ChanceMax_" + ((ItemGrade)(i + 1)).ToString(), Awake.AwakeChanceMax[i]);
            }

            if (Awake.AwakeMaterials.Count == 0)
            {
                for (int i = 0; i < (int)AwakeType.HPMP; i++)
                {
                    for (int j = 0; j < 4; j++)
                    {
                        reader.Write("Materials_BaseValue", ((AwakeType)(i + 1)).ToString() + "_" + ((ItemGrade)(j + 1)).ToString() + "_Material1", 1);
                        reader.Write("Materials_BaseValue", ((AwakeType)(i + 1)).ToString() + "_" + ((ItemGrade)(j + 1)).ToString() + "_Material2", 1);
                    }
                }
            }
            else
            {
                for (int i = 0; i < (int)AwakeType.HPMP; i++)
                {
                    List<byte>[] value = Awake.AwakeMaterials[i];

                    for (int j = 0; j < value[0].Count; j++)
                    {
                        reader.Write("Materials_BaseValue", ((AwakeType)(i + 1)).ToString() + "_" + ((ItemGrade)(j + 1)).ToString() + "_Material1", value[0][j]);
                        reader.Write("Materials_BaseValue", ((AwakeType)(i + 1)).ToString() + "_" + ((ItemGrade)(j + 1)).ToString() + "_Material2", value[1][j]);
                    }

                    Awake.AwakeMaterials.Add(value);
                }
            }

            for (int c = 0; c < 4; c++)
            {
                reader.Write("Materials_IncreaseValue", "Materials_" + ((ItemGrade)(c + 1)).ToString(), Awake.AwakeMaterialRate[c]);
            }
        }
开发者ID:thedeaths,项目名称:mir2,代码行数:49,代码来源:Settings.cs

示例14: Save

        public bool Save(CustomAI mobToSave)
        {
            if (mobToSave == null || mobToSave.Name.Length <= 0)
                return false;
            InIReader Writer = new InIReader(@".\Custom\Unique AIs\" + mobToSave.Name + ".ini");
            Writer.Write("Bools", "SetXY", mobToSave.SetXY);
            Writer.Write("Bools", "MapSpecific", mobToSave.MapSpecific);
            Writer.Write("Bools", "AnnounceSpawn", mobToSave.AnnounceSpawn);
            Writer.Write("Bools", "AnnounceDrop", mobToSave.AnnounceDrop);
            Writer.Write("Bools", "AnnounceDeath", mobToSave.AnnounceDeath);
            Writer.Write("Bools", "UseMassAttack", mobToSave.UseMassAttack);
            Writer.Write("Bools", "UseSpecialAttack", mobToSave.UseSpecialAttack);
            Writer.Write("Bools", "UseMeleeAttack", mobToSave.UseMeleeAttack);
            Writer.Write("Bools", "UseRangeAttack", mobToSave.UseRangeAttack);
            Writer.Write("Bools", "Target", mobToSave.Target);
            Writer.Write("Bools", "UseKillTimer", mobToSave.UseKillTimer);
            Writer.Write("Bools", "IgnorePets", mobToSave.IgnorePets);
            Writer.Write("Bools", "DamagePetsMore", mobToSave.DamagePetsMore);
            Writer.Write("Bools", "CanPara", mobToSave.CanPara);
            Writer.Write("Bools", "CanGreen", mobToSave.CanGreen);
            Writer.Write("Bools", "CanRed", mobToSave.CanRed);
            Writer.Write("Bools", "SpawnSlaves", mobToSave.Spawn_Slaves);
            if (mobToSave.MapSpecific)
                Writer.Write("Strings", "MapName", mobToSave.MapName);
            if (mobToSave.AnnounceSpawn)
                Writer.Write("Strings", "SpawnMessage", mobToSave.SpawnMessage);
            if (mobToSave.AnnounceDeath)
                Writer.Write("Strings", "DeathMessage", mobToSave.DeadMessage);
            if (mobToSave.AnnounceDrop)
                Writer.Write("Strings", "ItemMessage", mobToSave.ItemMessage);
            if (mobToSave.SetXY)
            {
                Writer.Write("Ints", "MapX", mobToSave.MapX);
                Writer.Write("Ints", "MapY", mobToSave.MapY);
            }

            if (mobToSave.UseMassAttack)
            {
                Writer.Write("Ints", "MassAttackEffect", mobToSave.MassAttackEffect);
                Writer.Write("Damage", "MassAttackDamage", mobToSave.MassAttackDamage);
            }
            if (mobToSave.UseSpecialAttack)
            {
                Writer.Write("Ints", "SpecialAttackEffect", mobToSave.SpecialAttackEffect);
                Writer.Write("Damage", "SpecialAttackDamage", mobToSave.SpecialAttackDamage);
            }
            if (mobToSave.UseMeleeAttack)
            {
                Writer.Write("Ints", "MeleeAttackEffect", mobToSave.MeleeAttackEffect);
                Writer.Write("Damage", "MeleeAttackDamage", mobToSave.MeleeAttackDamage);
            }
            if (mobToSave.UseRangeAttack)
            {
                Writer.Write("Ints", "RangeAttackEffect", mobToSave.RangeAttackEffect);
                Writer.Write("Damage", "RangeAttackDamage", mobToSave.RangeAttackDamage);
            }
            if (mobToSave.UseMagicAttack)
            {
                Writer.Write("Ints", "MagicAttackEffect", mobToSave.MagicAttackEffect);
                Writer.Write("Damage", "MagicAttackDamage", mobToSave.MagicAttackDamage);
            }
            if (mobToSave.Target)
            {
                Writer.Write("Strings", "TargetClass", mobToSave.TargetClass); //Default = Warrior
                Writer.Write("Damage", "TargetDamage", mobToSave.TargetAttackDamage);
            }
            if (mobToSave.DamagePetsMore || !mobToSave.IgnorePets)
                Writer.Write("Damage", "PetDamage", mobToSave.PetAttackDamage);

            if (mobToSave.UseKillTimer)
            {
                Writer.Write("Strings", "KillTimer", mobToSave.KillTimer);
                Writer.Write("Ints", "RespawnDays", mobToSave.RespawnDay);
                Writer.Write("Ints", "RespawnMonths", mobToSave.RespawnMonth);
                Writer.Write("Ints", "RespawnYears", mobToSave.RespawnYear);
                Writer.Write("Ints", "RespawnHours", mobToSave.RespawnHour);
                Writer.Write("Ints", "RespawnMinutes", mobToSave.RespawnMinute);
            }
            Writer.Write("Ints", "ItemCount", mobToSave.ItemCount);

            if (mobToSave.Spawn_Slaves)
            {
                for (int i = 0; i < mobToSave.Slaves.Count; i++)
                {
                    Writer.Write("Slaves", "Slave" + i, mobToSave.Slaves[i].Name);
                    Writer.Write("Slaves", "SlaveCount" + i, mobToSave.Slaves[i].Count);
                }
            }
            if (mobToSave.ItemCount > 0)
            {
                for (int i = 0; i < mobToSave.ItemCount; i++)
                {
                    Writer.Write("Items", "Item" + i, mobToSave.Drops[i].Name);
                    Writer.Write("Items", "ItemChance" + i, mobToSave.Drops[i].Chance);
                }
            }
            Writer.Write("States", "Status", mobToSave.Alive);
            Writer.Write("States", "CurrentMap", mobToSave.CurrentMap);
            Writer.Write("States", "CurrentX", mobToSave.CurrentX);
            Writer.Write("States", "CurrentY", mobToSave.CurrentY);
//.........这里部分代码省略.........
开发者ID:Pete107,项目名称:Mir2,代码行数:101,代码来源:CustomAI.cs


注:本文中的InIReader.Write方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。