public AnimationManagerComponent(IEntity owner, BasicActionChooser actionChooser, Animation defaultAnimation) : base(owner) { actions = new Dictionary<int, Animation>(); this.owner = owner; activeBodies = new List<ActiveBody>(); owner.changeIntProperty(EntityProperty.Action, ActionsList.Default, true); this.addAction(defaultAnimation); this.currentAction = defaultAnimation; this.actionChooser = actionChooser; initialize(); }
public PhysicalAttackComponent(IEntity owner, int damage) { this.owner = owner; owner.changeIntProperty(EntityProperty.PhysicalAttack, damage, false); initialize(); }