Ejemplo n.º 1
0
 public WorldPlayers(
     ReplicationConfig replicationConfig,
     PlayerInputConfig playerInputConfig,
     int capacity)
 {
     this._replicationDataPool = new PlayerReplicationDataPool(replicationConfig, capacity);
     this._playerInputsPool    = new PlayerInputsPool(
         inputFrameCount: playerInputConfig.MaxFrameCount,
         capacity: capacity);
     this._playerIdToIndex = new Dictionary <PlayerId, int>(capacity);
     this._players         = new WorldPlayer[capacity];
     this._count           = 0;
 }
Ejemplo n.º 2
0
 internal WorldPlayer(
     PlayerReplicationDataPool replicationDataPool,
     PlayerInputsPool playerInputsPool,
     in PlayerConnectionRef connectionRef)