mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-12 06:38:01 +03:00
nullsafe invokes
This commit is contained in:
parent
3b9f6592ef
commit
c2a9c7b226
@ -27,8 +27,8 @@ namespace Steamworks
|
|||||||
|
|
||||||
internal static void InstallEvents()
|
internal static void InstallEvents()
|
||||||
{
|
{
|
||||||
new Event<DlcInstalled_t>( x => OnDlcInstalled( x.AppID ) );
|
new Event<DlcInstalled_t>( x => OnDlcInstalled?.Invoke( x.AppID ) );
|
||||||
new Event<NewUrlLaunchParameters_t>( x => OnNewLaunchParameters() );
|
new Event<NewUrlLaunchParameters_t>( x => OnNewLaunchParameters?.Invoke() );
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -26,10 +26,10 @@ namespace Steamworks
|
|||||||
|
|
||||||
internal static void InstallEvents()
|
internal static void InstallEvents()
|
||||||
{
|
{
|
||||||
new Event<IPCountry_t>( x => OnIpCountryChanged() );
|
new Event<IPCountry_t>( x => OnIpCountryChanged?.Invoke() );
|
||||||
new Event<LowBatteryPower_t>( x => OnLowBatteryPower( x.MinutesBatteryLeft ) );
|
new Event<LowBatteryPower_t>( x => OnLowBatteryPower?.Invoke( x.MinutesBatteryLeft ) );
|
||||||
new Event<SteamShutdown_t>( x => OnSteamShutdown() );
|
new Event<SteamShutdown_t>( x => OnSteamShutdown?.Invoke() );
|
||||||
new Event<GamepadTextInputDismissed_t>( x => OnGamepadTextInputDismissed( x.Submitted ) );
|
new Event<GamepadTextInputDismissed_t>( x => OnGamepadTextInputDismissed?.Invoke( x.Submitted ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user