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; }
internal WorldPlayer( PlayerReplicationDataPool replicationDataPool, PlayerInputsPool playerInputsPool, in PlayerConnectionRef connectionRef)