public MiniMap(ContentManager Content, GraphicsDevice graphicsDevice, Vector2 size, IMapDB mapDB, ILevelInfoDB levelInfoDB) : base(Vector2.Zero, Content, 64, 64, 64, 64) { this.Size = size; minimapBatch = new SpriteBatch(graphicsDevice); this.graphicsDevice = graphicsDevice; mapHandler = new Scene.MapHandlerScene(Content, this, levelInfoDB, mapDB); this.Camera = new Camera.Camera(Vector2.Zero, size, size); miniMaps = new Dictionary <string, Texture2D>(); activeMiniMap = null; previousMiniMap = null; message = new Animations.DisplayMessage(Content); CurrentMapID = 0; background = Content.Load <Texture2D>(@"Textures/whiteRectangle"); player = Content.Load <Texture2D>(@"Textures/player"); mob = Content.Load <Texture2D>(@"Textures/Mobs/chaser"); actorTileSheet = new Animations.TileSheetHandler(Content.Load <Texture2D>(@"Textures/ActorsTemp"), this.SourceTileWidth, this.SourceTileHeight); message.OffSet = new Vector2(0, 300); }
public SaveMapAction(Scene.MapHandlerScene mapHandler, Components.TextBoxes.TextBox textBox) { this.mapHandler = mapHandler; this.textBox = textBox; }