Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Fired on the initial connection request (handshake with next state 0x02) HandshakeEvent = &Handshake{ BaseEvent: *aurora.NewBaseEvent(true), KickMessage: chat.BuildMessage("Unknown reason"), } )
View Source
var ( JoinEvent = &Join{ BaseEvent: *aurora.NewBaseEvent(true), } )
View Source
var ( // Fired before the sending the login success packet LoginEvent = &Login{ BaseEvent: *aurora.NewBaseEvent(true), KickMessage: chat.BuildMessage("Unknown reason"), } )
View Source
var ( PingEvent = &Ping{ BaseEvent: *aurora.NewBaseEvent(true), } )
View Source
var ( // Fired when login starts after the initial handshake PreLoginEvent = &PreLogin{ BaseEvent: *aurora.NewBaseEvent(true), KickMessage: chat.BuildMessage("Unknown reason"), } )
Functions ¶
This section is empty.
Types ¶
type Handshake ¶
type Handshake struct { Protocol int32 RemoteAddr net.Addr KickMessage chat.Message aurora.BaseEvent }
Fired on the initial connection request (handshake with next state 0x02)
type Join ¶
type Join struct { Protocol int32 RemoteAddr net.Addr aurora.BaseEvent // contains filtered or unexported fields }
func (*Join) Fire ¶
Executes all the registered handle functions and returns if the event was cancelled
func (*Join) JoinMessage ¶
Get's the current join message
func (*Join) SetJoinMessage ¶
Set's the join message if nil, no join message will be sent
type Login ¶
type Login struct { Name string UUID [16]byte Protocol int32 RemoteAddr net.Addr KickMessage chat.Message aurora.BaseEvent }
Fired before the sending the login success packet
type Ping ¶
Click to show internal directories.
Click to hide internal directories.