private void BuySkills() { var args = new List <object>(); foreach (var skill in attrBindings.OfType <SkillAttributeBinding>()) { args.Add(skill.AttributeName); args.Add(skill.BaseValue); } AttributesChanged.Raise(args.ToArray()); }
protected virtual void OnProcessDelta(Delta d) { if (d.HasFlag(Delta.Appearance)) { AppearanceChanged.Raise(this); } if (d.HasFlag(Delta.Position)) { PositionChanged.Raise(this); } if (d.HasFlag(Delta.Attributes)) { AttributesChanged.Raise(this); } if (d.HasFlag(Delta.Properties)) { PropertiesChanged.Raise(this); } }