/// <summary> /// An <c>CommandDo</c> runs precisely once. /// </summary> /// <param name="command"> /// The command to execute. Must be non-null. /// </param> /// <exception cref="System.ArgumentNullException"></exception> public static CommandDelegate Do(CommandDo command) { CheckArgumentNonNull(command); return((ref double deltaTime) => { command(); return true; }); }
/// <summary> /// An <c>CommandDo</c> runs precisely once. /// </summary> /// <param name="command"> /// The command to execute. Must be non-null. /// </param> /// <exception cref="System.ArgumentNullException"></exception> public static CommandDelegate Do(CommandDo command) { CheckArgumentNonNull(command); return (ref double deltaTime) => { command(); return true; }; }