//void _Packet(ScTeamReborn p) //{ // Logger.LogDetail("Team member [{0}] reborn", p.guid); // var memberData = members.GetValue<PTeamMemberInfo>(p.guid); // if (memberData == null) // { // Logger.LogError("Team member [{0}] cannot be finded", p.guid); // return; // } // DispatchModuleEvent(EventMemberReborn, memberData); //} void _Packet(ScTeamRequestEnd p) { result = p.result; ended = true; Logger.LogInfo("Team Battle End: result: {0}", p.result); ObjectManager.enableUpdate = true; DispatchModuleEvent(EventEnd); }
void _Packet(ScTeamRequestEnd p) { // Clear team data if battle ended ResetTeamData(); #region NetStat statistic #if NETSTAT var r = moduleTeam.useGameSession ? session.receiver : moduleTeam.receiver; if (r != null) { r.pauseNetStatistic = true; } #endif #endregion }