public LivesAtAnyPointOfGameTracker(AchievementManager achievementManager, EntityWorld entityWorld, string achievementName, int lives)
     : base(achievementManager, entityWorld, achievementName)
 {
     Ensure.Is<BooleanProgression>(_achievement.Progression);
     _lives = lives;
     _playerInfo = entityWorld.FindEntityByName(EntityNames.Player).Get<CPlayerInfo>();
 }
Пример #2
0
 public ScoreTracker(AchievementManager achievementManager, EntityWorld entityWorld, string achievementName, int scoreTarget)
     : base(achievementManager, entityWorld, achievementName)
 {
     Ensure.Is<BooleanProgression>(_achievement.Progression);
     _scoreTarget = scoreTarget;
     _playerInfo = entityWorld.FindEntityByName(EntityNames.Player).Get<CPlayerInfo>();
 }
        protected override void Initialize()
        {
            _playerInfo = base.Entity.Get<CPlayerInfo>();
            _weapon = base.Entity.Get<CWeapon>();
            _movementThumbstick = this.EntityWorld.FindEntityByName(EntityNames.MovementThumbStick).Get<CVirtualThumbstick>().Thumbstick;
            _rotationThumbstick = this.EntityWorld.FindEntityByName(EntityNames.RotationThumbStick).Get<CVirtualThumbstick>().Thumbstick;

            _boosterState = this.EntityWorld.Services.Get<IBoosterState>();
            _playerPassiveStats = this.EntityWorld.Services.Get<IPlayerPassiveStats>();
        }
Пример #4
0
        protected override void Initialize()
        {
            _player = this.EntityWorld.FindEntityByName(EntityNames.Player);
            _playerInfo = _player.Get<CPlayerInfo>();

            this.EntityWorld.SubscribeToMessage<ZombieKilledMessage>(this.OnZombieKilled);
            _passiveStats = this.EntityWorld.Services.Get<IPlayerPassiveStats>();
            if (_passiveStats.SpawnWithThreeLives)
            {
                _playerInfo.AddLife();
            }
        }
Пример #5
0
 protected override void Initialize()
 {
     _playerInfo = this.EntityWorld.FindEntityByName(EntityNames.Player).Get<CPlayerInfo>();
     _zombieStatsProvider = this.EntityWorld.Services.Get<IZombieStatsProvider>();
 }
 protected override void Initialize()
 {
     _playerInfo = this.EntityWorld.FindEntityByName(EntityNames.Player).Get<CPlayerInfo>();
     _passiveStats = this.EntityWorld.Services.Get<IPlayerPassiveStats>();
     _weaponDropTimer.SetTickTime(WeaponDropGeneratorSystem.WeaponDropTestInterval / _passiveStats.DropIncreaseMultiplier);
 }
 protected override void Initialize()
 {
     _playerInfo = this.EntityWorld.FindEntityByName(EntityNames.Player).Get<CPlayerInfo>();
 }
 protected override void Initialize()
 {
     _playerInfo = this.EntityWorld.FindEntityByName(EntityNames.Player).Get<CPlayerInfo>();
     _lifeDropTimer.SetTickTime(_tickTime / this.EntityWorld.Services.Get<IPlayerPassiveStats>().DropIncreaseMultiplier);
 }
Пример #9
0
 protected override void Cleanup()
 {
     this.PlayerInfo = null;
 }
Пример #10
0
 public PlayerKilledMessage Initialize(CPlayerInfo playerInfo)
 {
     this.PlayerInfo = playerInfo;
     return this;
 }
Пример #11
0
 protected override void PreInitialize()
 {
     this.EntityWorld.Services.Add<IBoosterState>(_boosterState);
     this.SetNextBoosterTimer();
     _playerInfo = this.EntityWorld.FindEntityByName(EntityNames.Player).Get<CPlayerInfo>();
 }