コード例 #1
0
 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();
 }
コード例 #2
0
 public PhysicalAttackComponent(IEntity owner, int damage)
 {
     this.owner = owner;
     owner.changeIntProperty(EntityProperty.PhysicalAttack, damage, false);
     initialize();
 }