コード例 #1
0
ファイル: client.go プロジェクト: Jordanzuo/GameServer_Go
// 注册需要给客户端访问的模块、方法
func init() {
	rpc.RegisterFunction(new(PlayerModule))
}
コード例 #2
0
ファイル: test.go プロジェクト: Jordanzuo/GameServer_Go
// 注册需要给客户端访问的模块、方法
func init() {
	rpc.RegisterFunction(new(TestModule))
}