Started work on new undo system
This commit is contained in:
parent
da3a764ae9
commit
be2ba1e285
8 changed files with 182 additions and 4 deletions
|
|
@ -43,6 +43,12 @@ namespace NetworkingObjects {
|
|||
bool NetObjManager::is_connected() const {
|
||||
return (server && !server->is_disconnected()) || (client && !client->is_disconnected());
|
||||
}
|
||||
void NetObjManager::set_netid_reassign_callback(const std::function<void(const NetworkingObjects::NetObjID& oldID, const NetworkingObjects::NetObjID& newID)>& newNetIDReassignCallback) {
|
||||
netIDReassignCallback = newNetIDReassignCallback;
|
||||
}
|
||||
void NetObjManager::set_netobj_destroy_callback(const std::function<void(const NetworkingObjects::NetObjID& netID)>& newDestroyCallback) {
|
||||
destroyCallback = newDestroyCallback;
|
||||
}
|
||||
void NetObjManager::send_multi_update_messsage(std::function<void()> captureSendBlock, SendUpdateType updateType, const std::shared_ptr<NetServer::ClientData>& specificClient) {
|
||||
if(is_connected()) {
|
||||
std::shared_ptr<MultiUpdateData> d = std::make_shared<MultiUpdateData>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue