Beispiel #1
0
 public void Game_Exit()
 {
     try
     {
         if (mSingleModInterfaceInstance != null)
         {
             mSingleModInterfaceInstance.Game_Exit();
         }
         else
         {
             ModInterfaces.ForEach(M => ThreadPool.QueueUserWorkItem(SubM => { ((ModInterface)SubM).Game_Exit(); }));
         }
     }
     catch (Exception Error)
     {
         mGameAPI.Console_Write($"Game_Exit(Error): {Error}");
     }
 }
Beispiel #2
0
 public void Game_Event(CmdId eventId, ushort seqNr, object data)
 {
     try
     {
         if (mSingleModInterfaceInstance != null)
         {
             mSingleModInterfaceInstance.Game_Event(eventId, seqNr, data);
         }
         else
         {
             ModInterfaces.ForEach(M => ThreadPool.QueueUserWorkItem(SubM => { ((ModInterface)SubM).Game_Event(eventId, seqNr, data); }));
         }
     }
     catch (Exception Error)
     {
         mGameAPI.Console_Write($"Game_Event(Error): {Error}");
     }
 }