C# Класс DeveloperConsole.ObjectSelector

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

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

Метод Описание
Draw ( ) : void

Calls the object selector

DrawEntBox ( Entity e, Color c ) : void

Draws a box around the specified entity

KeyPress ( object sender, KeyEventArgs e ) : void

Handles keypresses, should be called from the scripts KeyDown event

ObjectSelector ( ) : System.Collections.Generic

Creates an ObjectSelector

Tick ( ) : void

This method should be called each tick

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

Метод Описание
DrawEntity ( Entity e ) : void

Draw a specified entity

DrawEnts ( ) : void

Draw all the entities we can see

GetNextEntity ( ) : Entity

Gets the next entity in the object selector

HandleMouse ( ) : void

Handles mouse/rightjoystick input

SelectObject ( bool click = false, bool alt = false ) : void

Choose the currently select entity

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

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

Calls the object selector
public Draw ( ) : void
Результат void

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

Draws a box around the specified entity
public DrawEntBox ( Entity e, Color c ) : void
e Entity The entity to draw around
c System.Drawing.Color The box color
Результат void

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

Handles keypresses, should be called from the scripts KeyDown event
public KeyPress ( object sender, KeyEventArgs e ) : void
sender object The object sending the event
e System.Windows.Forms.KeyEventArgs The event arguments
Результат void

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

Creates an ObjectSelector
public ObjectSelector ( ) : System.Collections.Generic
Результат System.Collections.Generic

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

This method should be called each tick
public Tick ( ) : void
Результат void