public MapPlayfield(GameTexture map_texture, Rectangle client_area, ICommand command) { int width = 0; int height = 0; Map = new Obj_Sprite(SpriteFlags.None); Map.Texture(map_texture.texture, map_texture.width, map_texture.height); _client_area = client_area; Command = command; EnterMoveMode(); MinimumScale(); }
public void StoreTexture(string id, GameTexture texture) { lock (this) { if (_Textures_ == null) { _Textures_ = new Dictionary<string, GameTexture>(); } if (texture.texture != null) { _Textures_.Add(id, texture); } } }