Beispiel #1
0
        public GameItem(BaseItem item, Texture2D texture, Rectangle? sourceRectangle)
        {
            Item = item;
            Image = new Image(texture);
            Image.SourceRectangle = sourceRectangle;

            Type = item.GetType();
        }
Beispiel #2
0
        public GameItem(BaseItem item, Texture2D texture, Rectangle? source)
        {
            baseItem = item;
            image = texture;
            sourceRectangle = source;

            type = item.GetType();
        }
Beispiel #3
0
 public ItemSprite(BaseItem item, BaseSprite sprite)
 {
     this.item = item;
     this.sprite = sprite;
 }
Beispiel #4
0
 public ItemSprite(BaseItem item, BaseSprite sprite)
 {
     Item = item;
     Sprite = sprite;
 }