Ejemplo n.º 1
0
 internal static void InstallEvents(bool server)
 {
     Dispatch.Install <IPCountry_t>(x => OnIpCountryChanged?.Invoke(), server);
     Dispatch.Install <LowBatteryPower_t>(x => OnLowBatteryPower?.Invoke(x.MinutesBatteryLeft), server);
     Dispatch.Install <SteamShutdown_t>(x => SteamClosed(), server);
     Dispatch.Install <GamepadTextInputDismissed_t>(x => OnGamepadTextInputDismissed?.Invoke(x.Submitted), server);
 }
Ejemplo n.º 2
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));
 }