本文整理汇总了C#中IntVec3.Standable方法的典型用法代码示例。如果您正苦于以下问题:C# IntVec3.Standable方法的具体用法?C# IntVec3.Standable怎么用?C# IntVec3.Standable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IntVec3
的用法示例。
在下文中一共展示了IntVec3.Standable方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: IsValidCellToWander
protected bool IsValidCellToWander(IntVec3 cell)
{
if (cell.Standable() == false)
{
return false;
}
if (this.pawn.CanReach(new TargetInfo(cell), PathEndMode.OnCell, Danger.None) == false)
{
return false;
}
foreach (Thing thing in cell.GetThingList())
{
if (thing is Fire)
{
return false;
}
}
if (cell.GetRoom() != this.TargetLocA.GetRoom())
{
return false;
}
if (Find.PawnDestinationManager.DestinationIsReserved(cell))
{
return false;
}
return true;
}
示例2: IsValidPositionToSpawnRefugeePod
public static bool IsValidPositionToSpawnRefugeePod(IntVec3 position)
{
ThingDef chunkDef = ThingDefOf.ShipChunk;
if ((position.InBounds() == false)
|| position.Fogged()
|| (position.Standable() == false)
|| (position.Roofed()
&& position.GetRoof().isThickRoof))
{
return false;
}
return true;
}
示例3: IsValidPositionToSpawnShipChunk
public bool IsValidPositionToSpawnShipChunk(IntVec3 position)
{
ThingDef chunkDef = ThingDefOf.ShipChunk;
if ((position.InBounds() == false)
|| position.Fogged()
|| (position.Standable() == false)
|| (position.Roofed()
&& position.GetRoof().isThickRoof))
{
return false;
}
if (position.SupportsStructureType(chunkDef.terrainAffordanceNeeded) == false)
{
return false;
}
List<Thing> thingList = position.GetThingList();
for (int thingIndex = 0; thingIndex < thingList.Count; thingIndex++)
{
Thing thing = thingList[thingIndex];
if ((thing.def.category != ThingCategory.Plant)
&& GenSpawn.SpawningWipes(chunkDef, thing.def))
{
return false;
}
}
return true;
}