Bomberman Multiplayer
Authoritative multiplayer networking layer for Bomberman.
Loading...
Searching...
No Matches
ServerSnapshot.h
Go to the documentation of this file.
1#ifndef BOMBERMAN_SERVERSNAPSHOT_H
2#define BOMBERMAN_SERVERSNAPSHOT_H
3
4#include "Net/NetCommon.h"
5
12namespace bomberman::server
13{
14 struct ServerState;
15
17 [[nodiscard]]
18 bool shouldBroadcastSnapshot(const ServerState& state);
19
21 [[nodiscard]]
22 net::MsgSnapshot buildSnapshot(const ServerState& state);
23} // namespace bomberman::server
24
25#endif // BOMBERMAN_SERVERSNAPSHOT_H
Shared client/server wire contract for the multiplayer protocol.
Authoritative dedicated-server state, match flow, and fixed-tick simulation support.
Definition ServerBombs.cpp:21
bool shouldBroadcastSnapshot(const ServerState &state)
Returns true when the current tick should broadcast a snapshot.
Definition ServerSnapshot.cpp:25
net::MsgSnapshot buildSnapshot(const ServerState &state)
Builds a MsgSnapshot from the current round state.
Definition ServerSnapshot.cpp:31