C# 클래스 DungeonServer.Server

This class represents the main console application
상속: IHandleEvent
파일 보기 프로젝트 열기: propra13-orga/gruppe22 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
_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