public AsyncDataItem GetKuaFuLineDataList(int mapCode)
 {
     return(new AsyncDataItem(KuaFuEventTypes.Other, new object[]
     {
         KuaFuServerManager.GetKuaFuLineDataList(mapCode)
     }));
 }
Beispiel #2
0
 public void PlatFormChat(int serverId, byte[] bytes)
 {
     try
     {
         AsyncDataItem evItem = new AsyncDataItem(KuaFuEventTypes.PlatFormChat, new object[]
         {
             bytes
         });
         HashSet <int> SpecialLineSet = new HashSet <int>();
         lock (this.Mutex)
         {
             foreach (KeyValuePair <int, List <RebornBossConfig> > item in this.RebornBossConfigDict)
             {
                 List <KuaFuLineData> lineList = KuaFuServerManager.GetKuaFuLineDataList(item.Key);
                 if (null != lineList)
                 {
                     foreach (KuaFuLineData line in lineList)
                     {
                         SpecialLineSet.Add(line.ServerId);
                     }
                 }
             }
         }
         foreach (int lineServerId in SpecialLineSet)
         {
             if (serverId != lineServerId)
             {
                 ClientAgentManager.Instance().PostAsyncEvent(lineServerId, this.EvItemGameType, evItem);
             }
         }
     }
     catch (Exception ex)
     {
         LogManager.WriteException(ex.ToString());
     }
 }