示例#1
0
        /// <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="callbackInfo">The collected callback information.</param>
        public void RegisterAIDelegate(PageCallbackInfo callbackInfo)
        {
            List <PageCallbackInfo> foo = null;

            if (this.aiDispatchTable.TryGetValue(callbackInfo.CallTime, out foo) == true)
            {
                foo.Add(callbackInfo);
            }
            else
            {
                foo = new List <PageCallbackInfo>();
                foo.Add(callbackInfo);
                this.aiDispatchTable.Add(callbackInfo.CallTime, foo);
            }
        }
示例#2
0
 /// <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="callbackInfo">The collected callback information.</param>
 public void RegisterAIDelegate(PageCallbackInfo callbackInfo)
 {
     List<PageCallbackInfo> foo = null;
     if (this.aiDispatchTable.TryGetValue(callbackInfo.CallTime, out foo) == true)
     {
         foo.Add(callbackInfo);
     }
     else
     {
         foo = new List<PageCallbackInfo>();
         foo.Add(callbackInfo);
         this.aiDispatchTable.Add(callbackInfo.CallTime, foo);
     }
 }