Header menu logo Mibo

Mibo.Layout Namespace

Type/Module Description

CellGrid2D

CellGrid2D<'T>

A dense, flat 2D grid optimized for spatial locality and minimal GC pressure. Uses 'voption' (struct option) to avoid heap allocations for empty cells. Best suited for tilemaps, cellular automata, or dense spatial data. For sparse data over huge coordinates, consider a chunked system instead.

GridSection2D<'T>

A lightweight "view" or "cursor" into a backing grid. Allows defining content using relative coordinates (0,0 is the section's top-left) and nesting layouts without copying data.

LayeredGrid2D

LayeredGrid2D<'T>

A container for multiple Grid2Ds, managed by layer index. Allows composing content across depth (e.g., Background, Foreground, UI).

LayeredLayout

Layout

A fluent DSL for composing layouts. All operations return the modified section to allow chaining (pipeline style).

LayoutHelpers

Platformer

A domain module providing standard layout stamps for Platformer games. These functions generate geometry using standard Layout primitives. They are agnostic to the layer or content type, allowing flexible reuse.

TopDown

A domain module providing standard layout stamps for top-down games. These functions generate enclosed spaces, corridors, and wall structures using standard Layout primitives. They are agnostic to layer or content type, allowing flexible reuse.

Type something to start searching.