Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

SyncListStruct - inner class synced only to host

$
0
0
I have a board that is managed by the server
I couldn't make SyncList<T> work so i started working with SyncListStruct as it seems better performance wise.

I have these classes -
Code (CSharp):
  1.  
  2. public struct SquareStruct
  3. {
  4.     public int slots;
  5.     public int playerNumber;
  6.     public int locationX;
  7.     public int locationY;
  8.     public List<Building> buildings;
  9. }
  10.  
  11. public class Building
  12. {
  13.     public BuildingType building;
  14.     public int level;
  15. }
  16. public class SquareList :...
SyncListStruct<SquareStruct> - inner class synced only to host

Viewing all articles
Browse latest Browse all 16796


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>