Свойство | Type | Description | |
---|---|---|---|
CanReceive | bool | ||
FullPositionUpdateInterval | int | ||
LoginTime | System.DateTime | ||
Player | Player | ||
canReceive | bool | ||
loginTime | System.DateTime | ||
outputQueue | Queue |
||
player | Player | ||
state | State |
Méthode | Description | |
---|---|---|
AddEntity ( Player player, |
||
ClearBlockUpdateQueue ( ) : void | ||
ClearPriorityOutputQueue ( ) : void | ||
DenyMovement ( ) : void | ||
Disconnect ( ) : void | ||
GetIP ( ) : |
||
HideEntity ( VisibleEntity entity ) : void | ||
IoLoop ( ) : void | ||
JoinWorld ( |
||
JoinWorld ( |
||
JoinWorldInternal ( |
||
Kick ( string message ) : void | ||
Kick ( string message, LeaveReason leaveReason ) : void |
Kick (asynchronous). Immediately blocks all client input, but waits until client thread sends the kick packet.
|
|
KickNow ( string message ) : void | ||
KickNow ( string message, LeaveReason leaveReason ) : void |
Kick (synchronous). Immediately sends the kick packet. Can only be used from IoThread (this is not thread-safe).
|
|
LoginSequence ( ) : void | ||
MeasureBandwidthUseRates ( ) : void | ||
MoveEntity ( VisibleEntity entity, |
||
ProcessMovementPacket ( ) : void | ||
ProcessSetBlockPacket ( ) : void | ||
ReAddEntity ( VisibleEntity entity, Player player, |
||
RemoveEntity ( Player player ) : void | ||
ResetVisibleEntities ( ) : void | ||
Send ( |
Send packet (asynchronous, priority queue). This is used for most packets (movement, chat, etc).
|
|
Send ( |
||
SendDelayed ( |
Send packet (asynchronous, delayed queue). This is currently only used for block updates.
|
|
SendNow ( |
Send packet to player (synchronous). Sends the packet off immediately. Should not be used from any thread other than this session's IoThread. Not thread-safe (for performance reason).
|
|
Session ( |
||
Session ( |
||
ShowEntity ( VisibleEntity entity, |
||
Start ( ) : void | ||
ToString ( ) : string | ||
UpdateVisibleEntities ( ) : void | ||
WaitForDisconnect ( ) : void |
Blocks the calling thread until this session disconnects.
|
Méthode | Description | |
---|---|---|
DetectMovementPacketSpam ( ) : bool | ||
HandleInput ( |
||
InputHandler ( ) : void | ||
JoinWorldNow ( |
||
LoginFailure ( string message ) : void | ||
LoginSequence ( ) : bool | ||
LoginSuccess ( ) : void | ||
OutputHandler ( ) : void | ||
ProcessMessagePacket ( ) : bool | ||
ReadString ( ) : string |
public AddEntity ( Player player, |
||
player | Player | |
newPos | ||
Résultat | void |
public HideEntity ( VisibleEntity entity ) : void | ||
entity | VisibleEntity | |
Résultat | void |
public JoinWorld ( |
||
newWorld | ||
position | ||
Résultat | void |
public JoinWorldInternal ( |
||
newWorld | ||
position | ||
doUseWorldPosition | bool | |
Résultat | void |
public Kick ( string message, LeaveReason leaveReason ) : void | ||
message | string | |
leaveReason | LeaveReason | |
Résultat | void |
public KickNow ( string message, LeaveReason leaveReason ) : void | ||
message | string | |
leaveReason | LeaveReason | |
Résultat | void |
public MoveEntity ( VisibleEntity entity, |
||
entity | VisibleEntity | |
newPos | ||
Résultat | void |
public ReAddEntity ( VisibleEntity entity, Player player, |
||
entity | VisibleEntity | |
player | Player | |
newPos | ||
Résultat | void |
public RemoveEntity ( Player player ) : void | ||
player | Player | |
Résultat | void |
public Send ( |
||
packet | ||
isHighPriority | bool | |
Résultat | void |
public SendDelayed ( |
||
packet | ||
Résultat | void |
public Session ( |
||
tcpClient | ||
Résultat | System |
public Session ( |
||
_world | ||
_client | ||
Résultat | System |
public ShowEntity ( VisibleEntity entity, |
||
entity | VisibleEntity | |
newPos | ||
Résultat | void |
public static int FullPositionUpdateInterval | ||
Résultat | int |