C# Класс DungeonServer.Server

This class represents the main console application
Наследование: IHandleEvent
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
_paused bool
error bool

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

Метод Описание
HandleEvent ( bool incoming, Events eventID ) : void
Main ( string args ) : void

Main method

ResetActors ( ) : void
Run ( ) : void
SendMessage ( PacketType type, NetConnection target ) : void
SendMessageToAll ( PacketType type, NetDeliveryMethod method, IPEndPoint exclude ) : void

Broadcast a message to all clients

Server ( string args ) : System

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

Метод Описание
Log ( string message, ConsoleColor color = ConsoleColor.White ) : void

Add text to log (in specified color)

ProcessMessage ( byte id, NetIncomingMessage message ) : void

Deal with an individual message

Update ( ) : void
WaitForInput ( ) : void

Main loop used for console UI

WorkMessages ( object param ) : void

Work on the message queue (reacting to all incoming messages)

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

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

public HandleEvent ( bool incoming, Events eventID ) : void
incoming bool
eventID Events
Результат void

Main() публичный статический Метод

Main method
public static Main ( string args ) : void
args string
Результат void

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

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

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

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

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

public SendMessage ( PacketType type, NetConnection target ) : void
type PacketType
target Lidgren.Network.NetConnection
Результат void

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

Broadcast a message to all clients
public SendMessageToAll ( PacketType type, NetDeliveryMethod method, IPEndPoint exclude ) : void
type PacketType
method NetDeliveryMethod
exclude System.Net.IPEndPoint
Результат void

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

public Server ( string args ) : System
args string
Результат System

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

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

public bool _paused
Результат bool

error публичное статическое свойство

public static bool error
Результат bool