Struct ProviderConfig
Configuration for creating a chunk provider.
Implements
Inherited Members
Namespace: TerraProc.Core.Provider
Assembly: TerraProc.Core.dll
Syntax
public readonly record struct ProviderConfig : IEquatable<ProviderConfig>
Constructors
| Edit this page View SourceProviderConfig(Seed, int, bool)
Configuration for creating a chunk provider.
Declaration
public ProviderConfig(Seed Seed, int MaxThreads = 1, bool UseCoalescing = true)
Parameters
| Type | Name | Description |
|---|---|---|
| Seed | Seed | Seed for the terrain generator. |
| int | MaxThreads | Maximum number of threads for concurrent chunk generation. |
| bool | UseCoalescing | Whether to use coalescing for chunk requests. |
Properties
| Edit this page View SourceMaxThreads
Maximum number of threads for concurrent chunk generation.
Declaration
public int MaxThreads { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
Seed
Seed for the terrain generator.
Declaration
public Seed Seed { get; init; }
Property Value
| Type | Description |
|---|---|
| Seed |
UseCoalescing
Whether to use coalescing for chunk requests.
Declaration
public bool UseCoalescing { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |