public void CommandStart(Int64 userid, RoleInfoVo rolevo) { try { #if DEBUG XTrace.WriteLine("{0}:{1}", "SKILL_FIGHT_PUSH", "战斗技能升级推送"); #endif var s = Variable.OnlinePlayer.ContainsKey(userid); if (!s) { return; } var session = Variable.OnlinePlayer[userid] as TGGSession; if (session == null) { return; } var dic = new Dictionary <string, object> { { "role", rolevo } }; var aso = new ASObject(dic); var pv = session.InitProtocol((int)ModuleNumber.SKILL, (int)SkillCommand.SKILL_FIGHT_PUSH, (int)ResponseType.TYPE_SUCCESS, aso); session.SendData(pv); } catch (Exception ex) { XTrace.WriteException(ex); } }
/// <summary>技能学习组装数据</summary> public Dictionary <String, Object> DataBuild(int result, RoleInfoVo rolevo) { var dic = new Dictionary <string, object> { { "result", result }, { "role", rolevo } }; return(dic); }
/// <summary>组装数据 </summary> private Dictionary <string, object> BuildData(int type, RoleInfoVo role) { var dic = new Dictionary <string, object> { { "type", type }, { "role", role }, }; return(dic); }
/// <summary>武将属性保存组装数据</summary> public Dictionary <String, Object> RoleAttData(int result, int count, RoleInfoVo rolevo) { var dic = new Dictionary <string, object> { { "result", result }, { "growAddCount", count }, { "role", rolevo } }; return(dic); }
/// <summary>装备穿戴组装数据</summary> public Dictionary <String, Object> RoleLoadEquipData(int result, RoleInfoVo rolevo, EquipVo equipvo) { var dic = new Dictionary <string, object> { { "result", result }, { "role", rolevo }, { "equip", equipvo }, }; return(dic); }