public override void OnLibraryUpdated() { if (SupportedEvents.Contains(ApplicationEvent.OnLibraryUpdated)) { InvokeFunction(ApplicationEvent.OnLibraryUpdated.ToString()); } }
public override void OnLibraryUpdated() { if (SupportedEvents.Contains(ApplicationEvent.OnLibraryUpdated)) { Runtime.Execute("on_library_updated()"); } }
public override void OnApplicationStopped() { if (SupportedEvents.Contains(ApplicationEvent.OnApplicationStopped)) { Runtime.Execute("on_application_stopped()"); } }
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 }); } }
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 } }); } }
public override void OnGameUninstalled(Game game) { if (SupportedEvents.Contains(ApplicationEvent.OnGameUninstalled)) { Runtime.Execute("on_game_uninstalled(__game)", new Dictionary <string, object>() { { "__game", game } }); } }
public override void OnGameStarting(Game game) { if (SupportedEvents.Contains(ApplicationEvent.OnGameStarting)) { Runtime.Execute("OnGameStarting $__game", new Dictionary <string, object>() { { "__game", game } }); } }
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)); }