private void fire_ModeStarted(ModeTypes type, string title)
 {
     if (ModeStarted != null)
     {
         try
         {
             ModeStarted.Invoke(this, new ModeEventArgs(type, title));
         }
         catch { }
     }
 }
Esempio n. 2
0
        static Game()
        {
            Events.GameMode.Finished.Subscribe(data =>
            {
                var eventArgs = new GameModeFinishedEventArgs((Network.NetworkGroup)data.NetworkGroup_);
                ModeFinished?.Invoke(null, eventArgs);
            });

            Events.GameMode.ModeStarted.Subscribe(data =>
            {
                ModeStarted?.Invoke(null, System.EventArgs.Empty);
            });
        }
Esempio n. 3
0
    static void ModeStartedHelper()
    {
        s_EffectsUnderway = false;

        ModeStarted?.Invoke(s_IsInPlayMode);
    }