nullsafe invokes

This commit is contained in:
Garry Newman 2019-04-14 21:38:36 +01:00
parent 3b9f6592ef
commit c2a9c7b226
2 changed files with 6 additions and 6 deletions

View File

@ -27,8 +27,8 @@ internal static Internal.ISteamApps steamapps
internal static void InstallEvents()
{
new Event<DlcInstalled_t>( x => OnDlcInstalled( x.AppID ) );
new Event<NewUrlLaunchParameters_t>( x => OnNewLaunchParameters() );
new Event<DlcInstalled_t>( x => OnDlcInstalled?.Invoke( x.AppID ) );
new Event<NewUrlLaunchParameters_t>( x => OnNewLaunchParameters?.Invoke() );
}
/// <summary>

View File

@ -26,10 +26,10 @@ internal static Internal.ISteamUtils steamutils
internal static void InstallEvents()
{
new Event<IPCountry_t>( x => OnIpCountryChanged() );
new Event<LowBatteryPower_t>( x => OnLowBatteryPower( x.MinutesBatteryLeft ) );
new Event<SteamShutdown_t>( x => OnSteamShutdown() );
new Event<GamepadTextInputDismissed_t>( x => OnGamepadTextInputDismissed( x.Submitted ) );
new Event<IPCountry_t>( x => OnIpCountryChanged?.Invoke() );
new Event<LowBatteryPower_t>( x => OnLowBatteryPower?.Invoke( x.MinutesBatteryLeft ) );
new Event<SteamShutdown_t>( x => OnSteamShutdown?.Invoke() );
new Event<GamepadTextInputDismissed_t>( x => OnGamepadTextInputDismissed?.Invoke( x.Submitted ) );
}
/// <summary>