Published v0.11.0.0.
5 using System.Collections.Generic;
6 using System.Runtime.Serialization;
7 using System.Threading;
12 [KnownType("DerivedTypes")]
13 public abstract class Action: IComparable
15 protected abstract void DoExecute();
18 /// Allows testing from generic edit dialog.
22 Console.WriteLine("Action test");
28 Console.WriteLine("Action executing: " + Brief());
33 //Get the name of this object action attribute
34 get { return Utils.Reflection.GetAttribute<AttributeObject>(GetType()).Name; }
38 public virtual string Brief()
43 public int CompareTo(object obj)
46 return Utils.Reflection.GetAttribute<AttributeObject>(GetType()).Name.CompareTo(obj.GetType());
49 private static IEnumerable<Type> DerivedTypes()
51 return SharpLib.Utils.Reflection.GetDerivedTypes<Action>();