コード例 #1
0
        public override void AddDefaultChildNodesHack()
        {
            //var model = new LootDefinition();
            //var container = new LootEntrysContainerTreeNode(model);
            var container = new LootEntrysContainerTreeNode();

            container.AddChildModels(((Npc)Model).LootEntries.Cast <IModel>().ToList());

            Nodes.Add(container);
        }
コード例 #2
0
        public NpcTreeNode(Npc model) : this()
        {
            Model = model;

            //var container = new LootEntrysContainerTreeNode(model.loot);
            var container = new LootEntrysContainerTreeNode();

            container.AddChildModels(model.LootEntries.Cast <IModel>().ToList());

            Nodes.Add(container);
        }