Zone Data
Each zone in a GameServerProxy can have its own persistent data that's not shared with other zones in the proxy.
Unreal Setup
Setting up Zone Data is simple:
- Add a
URedwoodSyncComponentto yourAGameStateclass. - Set the value of its
URedwoodSyncComponent::RedwoodIdvariable tozone. - Set the value of its
URedwoodSyncComponent::bPersistChangesvariable totrue. - You can change
URedwoodSyncComponent::DataVariableNameto match the name of the struct variable that should store the Zone Data.
If you want to persist changes to the struct to the database, call the matching URedwoodSyncComponent::MarkDataDirty() function.