コード例 #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;
 }
コード例 #2
0
ファイル: WorldPlayer.cs プロジェクト: danchart/Ecs
 internal WorldPlayer(
     PlayerReplicationDataPool replicationDataPool,
     PlayerInputsPool playerInputsPool,
     in PlayerConnectionRef connectionRef)