public ItemImage(int itemPosition, int widthSize, int heightSize) { itemOwner = EItemOwner.player; this.myItemPosition = itemPosition; image = new Image() { Width = widthSize, Height = heightSize }; Children.Add(image); SetEvents(); }
public ItemImage(int itemPosition, int widthSize, int heightSize, Bag bag, EItemOwner own) { itemOwner = own; myBagRef = bag; this.myItemPosition = itemPosition; image = new Image() { Width = widthSize, Height = heightSize }; Children.Add(image); SetEvents(); }