package main import ( "github.com/mhaya" mhayaCron "github.com/mhaya/components/cron" mhayaMongo "github.com/mhaya/components/mongo" "github.com/mhaya/game/game_cluster/internal/data" "github.com/mhaya/game/game_cluster/internal/mdb" "github.com/mhaya/game/game_cluster/nodes/center/module/account" "github.com/mhaya/game/game_cluster/nodes/center/module/ops" ) func main() { app := mhaya.Configure( "./game/config/profile-gc.json", "m-center", false, mhaya.Cluster, ) app.Register(mhayaCron.New()) app.Register(data.New()) // 注册db组件 app.Register(mhayaMongo.NewComponent()) app.AddActors( &account.ActorAccount{}, &ops.ActorOps{}, &mdb.ActorDB{}, ) app.Startup() }