SagaMapLevelGenerator class

Default implementation that generates deterministic zig-zag map paths.

Each level is derived from (globalSeed, levelId) alone, so generating a chunk costs the same whether it is the first or the ten-thousandth. The previous implementation replayed the random sequence from level zero on every call, making deep chunks progressively more expensive to load.

Implemented types

Constructors

SagaMapLevelGenerator()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generateLevels({required int globalSeed, required SagaMapConfig config, required int startLevelId, required int count}) List<LevelData>
Builds level data from a seed and geometry config.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited