public PageCallbackInfo(Int64 callTime, IPageCallbacker target, PageActionDelegate method) { this.CallTime = callTime; this.Target = target; this.Method = method; }
/// <summary> /// Allows an IPageCallbacker (the page itself or an Entity) to register a /// callback for some future point in time. Designed for AI calls from entities, /// hence the name. /// </summary> /// <param name="timeToCall">The future tick to invoke the delegate at.</param> /// <param name="target">The object that requests this AI call; used for later culling.</param> /// <param name="callbackFunction">The delegate for the function to call.</param> public void RegisterAIDelegate(Int64 timeToCall, IPageCallbacker target, PageActionDelegate callbackFunction) { this.RegisterAIDelegate(new PageCallbackInfo(timeToCall, target, callbackFunction)); }