25 #ifndef NRG_SERVER_STATE_H
26 #define NRG_SERVER_STATE_H
65 uint16_t last_sent_id;
bool onRecvPacket(Packet &p, PacketFlags f)
Called when a Packet is recieved and this is the active State, f shows if the packet was out-of-order...
Abstract base class for Message.
Definition: nrg_message.h:36
Contains Message classes and functionality for two-way RPC between Server and Client.
bool init(Client *, Server *, Player *)
Called to (re)initialise this State instance, for Client-side c won't be null, but s and p will...
Interface for wrapping ConnectionOut with rate-limiting functionality.
Definition: nrg_state.h:61
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
bool needsUpdate() const
Called to see if the State would like to be updated.
Definition: nrg_server_state.h:40
Contains functionality for managing the storage and reliable transmission or Messages.
Class that stores Messages to be sent, and parses received messages from packets, running their callb...
Definition: nrg_message_manager.h:37
The main server-side class of the library.
Definition: nrg_server.h:44
State for default game protocol, server-side.
Definition: nrg_server_state.h:50
Abstract class that represents a protocol followed by the Server and Client.
Definition: nrg_state.h:73
StateResult update(StateConnectionOut &out, StateFlags f)
Called to update the state (or on a timeout) allowing it to optionally send some Packets using out...
Definition: nrg_snapshot.h:62
bool needsUpdate() const
Called to see if the State would like to be updated.
StateResult update(StateConnectionOut &out, StateFlags f)
Called to update the state (or on a timeout) allowing it to optionally send some Packets using out...
bool init(Client *, Server *, Player *)
Called to (re)initialise this State instance, for Client-side c won't be null, but s and p will...
bool onRecvPacket(Packet &p, PacketFlags f)
Called when a Packet is recieved and this is the active State, f shows if the packet was out-of-order...
State for default handshake protocol, server-side.
Definition: nrg_server_state.h:36
The main client-side nrg class.
Definition: nrg_client.h:42
Common defines and includes used by all the other nrg header files.
Functionality related to the State abstract class.
Classes to hold a specific snapshot in time of Entity Field values.