Beispiel #1
0
 public void buildBlock(BlockLoc blockLoc, byte typeToBuild)
 {
     if (withinChunkSpaceInChunkSpace(blockLoc.toISIntVec3(getPathingProfile())))
     {
         chunkSpace.setBlockAtWithMeshUpdate(typeToBuild, blockLoc.toISIntVec3(getPathingProfile()));
         jobSiteManager.blockWasBuilt(blockLoc);
     }
 }
        public virtual bool isProfileSolidAtWithWithinCheck(BlockLoc loc)
        {
            if (withinIsland(loc.toISIntVec3(this)))
            {
                return(island.isChunkSpaceSolidAt(loc));
            }

            return(false);
        }
 protected virtual bool isInProfileScope(BlockLoc loc)
 {
     return(island.withinChunkSpaceInChunkSpace(loc.toISIntVec3(this)));
 }
Beispiel #4
0
 public void destroyBlock(BlockLoc toDestroy)
 {
     chunkSpace.setBlockAtWithMeshUpdate(PaintedCubeSpace.AIR, toDestroy.toISIntVec3(getPathingProfile()));
     jobSiteManager.blockWasDestroyed(toDestroy);
     setPieceManager.blockWasDestroyed(toDestroy);
 }
Beispiel #5
0
 public bool isChunkSpaceSolidAt(BlockLoc loc, IslandPathingProfile profile)
 {
     return(isChunkSpaceSolidAt(loc.toISIntVec3(profile)));
 }