SharpLibEar/Action.cs
changeset 211 96f8b4dc4300
parent 210 83dd86e73448
child 212 1a0791daa243
     1.1 --- a/SharpLibEar/Action.cs	Sat Jul 23 16:00:04 2016 +0200
     1.2 +++ b/SharpLibEar/Action.cs	Sat Jul 23 19:22:56 2016 +0200
     1.3 @@ -12,6 +12,12 @@
     1.4      {
     1.5          public abstract void Execute();
     1.6  
     1.7 +        public string Name {
     1.8 +            //Get the name of this object action attribute
     1.9 +            get { return Utils.Reflection.GetAttribute<AttributeAction>(GetType()).Name; }
    1.10 +            private set { }
    1.11 +        }
    1.12 +
    1.13          public int CompareTo(object obj)
    1.14          {
    1.15              //Sort by action name