本文整理汇总了C#中IntVec3.Fogged方法的典型用法代码示例。如果您正苦于以下问题:C# IntVec3.Fogged方法的具体用法?C# IntVec3.Fogged怎么用?C# IntVec3.Fogged使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IntVec3
的用法示例。
在下文中一共展示了IntVec3.Fogged方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CanDesignateCell
public override AcceptanceReport CanDesignateCell( IntVec3 c )
{
if (!c.InBounds())
{
return false;
}
if (!Game.GodMode && c.Fogged())
{
return false;
}
return TopDeconstructibleInCell( c ) != null;
}
示例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: CanDesignateCell
public override AcceptanceReport CanDesignateCell( IntVec3 c )
{
if( !c.InBounds() )
return "OutOfBounds".Translate();
if( c.Fogged() )
return "CannotPlaceInUndiscovered".Translate();
if( Find.DesignationManager.DesignationAt( c, DesignationDefOf.Mine ) != null )
return "SpaceAlreadyOccupied".Translate();
Thing mineable = MineUtility.MineableInCell( c );
if( ( mineable == null )||( !mineable.def.building.isResourceRock ) )
return "MessageMustDesignateMineable".Translate();
return AcceptanceReport.WasAccepted;
}
示例4: CanDesignateCell
// returning string text assigning false reason to AcceptanceReport
public override AcceptanceReport CanDesignateCell(IntVec3 cell)
{
if (!cell.InBounds() || cell.Fogged() || cell.ContainsStaticFire())
{
return false;
}
var firstItem = cell.GetFirstItem();
if (firstItem != null && CanDesignateThing(firstItem).Accepted)
{
return true;
}
return false;
}
示例5: CanDesignateCell
public override AcceptanceReport CanDesignateCell(IntVec3 c)
{
if (c.InBounds()
&& (c.Fogged() == false))
{
Area outpostArea = OG_Util.FindOutpostArea();
if ((outpostArea != null)
&& outpostArea.ActiveCells.Contains(c))
{
return "You cannot manage MiningCo. Outpost roof. This area does not belong to your colony.";
}
if (Find.RoofGrid.RoofAt(c) == OG_Util.IronedRoofDef)
{
return true;
}
}
return base.CanDesignateCell(c);
}
示例6: CanDesignateCell
// returning string text assigning false reason to AcceptanceReport
public override AcceptanceReport CanDesignateCell(IntVec3 loc)
{
if (!loc.InBounds())
{
return false;
}
if (loc.Fogged())
{
return false;
}
if (Find.DesignationManager.DesignationAt(loc, designationDef) != null)
{
return false;
}
if (!allowedTerrain.Contains(Find.TerrainGrid.TerrainAt(loc)))
{
return "Wrong terrain type";
}
return AcceptanceReport.WasAccepted;
}
示例7: CanDesignateCell
public override AcceptanceReport CanDesignateCell( IntVec3 c )
{
if( !c.InBounds() )
return "OutOfBounds".Translate();
if( c.Fogged() )
return "CannotPlaceInUndiscovered".Translate();
if( Find.DesignationManager.DesignationAt( c, SmoothWall.designationDef ) != null )
return "TerrainBeingSmoothed".Translate();
// Must be mineable
Thing mineable = MineUtility.MineableInCell( c );
if( mineable == null )
{
return "MessageMustDesignateMineable".Translate();
}
// Must have associated stone blocks
string blocksDef = "Blocks" + mineable.def.defName;
ThingDef stoneBlocks = DefDatabase<ThingDef>.GetNamed( blocksDef, false );
if( stoneBlocks == null )
{
return "MessageMustDesignateMineable".Translate();
}
return AcceptanceReport.WasAccepted;
}
示例8: IsValidPositionForShipCrashSite
public bool IsValidPositionForShipCrashSite(IntVec3 position)
{
ThingDef chunkDef = ThingDefOf.ShipChunk;
if ((position.InBounds() == false)
|| position.Fogged())
{
return false;
}
foreach (IntVec3 chckedPosition in GenAdj.CellsOccupiedBy(position, Rot4.North, this.def.shipPart.size))
{
if ((chckedPosition.Standable() == false)
|| chckedPosition.Roofed()
|| chckedPosition.CanReachColony() == false)
{
return false;
}
}
return true;
}
示例9: 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;
}
示例10: CryptoAnimalsInCell
public List<Thing> CryptoAnimalsInCell(IntVec3 loc)
{
List<Thing> list = new List<Thing>();
if (loc.Fogged())
{
return list;
}
else
{
list.AddRange(loc.GetThingList().Where(t => CanDesignateThing(t).Accepted));
return list;
}
}