C# 클래스 fCraft.Player

파일 보기 프로젝트 열기: GlennMR/800craft 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
FullPositionUpdateInterval int

Private Properties

프로퍼티 타입 설명
AddEntity void
ClearLowPriotityOutputQueue void
ClearPriorityOutputQueue void
DenyMovement void
DetectMovementPacketSpam bool
Disconnect void
GentlyKickBetaClients void
HideEntity void
IoLoop void
JoinWorldNow bool
KickNow void
LoginSequence bool
MeasureBandwidthUseRates void
MoveEntity void
NegotiateProtocolExtension bool
Player System
Player System
ProcessMessagePacket bool
ProcessMovementPacket void
ProcessOutgoingSetBlock void
ProcessSetBlockPacket void
ReAddEntity void
ReadString string
RemoveEntity void
ResetVisibleEntities void
ServeCfg void
ShowEntity void
UpdateVisibleEntities void

공개 메소드들

메소드 설명
JoinWorld ( [ newWorld, WorldChangeReason reason ) : void
JoinWorld ( [ newWorld, WorldChangeReason reason, Position position ) : void
Kick ( [ message, LeaveReason leaveReason ) : void

Kick (asynchronous). Immediately blocks all client input, but waits until client thread has sent the kick packet.

Send ( Packet packet ) : void

Send packet (thread-safe, async, priority queue). This is used for most packets (movement, chat, etc).

SendBlockPermissions ( ) : void
SendLowPriority ( Packet packet ) : void

Send packet (thread-safe, asynchronous, delayed queue). This is currently only used for block updates.

SendNow ( Packet packet ) : void

Send packet to player (not thread safe, sync, immediate). Should NEVER be used from any thread other than this session's ioThread. Not thread-safe (for performance reason).

StartSession ( [ tcpClient ) : void
WaitForDisconnect ( ) : void

Blocks the calling thread until this session disconnects.

비공개 메소드들

메소드 설명
AddEntity ( [ player, Position newPos ) : void
ClearLowPriotityOutputQueue ( ) : void

Clears the low priority player queue.

ClearPriorityOutputQueue ( ) : void

Clears the priority player queue.

DenyMovement ( ) : void
DetectMovementPacketSpam ( ) : bool
Disconnect ( ) : void
GentlyKickBetaClients ( ) : void
HideEntity ( [ entity ) : void
IoLoop ( ) : void
JoinWorldNow ( [ newWorld, bool doUseWorldSpawn, WorldChangeReason reason ) : bool
KickNow ( [ message, LeaveReason leaveReason ) : void

Kick (synchronous). Immediately sends the kick packet. Can only be used from IoThread (this is not thread-safe).

LoginSequence ( ) : bool
MeasureBandwidthUseRates ( ) : void
MoveEntity ( [ entity, Position newPos ) : void
NegotiateProtocolExtension ( ) : bool
Player ( ) : System
Player ( [ tcpClient ) : System
ProcessMessagePacket ( ) : bool
ProcessMovementPacket ( ) : void
ProcessOutgoingSetBlock ( Packet &packet ) : void
ProcessSetBlockPacket ( ) : void
ReAddEntity ( [ entity, [ player, Position newPos ) : void
ReadString ( ) : string
RemoveEntity ( [ player ) : void
ResetVisibleEntities ( ) : void
ServeCfg ( ) : void
ShowEntity ( [ entity, Position newPos ) : void
UpdateVisibleEntities ( ) : void

메소드 상세

JoinWorld() 공개 메소드

public JoinWorld ( [ newWorld, WorldChangeReason reason ) : void
newWorld [
reason WorldChangeReason
리턴 void

JoinWorld() 공개 메소드

public JoinWorld ( [ newWorld, WorldChangeReason reason, Position position ) : void
newWorld [
reason WorldChangeReason
position Position
리턴 void

Kick() 공개 메소드

Kick (asynchronous). Immediately blocks all client input, but waits until client thread has sent the kick packet.
public Kick ( [ message, LeaveReason leaveReason ) : void
message [
leaveReason LeaveReason
리턴 void

Send() 공개 메소드

Send packet (thread-safe, async, priority queue). This is used for most packets (movement, chat, etc).
public Send ( Packet packet ) : void
packet Packet
리턴 void

SendBlockPermissions() 공개 메소드

public SendBlockPermissions ( ) : void
리턴 void

SendLowPriority() 공개 메소드

Send packet (thread-safe, asynchronous, delayed queue). This is currently only used for block updates.
public SendLowPriority ( Packet packet ) : void
packet Packet
리턴 void

SendNow() 공개 메소드

Send packet to player (not thread safe, sync, immediate). Should NEVER be used from any thread other than this session's ioThread. Not thread-safe (for performance reason).
public SendNow ( Packet packet ) : void
packet Packet
리턴 void

StartSession() 공개 정적인 메소드

public static StartSession ( [ tcpClient ) : void
tcpClient [
리턴 void

WaitForDisconnect() 공개 메소드

Blocks the calling thread until this session disconnects.
public WaitForDisconnect ( ) : void
리턴 void

프로퍼티 상세

FullPositionUpdateInterval 공개적으로 정적으로 프로퍼티

public static int FullPositionUpdateInterval
리턴 int