diff --git a/habbgo/main.go b/habbgo/main.go new file mode 100644 index 0000000..660ab06 --- /dev/null +++ b/habbgo/main.go @@ -0,0 +1,21 @@ +package main + +import ( + "github.com/jtieri/HabbGo/habbgo/server" + "github.com/jtieri/HabbGo/habbgo/utils" +) + +func main() { + //log.Println(encoding.DecodeVl64([]byte{'@','A'})) + //buffer := bytes.Buffer{} + //packet := packets.IncomingPacket{"@@", 1, buffer} + //packet.Payload.Write([]byte{'h','e','l','l','o'}) + //log.Println(string(packet.Bytes())) + //log.Println(packet.Payload.String()) + + + config := utils.LoadConfig() + gameServer := server.New(config.Server.Port, config.Server.Host) + gameServer.Start() + defer gameServer.Stop() +}