コード例 #1
0
ファイル: Atlas.cs プロジェクト: hakelimopu/wandermaze
 public AtlasCell GetAtlasCell(int atlasColumn, int atlasRow, bool autoCreate = false)
 {
     var result = GetAtlasColumn(atlasColumn) == null ? null : this[atlasColumn][atlasRow];
     if (result == null && autoCreate)
     {
         result = new AtlasCell();
         SetAtlasCell(atlasColumn, atlasRow, result);
     }
     return result;
 }
コード例 #2
0
ファイル: Atlas.cs プロジェクト: hakelimopu/wandermaze
 public void SetAtlasCell(int atlasColumn, int atlasRow, AtlasCell value)
 {
     if (GetAtlasColumn(atlasColumn) == null)
     {
         SetAtlasColumn(atlasColumn, new AtlasColumn());
     }
     this[atlasColumn][atlasRow] = value;
 }
コード例 #3
0
ファイル: AtlasColumn.cs プロジェクト: hakelimopu/wandermaze
 public void SetAtlasCell(int atlasRow, AtlasCell value)
 {
     this[atlasRow] = value;
 }