Struct Playscii.Tile
Json tile in the Playscii file.
Inherited Members
Namespace: SadConsole.Readers
Assembly: SadConsole.dll
Syntax
public struct Playscii.Tile
Fields
bg
Tile background color.
Declaration
public int bg
Field Value
Type | Description |
---|---|
int |
fg
Tile foreground color.
Declaration
public int fg
Field Value
Type | Description |
---|---|
int |
glyph
Tile character index.
Declaration
[JsonProperty("char")]
public int glyph
Field Value
Type | Description |
---|---|
int |
xform
Tile rotation and mirror.
Declaration
public byte xform
Field Value
Type | Description |
---|---|
byte |
Methods
ToColoredGlyph(IFont, Palette)
Converts the Playscii tile to a SadConsole ColoredGlyphBase.
Declaration
public ColoredGlyphBase ToColoredGlyph(IFont font, Palette colors)
Parameters
Type | Name | Description |
---|---|---|
IFont | font | IFont to be used when creating the ScreenSurface. |
Palette | colors |
Returns
Type | Description |
---|---|
ColoredGlyphBase | ColoredGlyphBase equivalent of the Playscii tile. |