[This is preliminary documentation and is subject to change.]

Packet struct, just a wrapper for a byte array.

Namespace: fCraft
Assembly: fCraft (in fCraft.dll) Version: 0.6.3.2 (0.6.3.2)

Syntax

   
 C# 
public struct Packet

Members

               
 All Members  Constructors   Fields   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
Packet(array<Byte>[]()[][])
Creates a new packet from given raw bytes. Data not be null.
Packet(OpCode)
Creates a packet of correct size for a given opcode, and sets the first (opcode) byte.
Bytes
Raw bytes of this packet.
Equals(Object)
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()()
Returns the hash code for this instance.
(Inherited from ValueType.)
GetSize(OpCode)
Returns packet size (in bytes) for a given opcode. Size includes the opcode byte itself.
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
MakeAddEntity(SByte, String, Position)
MakeHandshake(Player, String, String)
MakeKick(String)
MakeMove(SByte, Position)
MakeMoveRotate(SByte, Position)
MakeRemoveEntity(SByte)
MakeRotate(SByte, Position)
MakeSelfTeleport(Position)
MakeSetBlock(Vector3I, Block)
MakeSetBlock(Int16, Int16, Int16, Block)
MakeSetPermission(Player)
MakeTeleport(SByte, Position)
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
OpCode
Opcode (first byte) of this packet.
SelfID
ToString()()()()
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)

See Also