public Item(World world, InfoItem infoItem) : base(world) { this.infoItem = infoItem; rect = new RectangleShape(new Vector2f(infoItem.SpriteSheet.SubWight, infoItem.SpriteSheet.SubHeight)); rect.Texture = infoItem.SpriteSheet.Texture; rect.TextureRect = infoItem.SpriteSheet.GetTextureRect(infoItem.SpriteI, infoItem.SpriteJ); }
public ItemTile(World world, InfoItem infoItem) : base(world, infoItem) { }