コード例 #1
0
 private void RefreshExcuteButton(ScNpcActive msg)
 {
     if (msg.result != 0)
     {
         moduleGlobal.ShowMessage(9854, msg.result);
         return;
     }
     RefreshExcuteButton();
 }
コード例 #2
0
ファイル: Module_Awake.cs プロジェクト: NoeCalmness/CoreFrame
 private void _Packet(ScNpcActive msg)
 {
     moduleGlobal.UnLockUI();
     if (msg.result == 0)
     {
         //已经激活的为取消,否则为激活
         if (activeNpc == (NpcTypeID)msg.npcId)
         {
             activeNpc = NpcTypeID.None;
         }
         else
         {
             activeNpc = (NpcTypeID)msg.npcId;
         }
     }
     DispatchModuleEvent(Response_NpcActive, msg);
 }