Mibo.Layout Namespace
| Type/Module | Description |
|
|
|
|
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. |
|
|
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. |
|
|
|
|
|
A container for multiple Grid2Ds, managed by layer index. Allows composing content across depth (e.g., Background, Foreground, UI). |
|
|
|
|
|
A fluent DSL for composing layouts. All operations return the modified section to allow chaining (pipeline style). |
|
|
|
|
|
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. |
|
|
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. |
Mibo