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); }
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); }