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

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

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