Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TickedPriorityQueue.TickedObject"/> class.
 /// </summary>
 /// <param name='elapsedCallback'>
 /// Elapsed callback. Delegate declared as void OnTickElapsed(object userData).
 /// </param>
 /// <param name='userData'>
 /// Data which is given back through the callback, used for identification purposes.
 /// </param>
 public TickedObject(OnTickElapsed elapsedCallback, object userData)
 {
     TickElapsed = elapsedCallback;
     UserData = userData;
 }
		/// <summary>
		/// Initializes a new instance of the <see cref="TickedPriorityQueue.TickedObject"/> class.
		/// </summary>
		/// <param name='elapsedCallback'>
		/// Elapsed callback. Delegate declared as void OnTickElapsed(object userData).
		/// </param>
        /// <param name="tickLength">Tick length</param>
        /// <param name='userData'>
		/// Data which is given back through the callback, used for identification purposes.
		/// </param>
		public TickedObject(OnTickElapsed elapsedCallback, float tickLength = 0, object userData = null)
		{
			TickElapsed = elapsedCallback;
            TickLength = tickLength;
            UserData = userData;
		}
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TickedPriorityQueue.TickedObject"/> class.
 /// </summary>
 /// <param name='elapsedCallback'>
 /// Elapsed callback. Delegate declared as void OnTickElapsed(object userData).
 /// </param>
 public TickedObject(OnTickElapsed elapsedCallback)
     : this(elapsedCallback, null)
 {
 }