#[non_exhaustive]pub struct GenerateOptions {
pub range: Option<[i32; 4]>,
pub base: Option<NavMeshSet>,
pub skip_existing: bool,
pub checkpoint: Option<(usize, PathBuf)>,
pub record: Option<PathBuf>,
pub threads: Option<usize>,
pub connections: Option<usize>,
pub seed: Option<[f32; 3]>,
pub island_filter: bool,
pub build: BuildOptions,
pub retry: RetryPolicy,
/* private fields */
}Expand description
Options of generate.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.range: Option<[i32; 4]>The tile range [x0, z0, x1, z1] (inclusive, clamped, see plan_tiles); None: the whole
world, or for a capture the bounding box of its tiles.
base: Option<NavMeshSet>A mesh to continue from: its grid, tile size and origin are kept and new tiles replace the tiles of their cell.
skip_existing: boolLeave out the tiles that base already has (needs base).
checkpoint: Option<(usize, PathBuf)>Every N finished tiles (built, empty and failed) write the mesh atomically to the path. A
failing checkpoint stops fetching; the run still returns Ok with GenerateReport::stopped
set. N below 1 means 1.
record: Option<PathBuf>Write a capture of the fetched tiles to this path. Tiles are recorded by the assembler in plan order, so the capture is deterministic, and a crash loses the tiles that were fetched but not yet applied. Queued tile inputs can be large (a frame may be up to 1 GiB) and there is no aggregate byte budget: the memory of a run grows with the largest tiles in flight.
threads: Option<usize>The number of builder threads, at most MAX_WORKERS; None: the cores minus one, at least 1.
connections: Option<usize>The number of connections (fetcher threads), at most MAX_WORKERS; None: one per host (1 for a capture).
seed: Option<[f32; 3]>The island filter seed; None: the world’s seedPosition.
island_filter: boolRun the island filter when the world asks for it (filterIsolatedIslands). On by default.
build: BuildOptionsOptions of the tile build.
retry: RetryPolicyConnect and retry rules of the data server client.
Trait Implementations§
Source§impl Clone for GenerateOptions
impl Clone for GenerateOptions
Source§fn clone(&self) -> GenerateOptions
fn clone(&self) -> GenerateOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GenerateOptions
impl Debug for GenerateOptions
Auto Trait Implementations§
impl Freeze for GenerateOptions
impl RefUnwindSafe for GenerateOptions
impl Send for GenerateOptions
impl Sync for GenerateOptions
impl Unpin for GenerateOptions
impl UnsafeUnpin for GenerateOptions
impl UnwindSafe for GenerateOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().