internal new static DataTalknpc _create(Config.Stream os) { var self = new DataTalknpc(); self.Npcid = os.ReadInt32(); return(self); }
internal new static DataChat _create(Config.Stream os) { var self = new DataChat(); self.Msg = os.ReadString(); return(self); }
internal new static DataCollectitem _create(Config.Stream os) { var self = new DataCollectitem(); self.Itemid = os.ReadInt32(); self.Count = os.ReadInt32(); return self; }
internal static DataJewelrytype _create(Config.Stream os) { var self = new DataJewelrytype(); self.TypeName = os.ReadString(); return(self); }
internal new static DataConditionand _create(Config.Stream os) { var self = new DataConditionand(); self.Cond1 = Config.Task.DataCompletecondition._create(os); self.Cond2 = Config.Task.DataCompletecondition._create(os); return(self); }
internal static DataAbility _create(Config.Stream os) { var self = new DataAbility(); self.Id = os.ReadInt32(); self.Name = os.ReadString(); return(self); }
internal static DataCompleteconditiontype _create(Config.Stream os) { var self = new DataCompleteconditiontype(); self.Id = os.ReadInt32(); self.Name = os.ReadString(); return(self); }
internal static DataRange _create(Config.Stream os) { var self = new DataRange(); self.Min = os.ReadInt32(); self.Max = os.ReadInt32(); return(self); }
internal new static DataKillmonster _create(Config.Stream os) { var self = new DataKillmonster(); self.Monsterid = os.ReadInt32(); self.Count = os.ReadInt32(); return(self); }
internal static DataTaskextraexp _create(Config.Stream os) { var self = new DataTaskextraexp(); self.Taskid = os.ReadInt32(); self.Extraexp = os.ReadInt32(); return(self); }
internal static DataLevelrank _create(Config.Stream os) { var self = new DataLevelrank(); self.Level = os.ReadInt32(); self.Rank = os.ReadInt32(); return(self); }
internal static void Initialize(Config.Stream os, Config.LoadErrors errors) { all = new Config.KeyedList <Key, DataLootitem>(); for (var c = os.ReadSize(); c > 0; c--) { var self = _create(os); all.Add(new Key(self.Lootid, self.Itemid), self); } }
internal static DataRank _create(Config.Stream os) { var self = new DataRank(); self.RankID = os.ReadInt32(); self.RankName = os.ReadString(); self.RankShowName = os.ReadString(); return(self); }
internal static void Initialize(Config.Stream os, Config.LoadErrors errors) { all = new Config.KeyedList <Config.DataLevelrank, DataJewelryrandom>(); for (var c = os.ReadInt32(); c > 0; c--) { var self = _create(os); all.Add(self.LvlRank, self); } }
internal static void Initialize(Config.Stream os, Config.LoadErrors errors) { all = new Config.KeyedList <int, DataJewelry>(); for (var c = os.ReadSize(); c > 0; c--) { var self = _create(os); all.Add(self.ID, self); } }
internal static void Initialize(Config.Stream os, Config.LoadErrors errors) { all = new Config.KeyedList <int, DataTaskextraexp>(); for (var c = os.ReadInt32(); c > 0; c--) { var self = _create(os); all.Add(self.Taskid, self); } }
internal static DataPosition _create(Config.Stream os) { var self = new DataPosition(); self.X = os.ReadInt32(); self.Y = os.ReadInt32(); self.Z = os.ReadInt32(); return(self); }
internal static void Initialize(Config.Stream os, Config.LoadErrors errors) { all = new Config.KeyedList <int, DataCompleteconditiontype>(); for (var c = os.ReadSize(); c > 0; c--) { var self = _create(os); all.Add(self.Id, self); if (self.Name.Trim().Length == 0) { continue; } switch (self.Name.Trim()) { case "KillMonster": if (KillMonster != null) { errors.EnumDup("task.completeconditiontype", self.ToString()); } KillMonster = self; break; case "TalkNpc": if (TalkNpc != null) { errors.EnumDup("task.completeconditiontype", self.ToString()); } TalkNpc = self; break; case "CollectItem": if (CollectItem != null) { errors.EnumDup("task.completeconditiontype", self.ToString()); } CollectItem = self; break; default: errors.EnumDataAdd("task.completeconditiontype", self.ToString()); break; } } if (KillMonster == null) { errors.EnumNull("task.completeconditiontype", "KillMonster"); } if (TalkNpc == null) { errors.EnumNull("task.completeconditiontype", "TalkNpc"); } if (CollectItem == null) { errors.EnumNull("task.completeconditiontype", "CollectItem"); } }
internal static void Initialize(Config.Stream os, Config.LoadErrors errors) { all = new Config.KeyedList <int, DataLoot>(); for (var c = os.ReadSize(); c > 0; c--) { var self = _create(os); all.Add(self.Lootid, self); if (self.Ename.Trim().Length == 0) { continue; } switch (self.Ename.Trim()) { case "combo1": if (Combo1 != null) { errors.EnumDup("loot", self.ToString()); } Combo1 = self; break; case "combo2": if (Combo2 != null) { errors.EnumDup("loot", self.ToString()); } Combo2 = self; break; case "combo3": if (Combo3 != null) { errors.EnumDup("loot", self.ToString()); } Combo3 = self; break; default: errors.EnumDataAdd("loot", self.ToString()); break; } } if (Combo1 == null) { errors.EnumNull("loot", "combo1"); } if (Combo2 == null) { errors.EnumNull("loot", "combo2"); } if (Combo3 == null) { errors.EnumNull("loot", "combo3"); } }
internal static DataLootitem _create(Config.Stream os) { var self = new DataLootitem(); self.Lootid = os.ReadInt32(); self.Itemid = os.ReadInt32(); self.Chance = os.ReadInt32(); self.Countmin = os.ReadInt32(); self.Countmax = os.ReadInt32(); return(self); }
internal static DataMonster _create(Config.Stream os) { var self = new DataMonster(); self.Id = os.ReadInt32(); self.PosList = new List <Config.DataPosition>(); for (var c = (int)os.ReadSize(); c > 0; c--) { self.PosList.Add(Config.DataPosition._create(os)); } return(self); }
internal static DataTask _create(Config.Stream os) { var self = new DataTask(); self.Taskid = os.ReadInt32(); self.Name = os.ReadString(); self.Desc = os.ReadString(); self.Nexttask = os.ReadInt32(); self.Completecondition = Config.Task.DataCompletecondition._create(os); self.Exp = os.ReadInt32(); return(self); }
internal static DataJewelryrandom _create(Config.Stream os) { var self = new DataJewelryrandom(); self.LvlRank = Config.DataLevelrank._create(os); self.AttackRange = Config.DataRange._create(os); self.OtherRange = new List <Config.DataRange>(); for (var c = (int)os.ReadSize(); c > 0; c--) { self.OtherRange.Add(Config.DataRange._create(os)); } return(self); }
internal static DataLoot _create(Config.Stream os) { var self = new DataLoot(); self.Lootid = os.ReadInt32(); self.Ename = os.ReadString(); self.Name = os.ReadString(); self.ChanceList = new List <int>(); for (var c = os.ReadInt32(); c > 0; c--) { self.ChanceList.Add(os.ReadInt32()); } return(self); }
internal static DataJewelry _create(Config.Stream os) { var self = new DataJewelry(); self.ID = os.ReadInt32(); self.Name = os.ReadString(); self.IconFile = os.ReadString(); self.LvlRank = Config.DataLevelrank._create(os); self.Type = os.ReadString(); self.SuitID = os.ReadInt32(); self.KeyAbility = os.ReadInt32(); self.KeyAbilityValue = os.ReadInt32(); self.SalePrice = os.ReadInt32(); self.Description = os.ReadString(); return(self); }
internal static DataSignin _create(Config.Stream os) { var self = new DataSignin(); self.Id = os.ReadInt32(); self.Item2countMap = new KeyedList <int, int>(); for (var c = (int)os.ReadSize(); c > 0; c--) { self.Item2countMap.Add(os.ReadInt32(), os.ReadInt32()); } self.Vipitem2vipcountMap = new KeyedList <int, int>(); for (var c = (int)os.ReadSize(); c > 0; c--) { self.Vipitem2vipcountMap.Add(os.ReadInt32(), os.ReadInt32()); } self.Viplevel = os.ReadInt32(); self.IconFile = os.ReadString(); return(self); }
internal static DataJewelrysuit _create(Config.Stream os) { var self = new DataJewelrysuit(); self.SuitID = os.ReadInt32(); self.Name = os.ReadString(); self.Ability1 = os.ReadInt32(); self.Ability1Value = os.ReadInt32(); self.Ability2 = os.ReadInt32(); self.Ability2Value = os.ReadInt32(); self.Ability3 = os.ReadInt32(); self.Ability3Value = os.ReadInt32(); self.SuitList = new List <int>(); for (var c = os.ReadInt32(); c > 0; c--) { self.SuitList.Add(os.ReadInt32()); } return(self); }
internal static DataCompletecondition _create(Config.Stream os) { switch (os.ReadString()) { case "KillMonster": return(Config.Task.Completecondition.DataKillmonster._create(os)); case "TalkNpc": return(Config.Task.Completecondition.DataTalknpc._create(os)); case "Chat": return(Config.Task.Completecondition.DataChat._create(os)); case "ConditionAnd": return(Config.Task.Completecondition.DataConditionand._create(os)); case "CollectItem": return(Config.Task.Completecondition.DataCollectitem._create(os)); } return(null); }
internal static void Initialize(Config.Stream os, Config.LoadErrors errors) { all = new Config.KeyedList <int, DataRank>(); for (var c = os.ReadSize(); c > 0; c--) { var self = _create(os); all.Add(self.RankID, self); if (self.RankName.Trim().Length == 0) { continue; } switch (self.RankName.Trim()) { case "white": if (White != null) { errors.EnumDup("equip.rank", self.ToString()); } White = self; break; case "green": if (Green != null) { errors.EnumDup("equip.rank", self.ToString()); } Green = self; break; case "blue": if (Blue != null) { errors.EnumDup("equip.rank", self.ToString()); } Blue = self; break; case "purple": if (Purple != null) { errors.EnumDup("equip.rank", self.ToString()); } Purple = self; break; case "yellow": if (Yellow != null) { errors.EnumDup("equip.rank", self.ToString()); } Yellow = self; break; default: errors.EnumDataAdd("equip.rank", self.ToString()); break; } } if (White == null) { errors.EnumNull("equip.rank", "white"); } if (Green == null) { errors.EnumNull("equip.rank", "green"); } if (Blue == null) { errors.EnumNull("equip.rank", "blue"); } if (Purple == null) { errors.EnumNull("equip.rank", "purple"); } if (Yellow == null) { errors.EnumNull("equip.rank", "yellow"); } }
internal static DataCompletecondition _create(Config.Stream os) { var self = new DataCompletecondition(); return(self); }