Diarkis Field Module - How To Synchronize With Other User Clients
Diarkis Field module allows you to synchronize with other user clients based on X and Y coordinates.
Z coordinates represents "world". What it means is that different Z coordinate means different "parallel world". If you are in the different Z, "world", you will NOT see other user clients with the same coordinates with different Z.
How Diarkis Field Synchronize Works
Diarkis Field module synchronizes with other remote user clients by having all user clients to report their X and Y coordinates and Z space along with synchronize data (byte array) that they wish for the other user clients in sight to "see" (receive).
Steps:
When entering Diarkis Field, you must invoke "SyncInt" first to receive synchronize data from the other user clients in your sight.
Start invoking "Sync" with synchronize data that you with other user clients to receive when they are in sight.
Repeat step 2 as you move about.
C# Code Example For SyncInit:
C# Code Example For Sync:
How Diarkis Field Manages The World Map
Diarkis Field automatically divides the world map into grids and assign these grids to servers within the Diarkis server cluster.
These grids are re-calculated and re-assigned whenever the number of servers change within the Diarkis cluster.
The user clients are also moved around according to their coordinates.
Last updated