C# Class PGMEBackend.GLControls.GLMapEditor

Show file Open project: Diegoisawesome/AwesomeMapEditor-old

Public Properties

Property Type Description
endMouseX int
endMouseY int
height int
mouseX int
mouseY int
movementPerms Spritesheet
rectDefaultColor Color
rectPaintColor Color
rectSelectColor Color
tool MapEditorTools
width int

Public Methods

Method Description
FillBlocks ( int x, int y, short originalBlock, short newBlock ) : void
FillPerms ( int x, int y, byte originalPerm, byte newPerm ) : void
GLMapEditor ( int w, int h ) : System
MouseDown ( MapEditorTools Tool ) : void
MouseLeave ( ) : void
MouseMove ( int x, int y ) : void
MouseUp ( MapEditorTools Tool ) : void
Paint ( int w, int h ) : void
PaintBlocksToMap ( short blockArray, int x, int y, int w, int h ) : void
PaintPermsToMap ( byte permsArray, int x, int y, int w, int h ) : void
RedrawAllChunks ( ) : void
StoreChangesToUndoBufferAndRedraw ( ) : void

Private Methods

Method Description
PreRender ( ) : void
Render ( ) : void
SetupViewport ( ) : void

Method Details

FillBlocks() public method

public FillBlocks ( int x, int y, short originalBlock, short newBlock ) : void
x int
y int
originalBlock short
newBlock short
return void

FillPerms() public method

public FillPerms ( int x, int y, byte originalPerm, byte newPerm ) : void
x int
y int
originalPerm byte
newPerm byte
return void

GLMapEditor() public method

public GLMapEditor ( int w, int h ) : System
w int
h int
return System

MouseDown() public method

public MouseDown ( MapEditorTools Tool ) : void
Tool MapEditorTools
return void

MouseLeave() public method

public MouseLeave ( ) : void
return void

MouseMove() public method

public MouseMove ( int x, int y ) : void
x int
y int
return void

MouseUp() public method

public MouseUp ( MapEditorTools Tool ) : void
Tool MapEditorTools
return void

Paint() public method

public Paint ( int w, int h ) : void
w int
h int
return void

PaintBlocksToMap() public method

public PaintBlocksToMap ( short blockArray, int x, int y, int w, int h ) : void
blockArray short
x int
y int
w int
h int
return void

PaintPermsToMap() public method

public PaintPermsToMap ( byte permsArray, int x, int y, int w, int h ) : void
permsArray byte
x int
y int
w int
h int
return void

RedrawAllChunks() public method

public RedrawAllChunks ( ) : void
return void

StoreChangesToUndoBufferAndRedraw() public method

public StoreChangesToUndoBufferAndRedraw ( ) : void
return void

Property Details

endMouseX public property

public int endMouseX
return int

endMouseY public property

public int endMouseY
return int

height public property

public int height
return int

mouseX public property

public int mouseX
return int

mouseY public property

public int mouseY
return int

movementPerms public property

public Spritesheet movementPerms
return Spritesheet

rectDefaultColor public property

public Color rectDefaultColor
return Color

rectPaintColor public property

public Color rectPaintColor
return Color

rectSelectColor public property

public Color rectSelectColor
return Color

tool public property

public MapEditorTools tool
return MapEditorTools

width public property

public int width
return int