Skip to main content

Module debug

Module debug 

Source
Expand description

The grid kit’s channel of the debug view (ADR-0085): GRID, the layout of a MapScene as its skin laid it out (Grid). A game’s map screen offers it by calling layout_gizmos from its debug_draw:

ⓘ
fn debug_draw(&self, _ctx: &Ctx<MyGame>, out: &mut Gizmos) {
    let scene = self.scene();
    let grid = self.skin.grid(&scene, AREA);
    shuyi_ui::grid::debug::layout_gizmos(&scene, &grid, out);
}

Constants§

GRID
The grid kit’s channel: a map’s layout.

Functions§

layout_gizmos
Hands in the GRID channel’s gizmos for scene laid out as grid (its skin’s GridSkin::grid), in this order: