コード例 #1
0
 public Inventory(IGameSave gameSave)
 {
     this.gameSave            = gameSave;
     this.itemInventory       = null;
     this.decorationInventory = null;
     this.pokeblockCase       = null;
 }
コード例 #2
0
		public DecorationPocket(DecorationInventory inventory, DecorationTypes pocketType, uint pocketSize, uint maxStackSize) {
			this.inventory				= inventory;
			this.pocketType			= pocketType;
			this.pocketSize			= pocketSize;
			this.maxStackSize			= maxStackSize;
			this.decorations			= new List<Decoration>();
			this.listViewItems			= new ObservableCollection<ListViewItem>();
		}
コード例 #3
0
 public DecorationPocket(DecorationInventory inventory, DecorationTypes pocketType, uint pocketSize, uint maxStackSize)
 {
     this.inventory				= inventory;
     this.pocketType			= pocketType;
     this.pocketSize			= pocketSize;
     this.maxStackSize			= maxStackSize;
     this.decorations			= new List<Decoration>();
     this.listViewItems			= new ObservableCollection<ListViewItem>();
 }
コード例 #4
0
 public void AddDecorationInventory()
 {
     if (decorationInventory != null)
     {
         throw new Exception("Cannot add Decoration Inventory to inventory, one already exists");
     }
     else
     {
         decorationInventory = new DecorationInventory(this);
     }
 }