diff --git a/Source/SteamIntegrationKit/Functions/Matchmaking/SIK_JoinLobby_AsyncFunction.cpp b/Source/SteamIntegrationKit/Functions/Matchmaking/SIK_JoinLobby_AsyncFunction.cpp index 0bfde50..942d47a 100644 --- a/Source/SteamIntegrationKit/Functions/Matchmaking/SIK_JoinLobby_AsyncFunction.cpp +++ b/Source/SteamIntegrationKit/Functions/Matchmaking/SIK_JoinLobby_AsyncFunction.cpp @@ -19,19 +19,18 @@ void USIK_JoinLobby_AsyncFunction::OnLobbyEnter(LobbyEnter_t* LobbyEnter, bool b { if(bIOFailure) { - OnFailure.Broadcast(ESIK_Result::ResultFail, false, ESIK_ChatRoomEnterResponse::None); + OnFailure.Broadcast(false, ESIK_ChatRoomEnterResponse::ChatRoomEnterResponseError); } else { TEnumAsByte ChatRoomEnterResponse = static_cast(Param.m_EChatRoomEnterResponse); - TEnumAsByte Result = static_cast(Param.m_EChatRoomEnterResponse); if(Param.m_EChatRoomEnterResponse == k_EChatRoomEnterResponseSuccess) { - OnSuccess.Broadcast(Result, Param.m_bLocked, ChatRoomEnterResponse); + OnSuccess.Broadcast(Param.m_bLocked, ChatRoomEnterResponse); } else { - OnFailure.Broadcast(ESIK_Result::ResultFail, false, ChatRoomEnterResponse); + OnFailure.Broadcast(false, ChatRoomEnterResponse); } } }); @@ -45,7 +44,7 @@ void USIK_JoinLobby_AsyncFunction::Activate() Super::Activate(); if(!SteamMatchmaking()) { - OnFailure.Broadcast(ESIK_Result::ResultFail, false, ESIK_ChatRoomEnterResponse::None); + OnFailure.Broadcast(false, ESIK_ChatRoomEnterResponse::ChatRoomEnterResponseError); SetReadyToDestroy(); MarkAsGarbage(); return; @@ -53,7 +52,7 @@ void USIK_JoinLobby_AsyncFunction::Activate() CallbackHandle = SteamMatchmaking()->JoinLobby(Var_LobbyId.GetSteamID()); if(CallbackHandle == k_uAPICallInvalid) { - OnFailure.Broadcast(ESIK_Result::ResultFail, false, ESIK_ChatRoomEnterResponse::None); + OnFailure.Broadcast(false, ESIK_ChatRoomEnterResponse::ChatRoomEnterResponseError); SetReadyToDestroy(); MarkAsGarbage(); return; diff --git a/Source/SteamIntegrationKit/Functions/Matchmaking/SIK_JoinLobby_AsyncFunction.h b/Source/SteamIntegrationKit/Functions/Matchmaking/SIK_JoinLobby_AsyncFunction.h index bac57d4..2f67868 100644 --- a/Source/SteamIntegrationKit/Functions/Matchmaking/SIK_JoinLobby_AsyncFunction.h +++ b/Source/SteamIntegrationKit/Functions/Matchmaking/SIK_JoinLobby_AsyncFunction.h @@ -18,7 +18,7 @@ THIRD_PARTY_INCLUDES_END #include "Kismet/BlueprintAsyncActionBase.h" #include "SIK_JoinLobby_AsyncFunction.generated.h" -DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams(FOnJoinLobby, TEnumAsByte, Result, bool, bLocked, TEnumAsByte, ChatRoomEnterResponse); +DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams(FOnJoinLobby, bool, bLocked, TEnumAsByte, ChatRoomEnterResponse); UCLASS() class STEAMINTEGRATIONKIT_API USIK_JoinLobby_AsyncFunction : public UBlueprintAsyncActionBase {