示例#1
0
文件: CopyMap.cs 项目: chenchungit/ky
 public void AddGuangMuEvent(int guangMuID, int show)
 {
     MapAIEvent guangMuEvent = new MapAIEvent() { GuangMuID = guangMuID, Show = show };
     lock (EventQueue)
     {
         EventQueue.Add(guangMuEvent);
     }
 }
示例#2
0
 public void PlayMapEvents(GameClient client)
 {
     lock (this.EventQueue)
     {
         foreach (object obj in this.EventQueue)
         {
             if (obj is MapAIEvent)
             {
                 MapAIEvent e         = (MapAIEvent)obj;
                 int        guangMuID = e.GuangMuID;
                 int        show      = e.Show;
                 client.sendCmd(667, string.Format("{0}:{1}", guangMuID, show), false);
             }
         }
     }
 }
示例#3
0
 /// <summary>
 /// 播放地图事件
 /// </summary>
 /// <param name="client"></param>
 public void PlayMapEvents(GameClient client)
 {
     //重发AI相关的指令队列
     lock (EventQueue)
     {
         foreach (var obj in EventQueue)
         {
             if (obj is MapAIEvent)
             {
                 MapAIEvent e         = (MapAIEvent)obj;
                 int        guangMuID = e.GuangMuID;
                 int        show      = e.Show;
                 client.sendCmd((int)TCPGameServerCmds.CMD_SPR_MAPAIEVENT, string.Format("{0}:{1}", guangMuID, show));
             }
         }
     }
 }