Sometimes, a game needs to create a game session but not to start it immediately.
For example, while waiting for players to join, the game session should be in state EOnlineSessionState::Pending, and when all the players have joined we can finally start the session which changes it's internal state to EOnlineSessionState::InProgress.
Currently, the node CreateAdvancedSessioncreates a game session immediately starts it.
So, I added the parameter bStartAfterCreate to the CreateAdvancedSession node (set to true by default so it doesn't break current implementations).
If bStartAfterCreate is set to true, the game session will be created and also started immediately.
If bStartAfterCreate is set to false, the game session will be created but not started.
Now, to start a game session I added the node StartAdvancedSession.
I didn't add a node to end a game session because such functionality already existed but was deprecated in b68199b1aad. However if needed, I can create another PR to re-enable the node EndSession.
Issue: https://github.com/mordentral/AdvancedSessionsPlugin/issues/31
Sometimes, a game needs to create a game session but not to start it immediately.
For example, while waiting for players to join, the game session should be in state
EOnlineSessionState::Pending
, and when all the players have joined we can finally start the session which changes it's internal state toEOnlineSessionState::InProgress
.Currently, the node
CreateAdvancedSession
creates a game session immediately starts it.So, I added the parameter
bStartAfterCreate
to theCreateAdvancedSession
node (set totrue
by default so it doesn't break current implementations).bStartAfterCreate
is set totrue
, the game session will be created and also started immediately.bStartAfterCreate
is set tofalse
, the game session will be created but not started.Now, to start a game session I added the node
StartAdvancedSession
.I didn't add a node to end a game session because such functionality already existed but was deprecated in b68199b1aad. However if needed, I can create another PR to re-enable the node
EndSession
.