MapDocument

Individual document for parallel editing

Constructors

this
this(string filename)

Loads the document from disk.

this
this(string docName, int resX, int resY)

New from scratch

Members

Enums

EditMode
enum EditMode

Specifies the current edit mode

Functions

addTileSet
void addTileSet(int layer, ABitmap[ushort] tiles)
void addTileSet(int layer, ABitmap[] tiles)

Puts the loaded tiles onto a TileLayer

nextLayerNumber
int nextLayerNumber()

Returns the next available layer number.

onSelection
void onSelection()
Undocumented in source. Be warned that the author may not have intended to support it.
passMouseEvent
void passMouseEvent(int x, int y, int state, ubyte button)

Pass mouse events here.

tileMaterial_FlipHorizontal
void tileMaterial_FlipHorizontal()
Undocumented in source. Be warned that the author may not have intended to support it.
tileMaterial_FlipVertical
void tileMaterial_FlipVertical()
Undocumented in source. Be warned that the author may not have intended to support it.
tileMaterial_PaletteDown
void tileMaterial_PaletteDown()
Undocumented in source. Be warned that the author may not have intended to support it.
tileMaterial_PaletteUp
void tileMaterial_PaletteUp()
Undocumented in source. Be warned that the author may not have intended to support it.
tileMaterial_Select
void tileMaterial_Select(wchar id)
Undocumented in source. Be warned that the author may not have intended to support it.
updateLayerList
void updateLayerList()
Undocumented in source. Be warned that the author may not have intended to support it.
updateMaterialList
void updateMaterialList()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

events
UndoableStack events;

Per document event stack

mainDoc
MapFormat mainDoc;

Used to reduce duplicate data as much as possible

mode
EditMode mode;

Mose event mode selector

outputWindow
RasterWindow outputWindow;

Window used to output the screen data

paletteReturnFunc
Color[] delegate(MapDocument sender) paletteReturnFunc;

Used for adding the palette for the document

prevMouseX
int prevMouseX;

Previous mouse X position

prevMouseY
int prevMouseY;

Previous mouse Y position

selectedLayer
int selectedLayer;

Indicates the currently selected layer

selectedMappingElement
MappingElement selectedMappingElement;

Currently selected mapping element to write, including mirroring properties, palette selection, and priority attributes

voidfill
bool voidfill;

If true, tilePlacement overrides only transparent (0xFFFF) tiles.

Meta