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))); }
public void destroyBlock(BlockLoc toDestroy) { chunkSpace.setBlockAtWithMeshUpdate(PaintedCubeSpace.AIR, toDestroy.toISIntVec3(getPathingProfile())); jobSiteManager.blockWasDestroyed(toDestroy); setPieceManager.blockWasDestroyed(toDestroy); }
public bool isChunkSpaceSolidAt(BlockLoc loc, IslandPathingProfile profile) { return(isChunkSpaceSolidAt(loc.toISIntVec3(profile))); }