C# Class Cakewalk.Server.ServerEntity

Represents a player connected to the server.
Inheritance: NetEntity
显示文件 Open project: Cakez0r/Cakewalk Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
ServerEntity ( Socket socket, int worldID, World world, SocketAsyncPool asyncPool ) : System

Protected Methods

Method Description
HandlePacket ( IPacketBase packet ) : void

Incoming packets are pushed here for handling.

Method Details

Dispose() public method

public Dispose ( ) : void
return void

HandlePacket() protected method

Incoming packets are pushed here for handling.
protected HandlePacket ( IPacketBase packet ) : void
packet IPacketBase
return void

ServerEntity() public method

public ServerEntity ( Socket socket, int worldID, World world, SocketAsyncPool asyncPool ) : System
socket System.Net.Sockets.Socket
worldID int
world World
asyncPool SocketAsyncPool
return System