mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 06:05:46 +03:00
nullsafe invokes
This commit is contained in:
parent
3b9f6592ef
commit
c2a9c7b226
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user