mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-19 02:05:28 +00:00
feat(master): an edit mode flag on a private instance, down to its world server
CreatePrivateZone carries editMode as one more byte, written only when set, so a plain private zone is sent as before. Master keeps it on the instance, starts the world server with -editmode 1, and gives a private instance's replacement (a reload or a live update) the same flag. Nothing sets it yet. A capped string now skips the characters it cut, so what follows it is read from the right place. A request to join a private instance that is still starting is answered once its world server is ready, instead of at once with an address nothing listens on yet. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -146,6 +146,9 @@ namespace MasterPackets {
|
||||
uint32_t zoneID{};
|
||||
uint32_t cloneID{};
|
||||
std::string password; // u32 length, then 1 byte per character
|
||||
// A GM's edit mode: the instance's world server constructs none of the zone's objects (docs/EditMode.md). Written
|
||||
// only when set, so a plain private zone stays as it always was
|
||||
uint8_t editMode{};
|
||||
|
||||
CreatePrivateZone() : LUBitStream(ServiceType::MASTER, MessageType::Master::CREATE_PRIVATE_ZONE) {}
|
||||
void Serialize(RakNet::BitStream& bitStream) const override;
|
||||
|
||||
Reference in New Issue
Block a user