Class DungeonDrawer<TRoom>
Class that can export a given layout to a PNG image.
Inherited Members
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. |