コード例 #1
0
ファイル: ItemImage.cs プロジェクト: oLucasRez/lp2-noelf-rpg
 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();
 }
コード例 #2
0
ファイル: ItemImage.cs プロジェクト: oLucasRez/lp2-noelf-rpg
 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();
 }