Beispiel #1
0
 internal static void InstallEvents()
 {
     IPCountry_t.Install(x => OnIpCountryChanged?.Invoke());
     LowBatteryPower_t.Install(x => OnLowBatteryPower?.Invoke(x.MinutesBatteryLeft));
     SteamShutdown_t.Install(x => SteamClosed());
     GamepadTextInputDismissed_t.Install(x => OnGamepadTextInputDismissed?.Invoke(x.Submitted));
 }
Beispiel #2
0
 internal static void InstallEvents()
 {
     IPCountry_t.Install((IPCountry_t x) => {
         Action onIpCountryChanged = SteamUtils.OnIpCountryChanged;
         if (onIpCountryChanged != null)
         {
             onIpCountryChanged();
         }
         else
         {
         }
     }, false);
     LowBatteryPower_t.Install((LowBatteryPower_t x) => {
         Action <int> onLowBatteryPower = SteamUtils.OnLowBatteryPower;
         if (onLowBatteryPower != null)
         {
             onLowBatteryPower(x.MinutesBatteryLeft);
         }
         else
         {
         }
     }, false);
     SteamShutdown_t.Install((SteamShutdown_t x) => {
         Action onSteamShutdown = SteamUtils.OnSteamShutdown;
         if (onSteamShutdown != null)
         {
             onSteamShutdown();
         }
         else
         {
         }
     }, false);
     GamepadTextInputDismissed_t.Install((GamepadTextInputDismissed_t x) => {
         Action <bool> onGamepadTextInputDismissed = SteamUtils.OnGamepadTextInputDismissed;
         if (onGamepadTextInputDismissed != null)
         {
             onGamepadTextInputDismissed(x.Submitted);
         }
         else
         {
         }
     }, false);
 }