Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EditorMap"/> class.
 /// </summary>
 /// <param name="mapID">The ID of the map.</param>
 /// <param name="camera">The camera used to view the map.</param>
 /// <param name="getTime">The object used to get the current time.</param>
 public EditorMap(MapID mapID, ICamera2D camera, IGetTime getTime) : base(mapID, camera, getTime)
 {
     _undoManager = new MapUndoManager(this, GlobalState.Instance.DynamicEntityFactory);
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EditorMap"/> class.
 /// </summary>
 /// <param name="mapID">The ID of the map.</param>
 /// <param name="camera">The camera used to view the map.</param>
 /// <param name="getTime">The object used to get the current time.</param>
 public EditorMap(MapID mapID, ICamera2D camera, IGetTime getTime) : base(mapID, camera, getTime)
 {
     _undoManager = new MapUndoManager(this, GlobalState.Instance.DynamicEntityFactory);
 }