public void registerTimedEvent(string method, int time) { var e = new TimedEvent(method, time, this.Script); this.Script.Events.Add(e); }