public Sprite(World world, string filename) { Filename = filename; using (var s = File.OpenRead(filename)) Texture = Texture2D.FromStream(world.Game.GraphicsDevice, s); Size = new Size(Texture.Width, Texture.Height); }
public InputManager(World world) { this.world = world; }