Class DebugOverlayFrame
Captures the output of a debug overlay build pass.
public sealed class DebugOverlayFrame
- Inheritance
-
DebugOverlayFrame
- Inherited Members
Constructors
DebugOverlayFrame(WorldTileCoord?, ChunkCoord?, Int2?, IReadOnlyList<string>, IReadOnlyList<SpriteDrawCommand>)
Creates a debug overlay frame.
public DebugOverlayFrame(WorldTileCoord? hoveredTileCoord, ChunkCoord? hoveredChunkCoord, Int2? hoveredLocalCoord, IReadOnlyList<string> panelLines, IReadOnlyList<SpriteDrawCommand> drawCommands)
Parameters
hoveredTileCoordWorldTileCoord?The hovered tile coordinate when the cursor is inside the viewport.
hoveredChunkCoordChunkCoord?The chunk coordinate containing the hovered tile.
hoveredLocalCoordInt2?The hovered tile coordinate in local chunk space.
panelLinesIReadOnlyList<string>The textual lines shown in the debug panel.
drawCommandsIReadOnlyList<SpriteDrawCommand>The draw commands generated for the overlay.
Properties
DrawCommands
Gets the overlay draw commands generated for the current frame.
public IReadOnlyList<SpriteDrawCommand> DrawCommands { get; }
Property Value
HoveredChunkCoord
Gets the chunk coordinate containing the hovered tile.
public ChunkCoord? HoveredChunkCoord { get; }
Property Value
HoveredLocalCoord
Gets the hovered tile coordinate in local chunk space.
public Int2? HoveredLocalCoord { get; }
Property Value
- Int2?
HoveredTileCoord
Gets the hovered world-tile coordinate when the cursor is inside the viewport.
public WorldTileCoord? HoveredTileCoord { get; }
Property Value
PanelLines
Gets the textual lines displayed by the debug panel.
public IReadOnlyList<string> PanelLines { get; }