C# 클래스 SceneDemo1.SceneDemo1GameServer

상속: Fusion.Engine.Server.GameServer
파일 보기 프로젝트 열기: demiurghg/FusionEngine

공개 메소드들

메소드 설명
ApproveClient ( string id, string userInfo, string &reason ) : bool

Approves client by id and user info.

ClientConnected ( string id, string userInfo ) : void

Notifies server that client connected.

ClientDisconnected ( string id, string userInfo ) : void

Notifies server that client disconnected.

FeedCommand ( string id, byte userCommand ) : void

Feed client commands from particular client.

FeedNotification ( string id, string message ) : void

Feed server notification from particular client.

Initialize ( ) : void

LoadContent ( string map ) : void

Starts server with given map/level.

SceneDemo1GameServer ( Game game ) : System

Ctor

ServerInfo ( ) : string

Gets server info.

UnloadContent ( ) : void

Kills server

Update ( GameTime gameTime ) : byte[]

Runs one step of server-side world simulation. Do not close the stream.

메소드 상세

ApproveClient() 공개 메소드

Approves client by id and user info.
public ApproveClient ( string id, string userInfo, string &reason ) : bool
id string
userInfo string
reason string
리턴 bool

ClientConnected() 공개 메소드

Notifies server that client connected.
public ClientConnected ( string id, string userInfo ) : void
id string
userInfo string
리턴 void

ClientDisconnected() 공개 메소드

Notifies server that client disconnected.
public ClientDisconnected ( string id, string userInfo ) : void
id string
userInfo string
리턴 void

FeedCommand() 공개 메소드

Feed client commands from particular client.
public FeedCommand ( string id, byte userCommand ) : void
id string
userCommand byte
리턴 void

FeedNotification() 공개 메소드

Feed server notification from particular client.
public FeedNotification ( string id, string message ) : void
id string
message string
리턴 void

Initialize() 공개 메소드

public Initialize ( ) : void
리턴 void

LoadContent() 공개 메소드

Starts server with given map/level.
public LoadContent ( string map ) : void
map string
리턴 void

SceneDemo1GameServer() 공개 메소드

Ctor
public SceneDemo1GameServer ( Game game ) : System
game Game
리턴 System

ServerInfo() 공개 메소드

Gets server info.
public ServerInfo ( ) : string
리턴 string

UnloadContent() 공개 메소드

Kills server
public UnloadContent ( ) : void
리턴 void

Update() 공개 메소드

Runs one step of server-side world simulation. Do not close the stream.
public Update ( GameTime gameTime ) : byte[]
gameTime GameTime
리턴 byte[]