-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: postpone onPlayerConnect callback until client confirms they hav…
…e received their finalization packet.
- Loading branch information
Showing
4 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
code/framework/src/networking/messages/client_initialise_player.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* MafiaHub OSS license | ||
* Copyright (c) 2021-2023, MafiaHub. All rights reserved. | ||
* | ||
* This file comes from MafiaHub, hosted at https://github.com/MafiaHub/Framework. | ||
* See LICENSE file in the source repository for information regarding licensing. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "messages.h" | ||
|
||
#include <BitStream.h> | ||
|
||
#include <flecs/flecs.h> | ||
|
||
namespace Framework::Networking::Messages { | ||
class ClientInitPlayer final: public IMessage { | ||
public: | ||
uint8_t GetMessageID() const override { | ||
return GAME_INIT_PLAYER; | ||
} | ||
|
||
void Serialize(SLNet::BitStream *bs, bool write) override { | ||
|
||
} | ||
|
||
bool Valid() const override { | ||
return true; | ||
} | ||
}; | ||
} // namespace Framework::Networking::Messages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters