mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-20 02:35:28 +00:00
Merge exp/seamless-transfer-2: seamless instance moves keep the player in place
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -71,6 +71,13 @@ public:
|
||||
void SetLastCustomBuild(const std::u16string& tokenizedLOTList) { m_LastRocketConfig = tokenizedLOTList; }
|
||||
bool GetIsLanding() const { return m_IsLanding; }
|
||||
|
||||
/**
|
||||
* Constructions written while this is set tell the client there is no world transition to show (state 3 instead
|
||||
* of 0 or the rocket landing). For the one construction a client gets of its own player after a seamless instance
|
||||
* move (docs/SeamlessTransfer.md).
|
||||
*/
|
||||
void SetKeepClientScene(const bool value) { m_KeepClientScene = value; }
|
||||
|
||||
/**
|
||||
* Find a player's rocket
|
||||
* @param player the entity that triggered the event
|
||||
@@ -435,6 +442,11 @@ private:
|
||||
*/
|
||||
bool m_IsLanding;
|
||||
|
||||
/**
|
||||
* Whether constructions say there is no world transition to show (SetKeepClientScene)
|
||||
*/
|
||||
bool m_KeepClientScene = false;
|
||||
|
||||
/**
|
||||
* The configuration of the last used rocket, essentially a string of LOTs separated by commas
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user