38 void markUpdated(
bool b);
39 bool readFromPacket(
Packet& p);
40 void writeToPacket(
Packet& p)
const;
54 predict_funcs.push_back(std::move(func));
57 for(
auto& f : predict_funcs){
58 f(*static_cast<CRTP* const>(
this));
62 std::vector<std::function<void(CRTP&)>> predict_funcs;
Class for storing data to be sent / received across the network.
Definition: nrg_packet.h:58
Represents a connected client on the server.
Definition: nrg_player.h:34
Contains the Player Interface used server-side.
Contains classes related to the Field template class that encapsulates data to be replicated across t...
Abstract class used by anything that contains Fields, like Entity or InputBase.
Definition: nrg_field.h:81
Common defines and includes used by all the other nrg header files.