Exemplo n.º 1
0
 internal new static DataCollectitem _create(Config.Stream os)
 {
     var self = new DataCollectitem();
     self.Itemid = os.ReadInt32();
     self.Count = os.ReadInt32();
     return self;
 }
Exemplo n.º 2
0
        internal static DataRange _create(Config.Stream os)
        {
            var self = new DataRange();

            self.Min = os.ReadInt32();
            self.Max = os.ReadInt32();
            return(self);
        }
Exemplo n.º 3
0
        internal static DataTaskextraexp _create(Config.Stream os)
        {
            var self = new DataTaskextraexp();

            self.Taskid   = os.ReadInt32();
            self.Extraexp = os.ReadInt32();
            return(self);
        }
Exemplo n.º 4
0
        internal static DataLevelrank _create(Config.Stream os)
        {
            var self = new DataLevelrank();

            self.Level = os.ReadInt32();
            self.Rank  = os.ReadInt32();
            return(self);
        }
Exemplo n.º 5
0
        internal new static DataKillmonster _create(Config.Stream os)
        {
            var self = new DataKillmonster();

            self.Monsterid = os.ReadInt32();
            self.Count     = os.ReadInt32();
            return(self);
        }
Exemplo n.º 6
0
        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);
        }
Exemplo n.º 7
0
        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);
        }
Exemplo n.º 8
0
        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);
        }
Exemplo n.º 9
0
        internal static DataMonster _create(Config.Stream os)
        {
            var self = new DataMonster();

            self.Id      = os.ReadInt32();
            self.PosList = new List <Config.DataPosition>();
            for (var c = os.ReadInt32(); c > 0; c--)
            {
                self.PosList.Add(Config.DataPosition._create(os));
            }
            return(self);
        }
Exemplo n.º 10
0
        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);
        }
Exemplo n.º 11
0
        internal new static DataTalknpc _create(Config.Stream os)
        {
            var self = new DataTalknpc();

            self.Npcid = os.ReadInt32();
            return(self);
        }
Exemplo n.º 12
0
        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);
        }
Exemplo n.º 13
0
        internal static DataCompleteconditiontype _create(Config.Stream os)
        {
            var self = new DataCompleteconditiontype();

            self.Id   = os.ReadInt32();
            self.Name = os.ReadString();
            return(self);
        }
Exemplo n.º 14
0
        internal static DataAbility _create(Config.Stream os)
        {
            var self = new DataAbility();

            self.Id   = os.ReadInt32();
            self.Name = os.ReadString();
            return(self);
        }
Exemplo n.º 15
0
        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 = os.ReadInt32(); c > 0; c--)
            {
                self.OtherRange.Add(Config.DataRange._create(os));
            }
            self.TestRange = new List <Config.DataRange>();
            for (var c = os.ReadInt32(); c > 0; c--)
            {
                self.TestRange.Add(Config.DataRange._create(os));
            }
            return(self);
        }
Exemplo n.º 16
0
 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);
     }
 }
Exemplo n.º 17
0
 internal static void Initialize(Config.Stream os, Config.LoadErrors errors)
 {
     all = new Config.KeyedList <int, DataTask>();
     for (var c = os.ReadInt32(); c > 0; c--)
     {
         var self = _create(os);
         all.Add(self.Taskid, self);
     }
 }
Exemplo n.º 18
0
        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);
        }
Exemplo n.º 19
0
 internal static void Initialize(Config.Stream os, Config.LoadErrors errors)
 {
     all = new Config.KeyedList <LootidItemidKey, DataLootitem>();
     for (var c = os.ReadInt32(); c > 0; c--)
     {
         var self = _create(os);
         all.Add(new LootidItemidKey(self.Lootid, self.Itemid), self);
     }
 }
Exemplo n.º 20
0
        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);
        }
Exemplo n.º 21
0
        internal static DataSignin _create(Config.Stream os)
        {
            var self = new DataSignin();

            self.Id            = os.ReadInt32();
            self.Item2countMap = new KeyedList <int, int>();
            for (var c = os.ReadInt32(); c > 0; c--)
            {
                self.Item2countMap.Add(os.ReadInt32(), os.ReadInt32());
            }
            self.Vipitem2vipcountMap = new KeyedList <int, int>();
            for (var c = os.ReadInt32(); c > 0; c--)
            {
                self.Vipitem2vipcountMap.Add(os.ReadInt32(), os.ReadInt32());
            }
            self.Viplevel = os.ReadInt32();
            self.IconFile = os.ReadString();
            return(self);
        }
Exemplo n.º 22
0
        internal static void Initialize(Config.Stream os, Config.LoadErrors errors)
        {
            all = new Config.KeyedList <int, DataCompleteconditiontype>();
            for (var c = os.ReadInt32(); 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;

                case "ConditionAnd":
                    if (ConditionAnd != null)
                    {
                        errors.EnumDup("task.completeconditiontype", self.ToString());
                    }
                    ConditionAnd = self;
                    break;

                case "Chat":
                    if (Chat != null)
                    {
                        errors.EnumDup("task.completeconditiontype", self.ToString());
                    }
                    Chat = 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");
            }
            if (ConditionAnd == null)
            {
                errors.EnumNull("task.completeconditiontype", "ConditionAnd");
            }
            if (Chat == null)
            {
                errors.EnumNull("task.completeconditiontype", "Chat");
            }
        }
Exemplo n.º 23
0
        internal static void Initialize(Config.Stream os, Config.LoadErrors errors)
        {
            all = new Config.KeyedList <int, DataRank>();
            for (var c = os.ReadInt32(); 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");
            }
        }
Exemplo n.º 24
0
        internal static void Initialize(Config.Stream os, Config.LoadErrors errors)
        {
            all = new Config.KeyedList <int, DataAbility>();
            for (var c = os.ReadInt32(); c > 0; c--)
            {
                var self = _create(os);
                all.Add(self.Id, self);
                if (self.Name.Trim().Length == 0)
                {
                    continue;
                }
                switch (self.Name.Trim())
                {
                case "attack":
                    if (Attack != null)
                    {
                        errors.EnumDup("equip.ability", self.ToString());
                    }
                    Attack = self;
                    break;

                case "defence":
                    if (Defence != null)
                    {
                        errors.EnumDup("equip.ability", self.ToString());
                    }
                    Defence = self;
                    break;

                case "hp":
                    if (Hp != null)
                    {
                        errors.EnumDup("equip.ability", self.ToString());
                    }
                    Hp = self;
                    break;

                case "critical":
                    if (Critical != null)
                    {
                        errors.EnumDup("equip.ability", self.ToString());
                    }
                    Critical = self;
                    break;

                case "critical_resist":
                    if (Critical_resist != null)
                    {
                        errors.EnumDup("equip.ability", self.ToString());
                    }
                    Critical_resist = self;
                    break;

                case "block":
                    if (Block != null)
                    {
                        errors.EnumDup("equip.ability", self.ToString());
                    }
                    Block = self;
                    break;

                case "break_armor":
                    if (Break_armor != null)
                    {
                        errors.EnumDup("equip.ability", self.ToString());
                    }
                    Break_armor = self;
                    break;

                default:
                    errors.EnumDataAdd("equip.ability", self.ToString());
                    break;
                }
            }
            if (Attack == null)
            {
                errors.EnumNull("equip.ability", "attack");
            }
            if (Defence == null)
            {
                errors.EnumNull("equip.ability", "defence");
            }
            if (Hp == null)
            {
                errors.EnumNull("equip.ability", "hp");
            }
            if (Critical == null)
            {
                errors.EnumNull("equip.ability", "critical");
            }
            if (Critical_resist == null)
            {
                errors.EnumNull("equip.ability", "critical_resist");
            }
            if (Block == null)
            {
                errors.EnumNull("equip.ability", "block");
            }
            if (Break_armor == null)
            {
                errors.EnumNull("equip.ability", "break_armor");
            }
        }
Exemplo n.º 25
0
        internal static void Initialize(Config.Stream os, Config.LoadErrors errors)
        {
            all = new Config.KeyedList <string, DataJewelrytype>();
            for (var c = os.ReadInt32(); c > 0; c--)
            {
                var self = _create(os);
                all.Add(self.TypeName, self);
                if (self.TypeName.Trim().Length == 0)
                {
                    continue;
                }
                switch (self.TypeName.Trim())
                {
                case "Jade":
                    if (Jade != null)
                    {
                        errors.EnumDup("equip.jewelrytype", self.ToString());
                    }
                    Jade = self;
                    break;

                case "Bracelet":
                    if (Bracelet != null)
                    {
                        errors.EnumDup("equip.jewelrytype", self.ToString());
                    }
                    Bracelet = self;
                    break;

                case "Magic":
                    if (Magic != null)
                    {
                        errors.EnumDup("equip.jewelrytype", self.ToString());
                    }
                    Magic = self;
                    break;

                case "Bottle":
                    if (Bottle != null)
                    {
                        errors.EnumDup("equip.jewelrytype", self.ToString());
                    }
                    Bottle = self;
                    break;

                default:
                    errors.EnumDataAdd("equip.jewelrytype", self.ToString());
                    break;
                }
            }
            if (Jade == null)
            {
                errors.EnumNull("equip.jewelrytype", "Jade");
            }
            if (Bracelet == null)
            {
                errors.EnumNull("equip.jewelrytype", "Bracelet");
            }
            if (Magic == null)
            {
                errors.EnumNull("equip.jewelrytype", "Magic");
            }
            if (Bottle == null)
            {
                errors.EnumNull("equip.jewelrytype", "Bottle");
            }
        }