entry point to the application
This commit is contained in:
Justin T 2019-11-27 01:28:20 -06:00
parent 4eebf77ee6
commit d341f2dacc
1 changed files with 21 additions and 0 deletions

21
habbgo/main.go Normal file
View File

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