mirror of
https://github.com/PretendoNetwork/nex-go.git
synced 2025-04-02 11:02:14 -04:00
33 lines
793 B
Go
33 lines
793 B
Go
package nex
|
|
|
|
// PacketInterface implements all Packet methods
|
|
type PacketInterface interface {
|
|
Sender() *Client
|
|
SetVersion(version uint8)
|
|
Version() uint8
|
|
SetSource(source uint8)
|
|
Source() uint8
|
|
SetDestination(destination uint8)
|
|
Destination() uint8
|
|
SetType(packetType uint16)
|
|
Type() uint16
|
|
SetFlags(bitmask uint16)
|
|
Flags() uint16
|
|
HasFlag(flag uint16) bool
|
|
AddFlag(flag uint16)
|
|
ClearFlag(flag uint16)
|
|
SetSessionID(sessionID uint8)
|
|
SessionID() uint8
|
|
SetSignature(signature []byte)
|
|
Signature() []byte
|
|
SetSequenceID(sequenceID uint16)
|
|
SequenceID() uint16
|
|
SetConnectionSignature(connectionSignature []byte)
|
|
ConnectionSignature() []byte
|
|
SetFragmentID(fragmentID uint8)
|
|
FragmentID() uint8
|
|
SetPayload(payload []byte)
|
|
Payload() []byte
|
|
RMCRequest() RMCRequest
|
|
Bytes() []byte
|
|
}
|