15 lines
195 B
Go
Raw Normal View History

2024-01-14 11:22:14 +00:00
package main
import (
"server/core"
2024-01-15 16:08:26 +00:00
"server/packet"
2024-01-14 11:22:14 +00:00
)
2024-01-15 16:08:26 +00:00
var server = core.New()
2024-01-14 11:22:14 +00:00
2024-01-15 16:08:26 +00:00
func main() {
server.AddHandler(packet.PING, ping)
server.AddHandler(packet.LOGIN, login)
2024-01-14 11:22:14 +00:00
server.Run(4242)
}