Пример #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;
 }