Пример #1
0
        public override void Load(JsonValue root)
        {
            base.Load(root);

            if (root["drops"].IsJsonArray)
            {
                var drops = root["drops"].AsJsonArray;
                Drops = new Drop[drops.Count];

                for (var i = 0; i < Drops.Length; i++)
                {
                    Drops[i] = LootTables.ParseDrop(drops[i]);
                }
            }
        }