import (
"github.com/HimbeerserverDE/srp"
"github.com/anon55555/mt"
- "github.com/dragonfireclient/hydra/tolua"
+ "github.com/dragonfireclient/hydra-dragonfire/convert"
"github.com/yuin/gopher-lua"
"strings"
"time"
l.SetMetatable(auth.userdata, l.GetTypeMetatable("hydra.auth"))
}
-func (auth *Auth) tolua() lua.LValue {
+func (auth *Auth) push() lua.LValue {
return auth.userdata
}
go func() {
for auth.client.state == csConnected && auth.state == asInit {
auth.client.conn.SendCmd(&mt.ToSrvInit{
- SerializeVer: 28,
- MinProtoVer: 39,
- MaxProtoVer: 39,
+ SerializeVer: serializeVer,
+ MinProtoVer: protoVer,
+ MaxProtoVer: protoVer,
PlayerName: auth.username,
})
time.Sleep(500 * time.Millisecond)
return true
}
- auth.fail("received " + string(tolua.PktType(pkt)) + " in invalid state")
+ auth.fail("received " + string(convert.PushPktType(pkt)) + " in invalid state")
return false
}