Exemple #1
0
 public bool Contains(MPos uv)
 {
     // The first check ensures that the cell is within the valid map region, avoiding
     // potential crashes in deeper code.  All CellLayers have the same geometry, and
     // CustomTerrain is convenient.
     return(CustomTerrain.Contains(uv) && ContainsAllProjectedCellsCovering(uv));
 }
Exemple #2
0
 public bool Contains(MPos uv)
 {
     // The first check ensure that the cell is within the valid map region,avoiding potential crashes in deeper code.
     //第一次检查确保单元格在有效的地图区域内,避免在更深的代码中潜在的崩溃。
     // All CellLayers have the same geometry,and CustomTerrain is convenient.
     return(CustomTerrain.Contains(uv) && ContainsAllProjectedCellsCovering(uv));
 }