Example #1
0
        protected override void OnActivate()
        {
            this.context.Inventory.Attach(this);

            this.config = new SnatcherConfig(this.context.Renderer);
            this.context.MenuManager.RegisterMenu(this.config);

            foreach (var blinkAbilityId in BlinkAbilityIds)
            {
                var ability = this.owner.GetAbilityById(blinkAbilityId);
                if (ability != null)
                {
                    try
                    {
                        this.blinkAbility = this.abilityFactory.Value.GetAbility <RangedAbility>(ability);
                        Log.Debug($"Snatcher: found ability for greed mode {this.blinkAbility}");
                    }
                    catch (AbilityNotImplementedException)
                    {
                        // not added to sdk yet
                    }
                }
            }

            this.onUpdateHandler = UpdateManager.Run(this.OnUpdate);
        }
Example #2
0
 protected override void OnActivate()
 {
     this.config = new SnatcherConfig();
     UpdateManager.BeginInvoke(this.OnUpdate);
 }