C# Class MineEdit.MapChunkControl

Show file Open project: N3X15/MineEdit Class Usage Examples

Public Properties

Property Type Description
AssignedChunk Vector3i
ChunkSize Vector3i
EntityButtons PictureBox>.Dictionary
Map IMapHandler
TileEntityButtons PictureBox>.Dictionary

Public Methods

Method Description
Draw ( ) : void
EntityHover ( object sender, EventArgs e ) : void
EntityMouseDown ( object sender, MouseEventArgs e ) : void
MapChunkControl ( ) : System
MapChunkControl ( MapControl mc, Vector3i pos, Vector3i sz ) : System

Initialize and set up events for this MapChunk.

MapChunkControl_Paint ( object sender, PaintEventArgs e ) : void
Render ( ) : void
TileEntityHover ( object sender, EventArgs e ) : void
TileEntityMouseDown ( object sender, MouseEventArgs e ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
DrawBlock ( Bitmap &bmp, int x, int y, Color c ) : void
DrawCross ( Graphics &g, Pen p, int x, int y ) : void
Fade ( Image image ) : Image
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

Draw() public method

public Draw ( ) : void
return void

EntityHover() public method

public EntityHover ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

EntityMouseDown() public method

public EntityMouseDown ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
return void

MapChunkControl() public method

public MapChunkControl ( ) : System
return System

MapChunkControl() public method

Initialize and set up events for this MapChunk.
public MapChunkControl ( MapControl mc, Vector3i pos, Vector3i sz ) : System
mc MapControl Parent mapcontrol
pos Vector3i Position of chunk
sz Vector3i Chunk size
return System

MapChunkControl_Paint() public method

public MapChunkControl_Paint ( object sender, PaintEventArgs e ) : void
sender object
e PaintEventArgs
return void

Render() public method

public Render ( ) : void
return void

TileEntityHover() public method

public TileEntityHover ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

TileEntityMouseDown() public method

public TileEntityMouseDown ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
return void

Property Details

AssignedChunk public property

Chunk (x,y,z) index
public Vector3i AssignedChunk
return Vector3i

ChunkSize public property

Size of chunk
public Vector3i ChunkSize
return Vector3i

EntityButtons public property

public Dictionary EntityButtons
return PictureBox>.Dictionary

Map public property

public IMapHandler Map
return IMapHandler

TileEntityButtons public property

public Dictionary TileEntityButtons
return PictureBox>.Dictionary