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:
Justin T 2019-12-09 21:19:20 -06:00
parent cefbaf1489
commit 9e36231101
1 changed files with 28 additions and 0 deletions

View File

@ -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) {
}