本文整理汇总了Golang中server/libs/rpc.Servicer.RegisterCallback方法的典型用法代码示例。如果您正苦于以下问题:Golang Servicer.RegisterCallback方法的具体用法?Golang Servicer.RegisterCallback怎么用?Golang Servicer.RegisterCallback使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类server/libs/rpc.Servicer
的用法示例。
在下文中一共展示了Servicer.RegisterCallback方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: RegisterCallback
func (t *DbBridge) RegisterCallback(s rpc.Servicer) {
s.RegisterCallback("LookLetterBack", t.LookLetterBack)
s.RegisterCallback("CreateRoleBack", t.CreateRoleBack)
s.RegisterCallback("RoleInUse", t.RoleInUse)
s.RegisterCallback("SelectUserBak", t.SelectUserBak)
s.RegisterCallback("SavePlayerBak", t.SavePlayerBak)
s.RegisterCallback("UpdateUserInfo", t.UpdateUserInfo)
}
示例2: RegisterCallback
func (t *AreaBridge) RegisterCallback(s rpc.Servicer) {
s.RegisterCallback("GetAreaBak", t.GetAreaBak)
s.RegisterCallback("AddPlayerBak", t.AddPlayerBak)
s.RegisterCallback("RemovePlayerBak", t.RemovePlayerBak)
}
示例3: RegisterCallback
func (t *LetterSystem) RegisterCallback(s rpc.Servicer) {
s.RegisterCallback("DeleteAllLetter", t.DeleteAllLetter)
s.RegisterCallback("DeleteLetter", t.DeleteLetter)
s.RegisterCallback("RecvAppendix", t.RecvAppendix)
s.RegisterCallback("ReadLetter", t.ReadLetter)
}
示例4: RegisterCallback
func (t *Session) RegisterCallback(s rpc.Servicer) {
s.RegisterCallback("GetBaseAndId", t.GetBaseAndId)
}
示例5: RegisterCallback
func (t *Account) RegisterCallback(s rpc.Servicer) {
s.RegisterCallback("Login", t.Login)
}
示例6: RegisterCallback
func (t *PlayerList) RegisterCallback(s rpc.Servicer) {
s.RegisterCallback("UpdatePlayer", t.UpdatePlayer)
s.RegisterCallback("GetPlayerBase", t.GetPlayerBase)
}
示例7: RegisterCallback
func (t *TeleportHelper) RegisterCallback(s rpc.Servicer) {
s.RegisterCallback("TeleportPlayerByBase", t.TeleportPlayerByBase)
s.RegisterCallback("SyncBaseWithSceneData", t.SyncBaseWithSceneData)
}
示例8: RegisterCallback
func (t *Login) RegisterCallback(s rpc.Servicer) {
s.RegisterCallback("AddClient", t.AddClient)
s.RegisterCallback("SwitchPlayer", t.SwitchPlayer)
}
示例9: RegisterCallback
func (t *Account) RegisterCallback(s rpc.Servicer) {
s.RegisterCallback("CheckAccount", t.CheckAccount)
s.RegisterCallback("ClearStatus", t.ClearStatus)
s.RegisterCallback("LoadUser", t.LoadUser)
s.RegisterCallback("CreateUser", t.CreateUser)
s.RegisterCallback("GetUserInfo", t.GetUserInfo)
s.RegisterCallback("ClearPlayerStatus", t.ClearPlayerStatus)
s.RegisterCallback("SavePlayer", t.SavePlayer)
}
示例10: RegisterCallback
func (t *S2CHelper) RegisterCallback(s rpc.Servicer) {
s.RegisterCallback("Call", t.Call)
}
示例11: RegisterCallback
func (t *Database) RegisterCallback(s rpc.Servicer) {
s.RegisterCallback("RecvLetter", t.RecvLetter)
s.RegisterCallback("LookLetter", t.LookLetter)
s.RegisterCallback("QueryLetter", t.QueryLetter)
s.RegisterCallback("SendSystemLetter", t.SendSystemLetter)
s.RegisterCallback("Log", t.Log)
s.RegisterCallback("Count", t.Count)
s.RegisterCallback("InsertRows", t.InsertRows)
s.RegisterCallback("InsertRow", t.InsertRow)
s.RegisterCallback("DeleteRow", t.DeleteRow)
s.RegisterCallback("UpdateRow", t.UpdateRow)
s.RegisterCallback("QueryRow", t.QueryRow)
s.RegisterCallback("QueryRows", t.QueryRows)
s.RegisterCallback("QuerySql", t.QuerySql)
s.RegisterCallback("ExecSql", t.ExecSql)
s.RegisterCallback("SaveObject", t.SaveObject)
s.RegisterCallback("UpdateObject", t.UpdateObject)
s.RegisterCallback("LoadObject", t.LoadObject)
s.RegisterCallback("LoadObjectByName", t.LoadObjectByName)
s.RegisterCallback("DeleteObject", t.DeleteObject)
}
示例12: RegisterCallback
func (gd *GlobalDataHelper) RegisterCallback(s rpc.Servicer) {
s.RegisterCallback("CreateGlobalData", gd.CreateGlobalData)
//数据操作
s.RegisterCallback("GlobalDataAdd", gd.GlobalDataAdd)
s.RegisterCallback("GlobalDataSet", gd.GlobalDataSet)
s.RegisterCallback("GlobalDataSetGrid", gd.GlobalDataSetGrid)
s.RegisterCallback("GlobalDataSetRow", gd.GlobalDataSetRow)
s.RegisterCallback("GlobalDataAddRow", gd.GlobalDataAddRow)
s.RegisterCallback("GlobalDataAddRowValues", gd.GlobalDataAddRowValues)
s.RegisterCallback("GlobalDataDelRow", gd.GlobalDataDelRow)
s.RegisterCallback("GlobalDataClearRecord", gd.GlobalDataClearRecord)
//更新
s.RegisterCallback("GlobalDataAddData", gd.GlobalDataAddData)
s.RegisterCallback("GlobalDataUpdate", gd.GlobalDataUpdate)
s.RegisterCallback("GlobalDataRecAppend", gd.GlobalDataRecAppend)
s.RegisterCallback("GlobalDataRecDelete", gd.GlobalDataRecDelete)
s.RegisterCallback("GlobalDataRecClear", gd.GlobalDataRecClear)
s.RegisterCallback("GlobalDataRecModify", gd.GlobalDataRecModify)
s.RegisterCallback("GlobalDataRecSetRow", gd.GlobalDataRecSetRow)
}
示例13: RegisterCallback
func (t *TaskLogic) RegisterCallback(s rpc.Servicer) {
s.RegisterCallback("Submit", t.Submit)
}
示例14: RegisterCallback
func (t *Sync) RegisterCallback(s rpc.Servicer) {
s.RegisterCallback("SyncPlayer", t.SyncPlayer)
}