载入中...
搜索中...
未找到
GridConfig.cpp
浏览该文件的文档.
Module-neutral grid topology and sizing (no building/map dependency).
Definition PlacementWorld.h:23
GridPlane
Placement plane for the second grid axis. XY maps the second axis to world Y (2D tilemaps / top-down)...
Definition GridConfig.h:28
GridLayout
Cell topology: rectangle, hex, isometric, or staggered variants.
Definition GridConfig.h:17
@ Hexagon
@ Isometric
@ Rectangle
@ IsometricZAsY
@ Staggered
static const char * layoutName(GridLayout l)
Stable string name for a layout enum value.
Definition GridConfig.cpp:5
static const char * planeName(GridPlane p)
Stable string name for a plane enum value.
Definition GridConfig.cpp:29
static GridPlane planeFromName(const std::string &name)
Parse a plane name; unknown names fall back to XY.
Definition GridConfig.cpp:33
static GridLayout layoutFromName(const std::string &name)
Parse a layout name; unknown names fall back to Rectangle.
Definition GridConfig.cpp:21