コード例 #1
0
 public PageCallbackInfo(Int64 callTime, IPageCallbacker target, PageActionDelegate method)
 {
     this.CallTime = callTime;
     this.Target   = target;
     this.Method   = method;
 }
コード例 #2
0
ファイル: AbstractPage.cs プロジェクト: Thumann/sharplike
 /// <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));
 }
コード例 #3
0
ファイル: PageCallbackInfo.cs プロジェクト: eropple/sharplike
 public PageCallbackInfo(Int64 callTime, IPageCallbacker target, PageActionDelegate method)
 {
     this.CallTime = callTime;
     this.Target = target;
     this.Method = method;
 }
コード例 #4
0
ファイル: AbstractPage.cs プロジェクト: eropple/sharplike
 /// <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));
 }