コード例 #1
0
 public static void Postfix(ResolveParams rp, out IntVec3 cell)
 {
     Map map    = BaseGen.globalSettings.map;
     var result = CellFinder.TryFindRandomCellInsideWith(rp.rect, (IntVec3 x) => x.Standable(map) && (rp.singlePawnSpawnCellExtraPredicate == null ||
                                                                                                      rp.singlePawnSpawnCellExtraPredicate(x)), out cell);
 }
コード例 #2
0
        // Token: 0x060069BF RID: 27071 RVA: 0x0024FE40 File Offset: 0x0024E040
        public static bool TryFindSpawnCell(ResolveParams rp, out IntVec3 cell)
        {
            Map map = BaseGen.globalSettings.map;

            return(CellFinder.TryFindRandomCellInsideWith(rp.rect, (IntVec3 x) => x.Standable(map) && (rp.singlePawnSpawnCellExtraPredicate == null || rp.singlePawnSpawnCellExtraPredicate(x)), out cell));
        }