public GameItem(BaseItem item, Texture2D texture, Rectangle? sourceRectangle) { Item = item; Image = new Image(texture); Image.SourceRectangle = sourceRectangle; Type = item.GetType(); }
public GameItem(BaseItem item, Texture2D texture, Rectangle? source) { baseItem = item; image = texture; sourceRectangle = source; type = item.GetType(); }
public ItemSprite(BaseItem item, BaseSprite sprite) { this.item = item; this.sprite = sprite; }
public ItemSprite(BaseItem item, BaseSprite sprite) { Item = item; Sprite = sprite; }