xy hai 1 semana
pai
achega
83d78f7e64
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  1. 4 3
      src/server/game/ludo/event.go

+ 4 - 3
src/server/game/ludo/event.go

@@ -22,13 +22,14 @@ func handleEvents() {
 	// 	}
 	// }
 
+}
+
+func init() {
 	internal.Handler(&msg.SendColorSz{}, RecvPlayerSzNumber)
 
 	internal.Handler(&msg.SendRoleMove{}, RecvPlayerRoleMove)
 
 	internal.Handler(&msg.MatchLudo{}, RecvMatchLudo)
-}
-
-func init() {
 
+	print("init event!")
 }