WjWorld
Loading...
Searching...
No Matches
USessionManager Class Reference

#include <SessionManager.h>

Inheritance diagram for USessionManager:

Public Member Functions

 USessionManager ()
void Initialize ()
void Shutdown ()
bool CreateSession (const FRoomSettings &Settings)
bool FindSessions (int32 MaxSearchResults=100)
bool JoinSession (int32 RoomIndex)
bool StartSession ()
bool EndSession ()
bool DestroySession ()
bool IsInSession () const
bool IsHost () const
const FRoomSettingsGetLastRoomSettings () const
bool CreateMigrationSession (const FRoomSettings &Settings, const FString &MigrationTag)
bool FindMigrationSession (const FString &MigrationTag)

Public Attributes

FOnRoomCreated OnRoomCreatedEvent
FOnRoomsFound OnRoomsFoundEvent
FOnRoomJoined OnRoomJoinedEvent
FOnRoomDestroyed OnRoomDestroyedEvent
FOnRoomStarted OnRoomStartedEvent
FOnRoomEnded OnRoomEndedEvent

Detailed Description

Online Subsystem Session 관리 클래스

역할:

  • 세션(방) 생성, 검색, 참가, 종료
  • Online Subsystem과의 통신 담당
  • UI와 네트워크 로직 분리

Constructor & Destructor Documentation

◆ USessionManager()

USessionManager::USessionManager ( )

Member Function Documentation

◆ CreateMigrationSession()

bool USessionManager::CreateMigrationSession ( const FRoomSettings & Settings,
const FString & MigrationTag )

마이그레이션 세션 생성 (MIGRATION_TAG 커스텀 세팅 포함)

Parameters
Settings방 설정
MigrationTag마이그레이션 식별 태그
Returns
성공 여부

◆ CreateSession()

bool USessionManager::CreateSession ( const FRoomSettings & Settings)

세션(방) 생성

Parameters
Settings방 설정
Returns
성공 여부

◆ DestroySession()

bool USessionManager::DestroySession ( )

세션 나가기/방 파괴

Returns
성공 여부

◆ EndSession()

bool USessionManager::EndSession ( )

세션 종료 (InProgress 상태를 Ended로 변경) Play → WaitingRoom 복귀 시 호출하여 다시 StartSession 가능하게 함

Returns
성공 여부

◆ FindMigrationSession()

bool USessionManager::FindMigrationSession ( const FString & MigrationTag)

마이그레이션 세션 검색 (MIGRATION_TAG로 필터링)

Parameters
MigrationTag검색할 마이그레이션 태그
Returns
성공 여부

◆ FindSessions()

bool USessionManager::FindSessions ( int32 MaxSearchResults = 100)

세션(방) 검색

Parameters
MaxSearchResults최대 검색 결과 수
Returns
성공 여부

◆ GetLastRoomSettings()

const FRoomSettings & USessionManager::GetLastRoomSettings ( ) const
inline

마지막 방 설정 가져오기

◆ Initialize()

void USessionManager::Initialize ( )

초기화 (GameInstance에서 호출)

◆ IsHost()

bool USessionManager::IsHost ( ) const
inline

호스트인지 확인

◆ IsInSession()

bool USessionManager::IsInSession ( ) const
inline

현재 세션에 있는지 확인

◆ JoinSession()

bool USessionManager::JoinSession ( int32 RoomIndex)

세션(방) 참가

Parameters
RoomIndex검색 결과에서의 인덱스
Returns
성공 여부

◆ Shutdown()

void USessionManager::Shutdown ( )

정리

◆ StartSession()

bool USessionManager::StartSession ( )

세션 시작 (방장만 가능)

Returns
성공 여부

Member Data Documentation

◆ OnRoomCreatedEvent

FOnRoomCreated USessionManager::OnRoomCreatedEvent

◆ OnRoomDestroyedEvent

FOnRoomDestroyed USessionManager::OnRoomDestroyedEvent

◆ OnRoomEndedEvent

FOnRoomEnded USessionManager::OnRoomEndedEvent

◆ OnRoomJoinedEvent

FOnRoomJoined USessionManager::OnRoomJoinedEvent

◆ OnRoomsFoundEvent

FOnRoomsFound USessionManager::OnRoomsFoundEvent

◆ OnRoomStartedEvent

FOnRoomStarted USessionManager::OnRoomStartedEvent

The documentation for this class was generated from the following files: