C# 클래스 fCraft.Packet

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

공개 프로퍼티들

프로퍼티 타입 설명
Data byte[]

공개 메소드들

메소드 설명
GetSize ( OpCode opcode ) : int

Returns packet size (in bytes) for a given opcode. Size includes the opcode byte itself.

MakeAddSelectionBox ( byte ID, string Label, short StartX, short StartY, short StartZ, short EndX, short EndY, short EndZ, short R, short G, short B, short A ) : Packet
Packet ( OpCode opcode ) : System

Creates a packet of correct size for a given opcode, and sets the first (opcode) byte.

Packet ( [ data ) : System

비공개 메소드들

메소드 설명
MakeCustomBlockSupportLevel ( byte level ) : Packet
MakeExtEntry ( string name, int version ) : Packet
MakeExtInfo ( short extCount ) : Packet
MakeSetBlockPermission ( Block block, bool canPlace, bool canDelete ) : Packet
ToNetOrder ( int number, [ arr, int offset ) : void
ToNetOrder ( short number, [ arr, int offset ) : void

메소드 상세

GetSize() 공개 정적인 메소드

Returns packet size (in bytes) for a given opcode. Size includes the opcode byte itself.
public static GetSize ( OpCode opcode ) : int
opcode OpCode
리턴 int

MakeAddSelectionBox() 공개 정적인 메소드

public static MakeAddSelectionBox ( byte ID, string Label, short StartX, short StartY, short StartZ, short EndX, short EndY, short EndZ, short R, short G, short B, short A ) : Packet
ID byte
Label string
StartX short
StartY short
StartZ short
EndX short
EndY short
EndZ short
R short
G short
B short
A short
리턴 Packet

Packet() 공개 메소드

Creates a packet of correct size for a given opcode, and sets the first (opcode) byte.
public Packet ( OpCode opcode ) : System
opcode OpCode
리턴 System

Packet() 공개 메소드

public Packet ( [ data ) : System
data [
리턴 System

프로퍼티 상세

Data 공개적으로 프로퍼티

public byte[] Data
리턴 byte[]