SharpLibEar/Action.cs
author StephaneLenclud
Sat, 23 Jul 2016 16:00:04 +0200
changeset 210 83dd86e73448
child 211 96f8b4dc4300
permissions -rw-r--r--
Most basic event action manager.
     1 //
     2 
     3 
     4 using System;
     5 using System.Runtime.Serialization;
     6 using System.Threading;
     7 
     8 namespace SharpLib.Ear
     9 {
    10     [DataContract]
    11     public abstract class Action: IComparable
    12     {
    13         public abstract void Execute();
    14 
    15         public int CompareTo(object obj)
    16         {
    17             //Sort by action name
    18             return Utils.Reflection.GetAttribute<AttributeAction>(GetType()).Name.CompareTo(obj.GetType());            
    19         }
    20     }
    21 
    22 
    23 }