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