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


C# InIReader.ReadByte方法代码示例

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


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

示例1: GuildBuffInfo

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

示例2: LoadGuildSettings

        public static void LoadGuildSettings()
        {
            if (!File.Exists(ConfigPath + @".\GuildSettings.ini"))
            {
                Guild_CreationCostList.Add(new ItemVolume(){Amount = 1000000});
                Guild_CreationCostList.Add(new ItemVolume(){ItemName = "WoomaHorn",Amount = 1});
                return;
            }
            InIReader reader = new InIReader(ConfigPath + @".\GuildSettings.ini");
            Guild_RequiredLevel = reader.ReadByte("Guilds", "MinimumLevel", Guild_RequiredLevel);
            Guild_ExpRate = reader.ReadFloat("Guilds", "ExpRate", Guild_ExpRate);
            Guild_PointPerLevel = reader.ReadByte("Guilds", "PointPerLevel", Guild_PointPerLevel);
            Guild_WarTime = reader.ReadInt64("Guilds", "WarTime", Guild_WarTime);
            Guild_WarCost = reader.ReadUInt32("Guilds", "WarCost", Guild_WarCost);

            int i = 0;
            while (reader.ReadUInt32("Required-" + i.ToString(),"Amount",0) != 0)
            {
                Guild_CreationCostList.Add(new ItemVolume()
                {
                    ItemName = reader.ReadString("Required-" + i.ToString(), "ItemName", ""),
                    Amount = reader.ReadUInt32("Required-" + i.ToString(), "Amount", 0)
                }
                );
                i++;
            }
            i = 0;
            while (reader.ReadInt64("Exp", "Level-" + i.ToString(), -1) != -1)
            {
                Guild_ExperienceList.Add(reader.ReadInt64("Exp", "Level-" + i.ToString(), 0));
                i++;
            }
            i = 0;
            while (reader.ReadInt32("Cap", "Level-" + i.ToString(), -1) != -1)
            {
                Guild_MembercapList.Add(reader.ReadInt32("Cap", "Level-" + i.ToString(), 0));
                i++;
            }
            byte TotalBuffs = reader.ReadByte("Guilds", "TotalBuffs", 0);
            for (i = 0; i < TotalBuffs; i++)
            {
                Guild_BuffList.Add(new GuildBuffInfo(reader, i));
            }



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

示例3: LoadAwakeAttribute

		public static void LoadAwakeAttribute()
        {
            if (!File.Exists(ConfigPath + @".\AwakeningSystem.ini"))
            {
                return;
            }

            InIReader reader = new InIReader(ConfigPath + @".\AwakeningSystem.ini");
            Awake.AwakeSuccessRate = reader.ReadByte("Attribute", "SuccessRate", Awake.AwakeSuccessRate);
            Awake.AwakeHitRate = reader.ReadByte("Attribute", "HitRate", Awake.AwakeHitRate);
            Awake.MaxAwakeLevel = reader.ReadInt32("Attribute", "MaxUpgradeLevel", Awake.MaxAwakeLevel);
            Awake.Awake_WeaponRate = reader.ReadByte("IncreaseValue", "WeaponValue", Awake.Awake_WeaponRate);
            Awake.Awake_HelmetRate = reader.ReadByte("IncreaseValue", "HelmetValue", Awake.Awake_HelmetRate);
            Awake.Awake_ArmorRate = reader.ReadByte("IncreaseValue", "ArmorValue", Awake.Awake_ArmorRate);

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

            for (int i = 0; i < (int)AwakeType.HPMP; i++)
            {
                List<byte>[] value = new List<byte>[2];

                for (int k = 0; k < 2; k++)
                {
                    value[k] = new List<byte>();
                }

                for (int j = 0; j < 4; j++)
                {
                    byte material1 = 1;
                    material1 = reader.ReadByte("Materials_BaseValue", ((AwakeType)(i + 1)).ToString() + "_" + ((ItemGrade)(j + 1)).ToString() + "_Material1", material1);
                    byte material2 = 1;
                    material2 = reader.ReadByte("Materials_BaseValue", ((AwakeType)(i + 1)).ToString() + "_" + ((ItemGrade)(j + 1)).ToString() + "_Material2", material2);
                    value[0].Add(material1);
                    value[1].Add(material2);
                }

                Awake.AwakeMaterials.Add(value);
            }

            for (int c = 0; c < 4; c++)
            {
                Awake.AwakeMaterialRate[c] = reader.ReadFloat("Materials_IncreaseValue", "Materials_" + ((ItemGrade)(c + 1)).ToString(), Awake.AwakeMaterialRate[c]);
            }

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

示例4: LoadMines

        public static void LoadMines()
        {
            if (!File.Exists(ConfigPath + @".\Mines.ini"))
            {
                MineSetList.Add(new MineSet(1));
                MineSetList.Add(new MineSet(2));
                SaveMines();
                return;
            }
            InIReader reader = new InIReader(ConfigPath + @".\Mines.ini");
            int i = 0;
            MineSet Mine;
            while (reader.ReadByte("Mine" + i.ToString(), "SpotRegenRate", 255) != 255)
            {
                Mine = new MineSet();
                Mine.Name = reader.ReadString("Mine" + i.ToString(), "Name", Mine.Name);
                Mine.SpotRegenRate = reader.ReadByte("Mine" + i.ToString(), "SpotRegenRate", Mine.SpotRegenRate);
                Mine.MaxStones = reader.ReadByte("Mine" + i.ToString(), "MaxStones", Mine.MaxStones);
                Mine.HitRate = reader.ReadByte("Mine" + i.ToString(), "HitRate", Mine.HitRate);
                Mine.DropRate = reader.ReadByte("Mine" + i.ToString(), "DropRate", Mine.DropRate);
                Mine.TotalSlots = reader.ReadByte("Mine" + i.ToString(), "TotalSlots", Mine.TotalSlots);
                int j = 0;
                while (reader.ReadByte("Mine" + i.ToString(), "D" + j.ToString() + "-MinSlot", 255) != 255)
                {
                    Mine.Drops.Add(new MineDrop()
                        {
                            ItemName = reader.ReadString("Mine" + i.ToString(), "D" + j.ToString() + "-ItemName", ""),
                            MinSlot = reader.ReadByte("Mine" + i.ToString(), "D" + j.ToString() + "-MinSlot", 255),
                            MaxSlot = reader.ReadByte("Mine" + i.ToString(), "D" + j.ToString() + "-MaxSlot", 255),
                            MinDura = reader.ReadByte("Mine" + i.ToString(), "D" + j.ToString() + "-MinDura", 255),
                            MaxDura = reader.ReadByte("Mine" + i.ToString(), "D" + j.ToString() + "-MaxDura", 255),
                            BonusChance = reader.ReadByte("Mine" + i.ToString(), "D" + j.ToString() + "-BonusChance", 255),
                            MaxBonusDura = reader.ReadByte("Mine" + i.ToString(), "D" + j.ToString() + "-MaxBonusDura", 255)
                        });
                    j++;
                }
                MineSetList.Add(Mine);
                i++;
            }

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

示例5: LoadRandomItemStats

 public static void LoadRandomItemStats()
 {
     //note: i could have used a flat file system for this which would be faster, 
     //BUT: it's only loaded @ server startup so speed isnt vital.
     //and i think settings should be available outside the exe for ppl to edit it easyer + lets ppl share config without forcing ppl to run it in an exe
     if (!File.Exists(ConfigPath + @".\RandomItemStats.ini"))
     {
         RandomItemStatsList.Add(new RandomItemStat());
         RandomItemStatsList.Add(new RandomItemStat(ItemType.Weapon));
         RandomItemStatsList.Add(new RandomItemStat(ItemType.Armour));
         RandomItemStatsList.Add(new RandomItemStat(ItemType.Helmet));
         RandomItemStatsList.Add(new RandomItemStat(ItemType.Necklace));
         RandomItemStatsList.Add(new RandomItemStat(ItemType.Bracelet));
         RandomItemStatsList.Add(new RandomItemStat(ItemType.Ring));
         RandomItemStatsList.Add(new RandomItemStat(ItemType.Belt));
         SaveRandomItemStats();
         return;
     }
     InIReader reader = new InIReader(ConfigPath + @".\RandomItemStats.ini");
     int i = 0;
     RandomItemStat stat;
     while (reader.ReadByte("Item" + i.ToString(),"MaxDuraChance",255) != 255)
     {
         stat = new RandomItemStat();
         stat.MaxDuraChance = reader.ReadByte("Item" + i.ToString(), "MaxDuraChance", 0);
         stat.MaxDuraStatChance = reader.ReadByte("Item" + i.ToString(), "MaxDuraStatChance", 1);
         stat.MaxDuraMaxStat = reader.ReadByte("Item" + i.ToString(), "MaxDuraMaxStat", 1);
         stat.MaxAcChance = reader.ReadByte("Item" + i.ToString(), "MaxAcChance", 0);
         stat.MaxAcStatChance = reader.ReadByte("Item" + i.ToString(), "MaxAcStatChance", 1);
         stat.MaxAcMaxStat = reader.ReadByte("Item" + i.ToString(), "MaxAcMaxStat", 1);
         stat.MaxMacChance = reader.ReadByte("Item" + i.ToString(), "MaxMacChance", 0);
         stat.MaxMacStatChance = reader.ReadByte("Item" + i.ToString(), "MaxMacStatChance", 1);
         stat.MaxMacMaxStat = reader.ReadByte("Item" + i.ToString(), "MaxMACMaxStat", 1);
         stat.MaxDcChance = reader.ReadByte("Item" + i.ToString(), "MaxDcChance", 0);
         stat.MaxDcStatChance = reader.ReadByte("Item" + i.ToString(), "MaxDcStatChance", 1);
         stat.MaxDcMaxStat = reader.ReadByte("Item" + i.ToString(), "MaxDcMaxStat", 1);
         stat.MaxMcChance = reader.ReadByte("Item" + i.ToString(), "MaxMcChance", 0);
         stat.MaxMcStatChance = reader.ReadByte("Item" + i.ToString(), "MaxMcStatChance", 1);
         stat.MaxMcMaxStat = reader.ReadByte("Item" + i.ToString(), "MaxMcMaxStat", 1);
         stat.MaxScChance = reader.ReadByte("Item" + i.ToString(), "MaxScChance", 0);
         stat.MaxScStatChance = reader.ReadByte("Item" + i.ToString(), "MaxScStatChance", 1);
         stat.MaxScMaxStat = reader.ReadByte("Item" + i.ToString(), "MaxScMaxStat", 1);
         stat.AccuracyChance = reader.ReadByte("Item" + i.ToString(), "AccuracyChance", 0);
         stat.AccuracyStatChance = reader.ReadByte("Item" + i.ToString(), "AccuracyStatChance", 1);
         stat.AccuracyMaxStat = reader.ReadByte("Item" + i.ToString(), "AccuracyMaxStat", 1);
         stat.AgilityChance = reader.ReadByte("Item" + i.ToString(), "AgilityChance", 0);
         stat.AgilityStatChance = reader.ReadByte("Item" + i.ToString(), "AgilityStatChance", 1);
         stat.AgilityMaxStat = reader.ReadByte("Item" + i.ToString(), "AgilityMaxStat", 1);
         stat.HpChance = reader.ReadByte("Item" + i.ToString(), "HpChance", 0);
         stat.HpStatChance = reader.ReadByte("Item" + i.ToString(), "HpStatChance", 1);
         stat.HpMaxStat = reader.ReadByte("Item" + i.ToString(), "HpMaxStat", 1);
         stat.MpChance = reader.ReadByte("Item" + i.ToString(), "MpChance", 0);
         stat.MpStatChance = reader.ReadByte("Item" + i.ToString(), "MpStatChance", 1);
         stat.MpMaxStat = reader.ReadByte("Item" + i.ToString(), "MpMaxStat", 1);
         stat.StrongChance = reader.ReadByte("Item" + i.ToString(), "StrongChance", 0);
         stat.StrongStatChance = reader.ReadByte("Item" + i.ToString(), "StrongStatChance", 1);
         stat.StrongMaxStat = reader.ReadByte("Item" + i.ToString(), "StrongMaxStat", 1);
         stat.MagicResistChance = reader.ReadByte("Item" + i.ToString(), "MagicResistChance", 0);
         stat.MagicResistStatChance = reader.ReadByte("Item" + i.ToString(), "MagicResistStatChance", 1);
         stat.MagicResistMaxStat = reader.ReadByte("Item" + i.ToString(), "MagicResistMaxStat", 1);
         stat.PoisonResistChance = reader.ReadByte("Item" + i.ToString(), "PoisonResistChance", 0);
         stat.PoisonResistStatChance = reader.ReadByte("Item" + i.ToString(), "PoisonResistStatChance", 1);
         stat.PoisonResistMaxStat = reader.ReadByte("Item" + i.ToString(), "PoisonResistMaxStat", 1);
         stat.HpRecovChance = reader.ReadByte("Item" + i.ToString(), "HpRecovChance", 0);
         stat.HpRecovStatChance = reader.ReadByte("Item" + i.ToString(), "HpRecovStatChance", 1);
         stat.HpRecovMaxStat = reader.ReadByte("Item" + i.ToString(), "HpRecovMaxStat", 1);
         stat.MpRecovChance = reader.ReadByte("Item" + i.ToString(), "MpRecovChance", 0);
         stat.MpRecovStatChance = reader.ReadByte("Item" + i.ToString(), "MpRecovStatChance", 1);
         stat.MpRecovMaxStat = reader.ReadByte("Item" + i.ToString(), "MpRecovMaxStat", 1);
         stat.PoisonRecovChance = reader.ReadByte("Item" + i.ToString(), "PoisonRecovChance", 0);
         stat.PoisonRecovStatChance = reader.ReadByte("Item" + i.ToString(), "PoisonRecovStatChance", 1);
         stat.PoisonRecovMaxStat = reader.ReadByte("Item" + i.ToString(), "PoisonRecovMaxStat", 1);
         stat.CriticalRateChance = reader.ReadByte("Item" + i.ToString(), "CriticalRateChance", 0);
         stat.CriticalRateStatChance = reader.ReadByte("Item" + i.ToString(), "CriticalRateStatChance", 1);
         stat.CriticalRateMaxStat = reader.ReadByte("Item" + i.ToString(), "CriticalRateMaxStat", 1);
         stat.CriticalDamageChance = reader.ReadByte("Item" + i.ToString(), "CriticalDamageChance", 0);
         stat.CriticalDamageStatChance = reader.ReadByte("Item" + i.ToString(), "CriticalDamageStatChance", 1);
         stat.CriticalDamageMaxStat = reader.ReadByte("Item" + i.ToString(), "CriticalDamageMaxStat", 1);
         stat.FreezeChance = reader.ReadByte("Item" + i.ToString(), "FreezeChance", 0);
         stat.FreezeStatChance = reader.ReadByte("Item" + i.ToString(), "FreezeStatChance", 1);
         stat.FreezeMaxStat = reader.ReadByte("Item" + i.ToString(), "FreezeMaxStat", 1);
         stat.PoisonAttackChance = reader.ReadByte("Item" + i.ToString(), "PoisonAttackChance", 0);
         stat.PoisonAttackStatChance = reader.ReadByte("Item" + i.ToString(), "PoisonAttackStatChance", 1);
         stat.PoisonAttackMaxStat = reader.ReadByte("Item" + i.ToString(), "PoisonAttackMaxStat", 1);
         stat.AttackSpeedChance = reader.ReadByte("Item" + i.ToString(), "AttackSpeedChance", 0);
         stat.AttackSpeedStatChance = reader.ReadByte("Item" + i.ToString(), "AttackSpeedStatChance", 1);
         stat.AttackSpeedMaxStat = reader.ReadByte("Item" + i.ToString(), "AttackSpeedMaxStat", 1);
         stat.LuckChance = reader.ReadByte("Item" + i.ToString(), "LuckChance", 0);
         stat.LuckStatChance = reader.ReadByte("Item" + i.ToString(), "LuckStatChance", 1);
         stat.LuckMaxStat = reader.ReadByte("Item" + i.ToString(), "LuckMaxStat", 1);
         stat.CurseChance = reader.ReadByte("Item" + i.ToString(), "CurseChance", 0);
         RandomItemStatsList.Add(stat);
         i++;
     }
 }
开发者ID:thedeaths,项目名称:mir2,代码行数:95,代码来源:Settings.cs

示例6: LoadBaseStats

        public static void LoadBaseStats()
        {
            if (!File.Exists(ConfigPath + @".\BaseStats.ini"))
            {
                SaveBaseStats();
                return;
            }

            InIReader reader = new InIReader(ConfigPath + @".\BaseStats.ini");

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

示例7: LoadMentor

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

示例8: LoadRefine

        public static void LoadRefine()
        {
            if (!File.Exists(ConfigPath + @".\RefineSystem.ini"))
            {
                SaveRefine();
                return;
            }

            InIReader reader = new InIReader(ConfigPath + @".\RefineSystem.ini");
            OnlyRefineWeapon = reader.ReadBoolean("Config", "OnlyRefineWeapon", OnlyRefineWeapon);
            RefineBaseChance = reader.ReadByte("Config", "BaseChance", RefineBaseChance);
            RefineTime = reader.ReadInt32("Config", "Time", RefineTime);
            RefineIncrease = reader.ReadByte("Config", "StatIncrease", RefineIncrease);
            RefineCritChance = reader.ReadByte("Config", "CritChance", RefineCritChance);
            RefineCritIncrease = reader.ReadByte("Config", "CritIncrease", RefineCritIncrease);
            RefineWepStatReduce = reader.ReadByte("Config", "WepStatReducedChance", RefineWepStatReduce);
            RefineItemStatReduce = reader.ReadByte("Config", "ItemStatReducedChance", RefineItemStatReduce);
            RefineCost = reader.ReadInt32("Config", "RefineCost", RefineCost);

            RefineOreName = reader.ReadString("Ore", "OreName", RefineOreName);
        }
开发者ID:thedeaths,项目名称:mir2,代码行数:21,代码来源:Settings.cs


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