public override void OnLibraryUpdated()
 {
     if (SupportedEvents.Contains(ApplicationEvent.OnLibraryUpdated))
     {
         InvokeFunction(ApplicationEvent.OnLibraryUpdated.ToString());
     }
 }
Exemple #2
0
 public override void OnLibraryUpdated()
 {
     if (SupportedEvents.Contains(ApplicationEvent.OnLibraryUpdated))
     {
         Runtime.Execute("on_library_updated()");
     }
 }
Exemple #3
0
 public override void OnApplicationStopped()
 {
     if (SupportedEvents.Contains(ApplicationEvent.OnApplicationStopped))
     {
         Runtime.Execute("on_application_stopped()");
     }
 }
Exemple #4
0
 public override void OnApplicationStarted()
 {
     if (SupportedEvents.Contains(ApplicationEvent.OnApplicationStarted))
     {
         Runtime.Execute("OnApplicationStarted");
     }
 }
 public override void OnGameSelected(OnGameSelectedEventArgs args)
 {
     if (SupportedEvents.Contains(ApplicationEvent.OnGameSelected))
     {
         InvokeFunction(ApplicationEvent.OnGameSelected.ToString(), new List <object> {
             args
         });
     }
 }
Exemple #6
0
 public override void OnGameSelected(GameSelectionEventArgs args)
 {
     if (SupportedEvents.Contains(ApplicationEvent.OnGameSelected))
     {
         Runtime.Execute("on_game_selected(__event_args)", new Dictionary <string, object>()
         {
             { "__event_args", args }
         });
     }
 }
Exemple #7
0
 public override void OnGameUninstalled(Game game)
 {
     if (SupportedEvents.Contains(ApplicationEvent.OnGameUninstalled))
     {
         Runtime.Execute("on_game_uninstalled(__game)", new Dictionary <string, object>()
         {
             { "__game", game }
         });
     }
 }
Exemple #8
0
 public override void OnGameStarting(Game game)
 {
     if (SupportedEvents.Contains(ApplicationEvent.OnGameStarting))
     {
         Runtime.Execute("OnGameStarting $__game", new Dictionary <string, object>()
         {
             { "__game", game }
         });
     }
 }
Exemple #9
0
 public override void OnGameStopped(Game game, long ellapsedSeconds)
 {
     if (SupportedEvents.Contains(ApplicationEvent.OnGameStopped))
     {
         Runtime.Execute("on_game_stopped(__game, __ellapsed_seconds)", new Dictionary <string, object>()
         {
             { "__game", game },
             { "__ellapsed_seconds", ellapsedSeconds }
         });
     }
 }
 private bool EventSupported(string eventName)
 {
     return(SupportedEvents.Contains(eventName));
 }