public NDelayFunctionTask(FunctionWithParam function, object param, int delay) { if (function == null) { throw new ArgumentNullException("function"); } mFunction = function; mParam = param; mDelay = delay; }
public NRepeatingFunctionTask(FunctionWithParam function, object param) { if (function == null) { throw new ArgumentNullException("function"); } mFunction = function; mParam = param; mDelay = 500; }
public static ObjectGuid CreateAndAddToSimulator(ScriptExecuteType executeType, FunctionWithParam func, object paramobj, int delay) { var p = new NRepeatingFunctionTask(func, paramobj, delay); p.SetExecuteType(executeType); return(p.AddToSimulator()); }