Exemplo n.º 1
0
 /// <summary>
 /// Set the scene evaluation interval.
 /// Will still set the interval even if not using Interval mode, but not change the mode.
 /// </summary>
 /// <param name="interval">The evaluation interval in seconds</param>
 public static void SetEvaluationInterval(this IUsesMarsSceneEvaluation caller, float interval)
 {
     IUsesMarsSceneEvaluationMethods.SetEvaluationInterval(interval);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Set the scheduling mode for evaluating the MARS scene.
 /// Changing the mode to EvaluateOnInterval will queue an evaluation.
 /// </summary>
 /// <param name="mode">The mode to set</param>
 public static void SetEvaluationMode(this IUsesMarsSceneEvaluation caller, MarsSceneEvaluationMode mode)
 {
     IUsesMarsSceneEvaluationMethods.SetEvaluationMode(mode);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Get the scene evaluation interval in seconds
 /// </summary>
 public static float GetEvaluationInterval(this IUsesMarsSceneEvaluation caller)
 {
     return(IUsesMarsSceneEvaluationMethods.GetEvaluationInterval());
 }
Exemplo n.º 4
0
 /// <summary>
 /// Request that the results of all active queries be recalculated.
 /// </summary>
 /// <param name="onEvaluationComplete">
 /// A callback executed when the evaluation triggered by the request has completed
 /// </param>
 /// <returns>An enum describing the system response to the request</returns>
 public static MarsSceneEvaluationRequestResponse RequestSceneEvaluation(this IUsesMarsSceneEvaluation caller,
                                                                         Action onEvaluationComplete = null)
 {
     return(IUsesMarsSceneEvaluationMethods.RequestSceneEvaluation(onEvaluationComplete));
 }