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
GRIDchannel’s gizmos forscenelaid out asgrid(its skin’sGridSkin::grid), in this order: