Module generic_layers

Source
Expand description

Various useful layer/chunk type combinations that you can reuse in many kind of games.

Structs§

ReducedUniformPoint
Removes locations that are too close to others.
UniformPoint
A type of chunk that contains on average one point. You can specify a size in real world coordinates as well as a random number generator salt for picking different points even for the same chunk coordinates.

Traits§

Reducible
Represents point like types that do not want to be close to other types. The larger of two objects is kept if they are too close to each other. If both objects have the same radius, the one with the higher X coordinate is kept (or higher Y if X is also the same).

Functions§

rng_for_point
Create a random number generator seeded with a specific point.