public PlayerManager()
        {
            _slots = new List <PlayerSlotController>();

            // Albert, 2010-12-06: It's too difficult to revoke a player builder. We cannot guarantee that no player of that
            // player builder is currently in use by other threads, so we simply don't allow to revoke them by using a FixedItemStateTracker.
            _playerBuilderPluginItemStateTracker     = new FixedItemStateTracker("PlayerManager: PlayerBuilder usage");
            _playerBuilderRegistrationChangeListener = new PlayerBuilderRegistrationChangeListener(this);
            LoadSettings();
            SubscribeToMessages();
        }
Example #2
0
    public PlayerManager()
    {
      _slots = new PlayerSlotController[] {
          new PlayerSlotController(this, PlayerManagerConsts.PRIMARY_SLOT),
          new PlayerSlotController(this, PlayerManagerConsts.SECONDARY_SLOT)
      };

      // Albert, 2010-12-06: It's too difficult to revoke a player builder. We cannot guarantee that no player of that
      // player builder is currently in use by other threads, so we simply don't allow to revoke them by using a FixedItemStateTracker.
      _playerBuilderPluginItemStateTracker = new FixedItemStateTracker("PlayerManager: PlayerBuilder usage");
      _playerBuilderRegistrationChangeListener = new PlayerBuilderRegistrationChangeListener(this);
      LoadSettings();
      SubscribeToMessages();
    }