/// <inheritdoc /> public bool MapExists(MapId mapID) { return(_maps.ContainsKey(mapID)); }
public void RaiseOnGridRemoved(MapId mapId, GridId gridId) { OnGridRemoved?.Invoke(mapId, gridId); }
internal MapGrid(MapManager mapManager, GridId gridIndex, ushort chunkSize, float snapsize, MapId mapID) { _mapManager = mapManager; Index = gridIndex; ChunkSize = chunkSize; SnapSize = snapsize; MapID = mapID; }
/// <inheritdoc /> public IMap GetMap(MapId mapID) { return(_maps[mapID]); }
public MapCoordinates(Vector2 position, MapId mapId) { Position = position; MapId = mapId; }
public MapCoordinates(float x, float y, MapId mapId) : this(new Vector2(x, y), mapId) { }
public LocalCoordinates(float X, float Y, IMapGrid argGrid) { Position = new Vector2(X, Y); GridID = argGrid.Index; MapID = argGrid.MapID; }
/// <inheritdoc /> public IMap GetMap(MapId mapID) { return _maps[mapID]; }
public LocalCoordinates(Vector2 argPosition, IMapGrid argGrid) { Position = argPosition; GridID = argGrid.Index; MapID = argGrid.MapID; }
public LocalCoordinates(Vector2 argPosition, GridId argGrid, MapId argMap) { Position = argPosition; GridID = argGrid; MapID = argMap; }
public ScreenCoordinates(float X, float Y, MapId argMap) { Position = new Vector2(X, Y); MapID = argMap; }
public ScreenCoordinates(Vector2 argPosition, MapId argMap) { Position = argPosition; MapID = argMap; }
public Map(MapManager mapManager, MapId mapID) { Index = mapID; _mapManager = mapManager; CreatedTick = _mapManager._gameTiming.CurTick; }
internal MapGrid(MapManager mapManager, GridId gridIndex, ushort chunkSize, float snapsize, MapId mapID) { _mapManager = mapManager; Index = gridIndex; ChunkSize = chunkSize; SnapSize = snapsize; MapID = mapID; LastModifiedTick = CreatedTick = _mapManager._gameTiming.CurTick; }
public LocalCoordinates(float X, float Y, GridId argGrid, MapId argMap) { Position = new Vector2(X, Y); GridID = argGrid; MapID = argMap; }
/// <summary> /// Construct new grid local coordinates relative to the default grid of a map. /// </summary> public GridLocalCoordinates(float X, float Y, MapId argMap) : this(new Vector2(X, Y), argMap) { }
public Map(MapManager mapManager, MapId mapID) { Index = mapID; _mapManager = mapManager; CreateGrid(GridId.DefaultGrid); }