public Map GetMap(int map, bool autoCreate = false) { var result = this[map]; if (result == null && autoCreate) { result = new Map(); SetMap(map, result); } return result; }
public Map GetMap(int atlasColumn, int atlasRow, int map, bool autoCreate = false) { var result = GetAtlasCell(atlasColumn, atlasRow) == null ? null : this[atlasColumn][atlasRow][map]; if (result == null && autoCreate) { result = new Map(); SetMap(atlasColumn, atlasRow, map, result); } return result; }
public void SetMap(int map, Map value) { this[map] = value; }
public void SetMap(int atlasColumn, int atlasRow, int map, Map value) { if (GetAtlasCell(atlasColumn, atlasRow) == null) { SetAtlasCell(atlasColumn, atlasRow, new AtlasCell()); } this[atlasColumn][atlasRow][map] = value; }