public Command(string name, string description, bool adminOnly, OnExecuteDelegate onExecute) { Name = name; Description = description; AdminOnly = adminOnly; OnExecute = onExecute; }
public ScheduledOperation( T value, OnExecuteDelegate onExecuteAsync, ExecutionContext executionContext = default, string scope = "default", CancellationToken cancellationToken = default) { Value = value; ExecutionContext = executionContext; _onExecuteAsync = onExecuteAsync; Scope = scope; TaskCompletionSource = new(); if (cancellationToken != default) { cancellationToken.Register(() => { TaskCompletionSource.SetCanceled(); }); } }
public DeferredOperation(OnExecuteDelegate onExecuteAsync, GetDeferredOperationsDelegate getDeferredOperations) { OnExecuteAsync = onExecuteAsync; GetDeferredOperations = getDeferredOperations; }
public BTAction(OnExecuteDelegate _OnExecute) { OnExecute = _OnExecute; }
public void AddExecutionHandler( OnExecuteDelegate func ) { executionList.Add( func ); }
public WebCoroutine( OnExecuteDelegate func ) { executionList.Add( func ); }