using System; using System.Collections.Generic; namespace Oni.Particles { internal class Event { private readonly EventType type; private readonly List actions; public Event(EventType type) { this.type = type; this.actions = new List(); } public Event(EventType type, EventAction[] actions, int start, int length) : this(type) { for (int i = start; i < start + length; i++) this.actions.Add(actions[i]); } public EventType Type => type; public List Actions => actions; } }