← Back to Index
SyncWorldClocksPacket (344)
Initializes and syncs world clocks from the server to clients. (Currently disabled)
Sent from the server when a client joins to initialize all world clocks for the client and periodically to all clients to keep them in sync.
It is also sent to all clients when a world clock's paused state changes or when time markers are added or removed.
| Field Name |
Type |
Field Index |
Description |
| Data (Required) |
oneOf |
0 |
Variant data specific to what needs to be synced. |
oneOf<SyncStateData, InitializeRegistryData, AddTimeMarkerData, RemoveTimeMarkerData>:
| Control Value [uint32] |
Type |
Details |
| 0 |
SyncStateData |
- |
| 1 |
InitializeRegistryData |
- |
| 2 |
AddTimeMarkerData |
- |
| 3 |
RemoveTimeMarkerData |
- |
SyncStateData (Variant 0)
| Field Name |
Type |
Field Index |
Description |
| ClockData (Required) |
array<SyncWorldClockStateData> |
0 |
|
SyncWorldClockStateData (Array Item)
| Field Name |
Type |
Field Index |
Description |
| ClockId (Required) |
varuint64 |
0 |
|
| Time (Required) |
varint32 |
1 |
|
| IsPaused (Required) |
boolean |
2 |
|
|
InitializeRegistryData (Variant 1)
| Field Name |
Type |
Field Index |
Description |
| ClockData (Required) |
array<WorldClockData> |
0 |
|
WorldClockData (Array Item)
| Field Name |
Type |
Field Index |
Description |
| Id (Required) |
varuint64 |
0 |
|
| Name (Required) |
string |
1 |
|
| Time (Required) |
varint32 |
2 |
|
| IsPaused (Required) |
boolean |
3 |
|
| TimeMarkers (Required) |
array<TimeMarkerData> |
4 |
|
TimeMarkerData (Array Item)
| Field Name |
Type |
Field Index |
Description |
| Id (Required) |
varuint64 |
0 |
|
| Name (Required) |
string |
1 |
|
| Time (Required) |
varint32 |
2 |
|
| Period (Required) |
int32 |
3 |
|
|
|
AddTimeMarkerData (Variant 2)
| Field Name |
Type |
Field Index |
Description |
| ClockId (Required) |
varuint64 |
0 |
|
| TimeMarkers (Required) |
array<TimeMarkerData> |
1 |
|
TimeMarkerData (Array Item)
| Field Name |
Type |
Field Index |
Description |
| Id (Required) |
varuint64 |
0 |
|
| Name (Required) |
string |
1 |
|
| Time (Required) |
varint32 |
2 |
|
| Period (Required) |
int32 |
3 |
|
|
RemoveTimeMarkerData (Variant 3)
| Field Name |
Type |
Field Index |
Description |
| ClockId (Required) |
varuint64 |
0 |
|
| TimeMarkerIds (Required) |
array<uint64> |
1 |
|
|