Пример #1
0
 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);
 }
Пример #2
0
 public ItemTile(World world, InfoItem infoItem) : base(world, infoItem)
 {
 }