public override void CreateObjects() { BaseObjects.Add(new Chest(null, new Boot())); BaseObjects.Add(new Chest(new Bow(), new Helm())); for (int i = 0; i < 4; i++) { BaseObjects.Add(new Rock()); } for (int i = 0; i < 8; i++) { BaseObjects.Add(new Tree()); } }
public virtual void Add(object obj) { BaseObjects.Add(obj); NotifyItemInserted(ItemCount); }