Show / Hide Table of Contents

Class DungeonDrawer<TRoom>

Class that can export a given layout to a PNG image.

Inheritance
System.Object
DungeonDrawerBase
DungeonDrawer<TRoom>
Inherited Members
DungeonDrawerBase.polygonPartitioning
DungeonDrawerBase.random
DungeonDrawerBase.bitmap
DungeonDrawerBase.graphics
DungeonDrawerBase.DrawGrid(PolygonGrid2D)
DungeonDrawerBase.DrawRoomBackground(PolygonGrid2D, Color)
DungeonDrawerBase.DrawOutline(PolygonGrid2D, List<DungeonDrawerBase.OutlineSegment>, Pen)
DungeonDrawerBase.DrawHatching(PolygonGrid2D, List<Tuple<RectangleGrid2D, List<Vector2>>>, Range<Single>, Range<Single>)
DungeonDrawerBase.DrawShading(List<DungeonDrawerBase.OutlineSegment>, Pen)
DungeonDrawerBase.DrawTextOntoPolygon(PolygonGrid2D, String, Single)
DungeonDrawerBase.GetOutline(PolygonGrid2D, List<OrthogonalLineGrid2D>, Vector2Int)
Namespace: Edgar.GraphBasedGenerator.Grid2D.Drawing
Assembly: Edgar.dll
Syntax
public class DungeonDrawer<TRoom> : DungeonDrawerBase
Type Parameters
Name Description
TRoom

Constructors

DungeonDrawer()

Declaration
public DungeonDrawer()

Methods

DrawLayout(LayoutGrid2D<TRoom>, DungeonDrawerOptions)

Draws a given layout and returns a bitmap with the drawing.

Declaration
public Bitmap DrawLayout(LayoutGrid2D<TRoom> layout, DungeonDrawerOptions options)
Parameters
Type Name Description
LayoutGrid2D<TRoom> layout

Layout to be drawn.

DungeonDrawerOptions options

Options. See DungeonDrawerOptions.

Returns
Type Description
System.Drawing.Bitmap

DrawLayoutAndSave(LayoutGrid2D<TRoom>, String, DungeonDrawerOptions)

Draws a given layout and saves it to a PNG file.

Declaration
public void DrawLayoutAndSave(LayoutGrid2D<TRoom> layout, string path, DungeonDrawerOptions options)
Parameters
Type Name Description
LayoutGrid2D<TRoom> layout

Layout to be drawn.

System.String path

Path to the file.

DungeonDrawerOptions options

Options. See DungeonDrawerOptions.

Back to top Generated by DocFX