コード例 #1
0
            public static ModInventoryMenu GetCopy(InventoryMenu invMenu, AdventurersGuildShopMenu inst)
            {
                IList <Item> actualInventory = new List <Item>(invMenu.actualInventory);


                var result = new ModInventoryMenu(invMenu.xPositionOnScreen, invMenu.yPositionOnScreen, invMenu.playerInventory, actualInventory, inst,
                                                  invMenu.capacity, invMenu.rows, invMenu.horizontalGap, invMenu.verticalGap, invMenu.drawSlots);

                return(result.ModifySlinghots());
            }
コード例 #2
0
 public static ModSlingshot GetCopy(Slingshot slingshot, AdventurersGuildShopMenu inst)
 {
     return(new ModSlingshot(slingshot.InitialParentTileIndex, slingshot.attachments, inst.Helper));
 }
コード例 #3
0
 private ModInventoryMenu(int xPosition, int yPosition, bool playerInventory, IList <Item> actualInventory, AdventurersGuildShopMenu inst, int capacity, int rows, int horizontalGap, int verticalGap, bool drawSlots) : base(xPosition, yPosition, playerInventory, actualInventory, inst.HighlightItemToSell, capacity, rows, horizontalGap, verticalGap, drawSlots)
 {
     this.inst = inst;
 }