当前位置: 首页>>代码示例>>C#>>正文


C# IntVec3.Fogged方法代码示例

本文整理汇总了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;
 }
开发者ID:ChaosTherum,项目名称:RimWorld-RedistHeat,代码行数:12,代码来源:Designator_DeconstructReversed.cs

示例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;
 }
开发者ID:Rikiki123456789,项目名称:Rimworld,代码行数:13,代码来源:IncidentWorker_RefugeePodCrashInCaveInCave.cs

示例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;
 }
开发者ID:isistoy,项目名称:Es-Small-Mods,代码行数:13,代码来源:Designator_MineVein.cs

示例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;
        }
开发者ID:RWA-Team,项目名称:RimworldAscension,代码行数:16,代码来源:Designator_PutInSlot.cs

示例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);
 }
开发者ID:Rikiki123456789,项目名称:Rimworld,代码行数:18,代码来源:Designator_AreaNoRoofClearOutpost.cs

示例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;
 }
开发者ID:RWA-Team,项目名称:RimworldAscension,代码行数:21,代码来源:Designator_Collect.cs

示例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;
 }
开发者ID:ForsakenShell,项目名称:Es-Small-Mods,代码行数:23,代码来源:Designator_SmoothWall.cs

示例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;
        }
开发者ID:Rikiki123456789,项目名称:Rimworld,代码行数:19,代码来源:IncidentWorker_ShipPartCrashInCave.cs

示例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;
        }
开发者ID:Rikiki123456789,项目名称:Rimworld,代码行数:27,代码来源:IncidentWorker_ShipChunkDropInCave.cs

示例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;
     }
 }
开发者ID:FluffierThanThou,项目名称:RW_NoColonistLeftBehind,代码行数:13,代码来源:Designator_PutInCrypto.cs


注:本文中的IntVec3.Fogged方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。