示例#1
0
 public Map GetMap(int map, bool autoCreate = false)
 {
     var result = this[map];
     if (result == null && autoCreate)
     {
         result = new Map();
         SetMap(map, result);
     }
     return result;
 }
示例#2
0
 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;
 }
示例#3
0
 public void SetMap(int map, Map value)
 {
     this[map] = value;
 }
示例#4
0
 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;
 }