WIP: handle handshake packets
progress on handling the incoming handshake packets. mapping out a lot of crypto packets that i won't implement till later
This commit is contained in:
parent
cefbaf1489
commit
9e36231101
|
@ -0,0 +1,28 @@
|
|||
package handlers
|
||||
|
||||
import (
|
||||
"github.com/jtieri/HabbGo/habbgo/game/model/player"
|
||||
"github.com/jtieri/HabbGo/habbgo/server/protocol/composers"
|
||||
"github.com/jtieri/HabbGo/habbgo/server/protocol/packets"
|
||||
)
|
||||
|
||||
func HandleInitCrypto(player *player.Player, packet *packets.IncomingPacket) {
|
||||
player.Session.Send(composers.ComposeCryptoParams())
|
||||
}
|
||||
|
||||
func HandleGenerateKey(player *player.Player, packet *packets.IncomingPacket) {
|
||||
// TODO send
|
||||
player.Session.Send(composers.ComposeEndCrypto())
|
||||
}
|
||||
|
||||
func HandleGetSessionParams(player *player.Player, packet *packets.IncomingPacket) {
|
||||
player.Session.Send(composers.ComposeSessionParams())
|
||||
}
|
||||
|
||||
func HandleSSO(player *player.Player, packet *packets.IncomingPacket) {
|
||||
|
||||
}
|
||||
|
||||
func HandleTryLogin(player *player.Player, packet *packets.IncomingPacket) {
|
||||
|
||||
}
|
Loading…
Reference in New Issue