Improved object editor dialog validation.
Added EAR support for object validation.
5 using System.Collections.Generic;
6 using System.Runtime.Serialization;
11 public abstract class Event : Object
14 [AttributeObjectProperty
18 Description = "When enabled an event instance can be triggered."
21 public bool Enabled { get; set; }
24 public List<Action> Actions = new List<Action>();
35 /// Allows testing from generic edit dialog.
39 Console.WriteLine("Event test");
46 Console.WriteLine("Event triggered: " + Name);
47 foreach (Action action in Actions)
54 public override bool Equals(object obj)
56 //Default implementation assumes event are the same if types are the same
57 bool res= obj.GetType() == GetType();