Show / Hide Table of Contents

Struct ProviderConfig

Configuration for creating a chunk provider.

Implements
IEquatable<ProviderConfig>
Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: TerraProc.Core.Provider
Assembly: TerraProc.Core.dll
Syntax
public readonly record struct ProviderConfig : IEquatable<ProviderConfig>

Constructors

| Edit this page View Source

ProviderConfig(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 Source

MaxThreads

Maximum number of threads for concurrent chunk generation.

Declaration
public int MaxThreads { get; init; }
Property Value
Type Description
int
| Edit this page View Source

Seed

Seed for the terrain generator.

Declaration
public Seed Seed { get; init; }
Property Value
Type Description
Seed
| Edit this page View Source

UseCoalescing

Whether to use coalescing for chunk requests.

Declaration
public bool UseCoalescing { get; init; }
Property Value
Type Description
bool

Implements

IEquatable<T>
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX