![]() |
FastEngine 0.9.4
A multiplayer oriented 2D engine made with Vulkan.
|
Public Types | |
| using | SyncTable = std::unordered_map<Identity, PerClientData, IdentityHash> |
Public Member Functions | |
| PerClientSyncContext (PerClientSyncContext const &)=delete | |
| PerClientSyncContext (PerClientSyncContext &&) noexcept=default | |
| PerClientSyncContext & | operator= (PerClientSyncContext const &)=delete |
| PerClientSyncContext & | operator= (PerClientSyncContext &&) noexcept=default |
| void | clear () |
| void | clientsCheckup (ClientList const &clients, bool force, fge::EnumFlags_t< PerClientConfigs > config=CLIENTCONFIG_DEFAULT) |
| void | setModificationFlag () |
| bool | setModificationFlag (Identity const &client) |
| bool | clearModificationFlag (Identity const &client) |
| bool | isModified (Identity const &client) const |
| void | setRequireExplicitUpdateFlag (Identity const &client) |
| bool | isRequiringExplicitUpdate (Identity const &client) const |
| PerClientData & | newClient (Identity const &client, fge::EnumFlags_t< PerClientConfigs > config=CLIENTCONFIG_DEFAULT) |
| void | delClient (Identity const &client) |
| bool | hasClient (Identity const &client) const |
| PerClientData const * | getClientData (Identity const &client) const |
| PerClientData * | getClientData (Identity const &client) |
| SyncTable::const_iterator | begin () const |
| SyncTable::iterator | begin () |
| SyncTable::const_iterator | end () const |
| SyncTable::iterator | end () |
Protected Member Functions | |
| virtual void | createClientData (std::shared_ptr< void > &ptr) const |
| virtual void | applyClientData (std::shared_ptr< void > &ptr) const |