C# Класс MineEdit.MapChunkControl

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
AssignedChunk Vector3i
ChunkSize Vector3i
EntityButtons PictureBox>.Dictionary
Map IMapHandler
TileEntityButtons PictureBox>.Dictionary

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

Приватные методы

Метод Описание
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.

Описание методов

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

Draw() публичный Метод

public Draw ( ) : void
Результат void

EntityHover() публичный Метод

public EntityHover ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void

EntityMouseDown() публичный Метод

public EntityMouseDown ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
Результат void

MapChunkControl() публичный Метод

public MapChunkControl ( ) : System
Результат System

MapChunkControl() публичный Метод

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
Результат System

MapChunkControl_Paint() публичный Метод

public MapChunkControl_Paint ( object sender, PaintEventArgs e ) : void
sender object
e PaintEventArgs
Результат void

Render() публичный Метод

public Render ( ) : void
Результат void

TileEntityHover() публичный Метод

public TileEntityHover ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void

TileEntityMouseDown() публичный Метод

public TileEntityMouseDown ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
Результат void

Описание свойств

AssignedChunk публичное свойство

Chunk (x,y,z) index
public Vector3i AssignedChunk
Результат Vector3i

ChunkSize публичное свойство

Size of chunk
public Vector3i ChunkSize
Результат Vector3i

EntityButtons публичное свойство

public Dictionary EntityButtons
Результат PictureBox>.Dictionary

Map публичное свойство

public IMapHandler Map
Результат IMapHandler

TileEntityButtons публичное свойство

public Dictionary TileEntityButtons
Результат PictureBox>.Dictionary