Difference between revisions of "CBlob::Sync"

From King Arthur's Gold Wiki
Jump to: navigation, search
(Created page with "<onlyinclude> </onlyinclude> <syntaxhighlight lang="cpp"> void Sync(const string &in name, bool onlyServer) </syntaxhighlight> Object method of: CBlob [[Category:Scripting...")
 
m (Short description)
 
Line 1: Line 1:
 
<onlyinclude>
 
<onlyinclude>
 
+
Synchronizes a property value over the network.
 
</onlyinclude>
 
</onlyinclude>
 +
 +
Call this method to synchronize a value stored with one of the set functions. The value is only synchronized once when called. No actual synchronization will take place over the network if the value has not changed since the last time it was synchronized.
 +
 +
This can be called both by a server and by a client, as suggested by the second parameter.
  
 
<syntaxhighlight lang="cpp">
 
<syntaxhighlight lang="cpp">

Latest revision as of 15:46, 31 January 2016

Synchronizes a property value over the network.


Call this method to synchronize a value stored with one of the set functions. The value is only synchronized once when called. No actual synchronization will take place over the network if the value has not changed since the last time it was synchronized.

This can be called both by a server and by a client, as suggested by the second parameter.

void Sync(const string &in name, bool onlyServer)

Object method of: CBlob