From d341f2dacc5892e6462bb178afde38304b3f06dc Mon Sep 17 00:00:00 2001 From: Justin T <37750742+jtieri@users.noreply.github.com> Date: Wed, 27 Nov 2019 01:28:20 -0600 Subject: [PATCH] main.go entry point to the application --- habbgo/main.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 habbgo/main.go 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() +}