Show / Hide Table of Contents

Class ProviderFactory

Provides factory methods for creating chunk providers without building them manually.

Inheritance
object
ProviderFactory
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TerraProc.Core.Provider
Assembly: TerraProc.Core.dll
Syntax
public static class ProviderFactory

Methods

| Edit this page View Source

CreateDefaultProvider(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.

| Edit this page View Source

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.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX