Improved support for action enum properties.
5 using System.Collections.Generic;
6 using System.Runtime.Serialization;
11 public abstract class MEvent
13 public string Name { get; protected set; }
14 public string Description { get; protected set; }
16 public abstract void Trigger();
20 public abstract class Event : MEvent
23 public List<Action> Actions = new List<Action>();
30 public override void Trigger()
32 Console.WriteLine("Event '" + Name + "' triggered.");
33 foreach (Action action in Actions)