Published v1.0.2.0.
Fixed Harmony async issue prevent the config to be fetched.
5 using System.Collections.Generic;
6 using System.Diagnostics;
7 using System.Runtime.Serialization;
12 public abstract class Event : Object
15 [AttributeObjectProperty
19 Description = "When enabled an event instance can be triggered."
22 public bool Enabled { get; set; } = true;
25 public List<Action> Actions = new List<Action>();
28 protected override void DoConstruct()
32 // TODO: Construct properties too
33 foreach (Action a in Actions)
42 /// Allows testing from generic edit dialog.
46 Trace.WriteLine("Event test");
53 Trace.WriteLine("Event triggered: " + Name);
54 foreach (Action action in Actions)
61 public override bool Equals(object obj)
63 //Default implementation assumes event are the same if types are the same
64 bool res= obj.GetType() == GetType();