Class ProviderFactory
Provides factory methods for creating chunk providers without building them manually.
Inherited Members
Namespace: TerraProc.Core.Provider
Assembly: TerraProc.Core.dll
Syntax
public static class ProviderFactory
Methods
| Edit this page View SourceCreateDefaultProvider(Seed, int)
Creates a default chunk provider. Uses a NoiseTerrainGenerator with ValueNoise for terrain generation, wrapped in a BoundedParallelChunkProvider for multithreaded chunk generation, with a CoalescingChunkProvider to optimize chunk requests.
Declaration
public static IChunkProvider CreateDefaultProvider(Seed seed, int maxThreads)
Parameters
| Type | Name | Description |
|---|---|---|
| Seed | seed | Seed for the noise generator. |
| int | maxThreads | Maximum number of threads for the ConcurrentChunkProvider. |
Returns
| Type | Description |
|---|---|
| IChunkProvider | Default configured chunk provider. |
CreateProvider(ProviderConfig)
Creates a chunk provider based on the provided configuration.
Declaration
public static IChunkProvider CreateProvider(ProviderConfig config)
Parameters
| Type | Name | Description |
|---|---|---|
| ProviderConfig | config | Configuration for the chunk provider. |
Returns
| Type | Description |
|---|---|
| IChunkProvider | Configured chunk provider. |