CompileGroupclass
Constructors1
Showing 1 constructors
public CompileGroup(string name)
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
No results match this filter.
Methods6
Showing 6 methods
public System.Threading.Tasks.Task`1<bool> BuildAsync()
Build the compilers
Task<bool>—public Sandbox.Compiler CreateCompiler(string name, string path, Sandbox.Compiler.Configuration settings)
Create a new compiler in this group.
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
| path | string | — |
| settings | Configuration | — |
public virtual sealed void Dispose()
Shut everything down
void—public Sandbox.Compiler GetOrCreateCompiler(string name)
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
public void Reset()
Reset the compile group. Clear errors and outputs.
void—public System.Threading.Tasks.Task WaitForCompile(System.Threading.CancellationToken token)
| Parameter | Type | Description |
|---|---|---|
| token | CancellationToken | — |
Task—No results match this filter.
Properties13
Showing 13 properties
public Sandbox.AccessControl Sandbox.CompileGroup.AccessControl { get; set; }
AccessControl instance to use when verifying whitelist. Must be set to enable compile-time access control.
AccessControl—public bool Sandbox.CompileGroup.AllowFastHotload { get; set; }
True if we want to use fast hotloading with this compile group
bool—public Sandbox.CompileGroup.Results Sandbox.CompileGroup.BuildResult { get; set; }
Returns true if build was successful
public System.Collections.Generic.IEnumerable`1<Sandbox.Compiler> Sandbox.CompileGroup.Compilers { get; set; }
The compilers within the group
public bool Sandbox.CompileGroup.IsBuilding { get; set; }
Returns true if we are currently in the process of building
bool—public string Sandbox.CompileGroup.Name { get; set; }
The name of this compile group, for debugging/display purposes
string—public bool Sandbox.CompileGroup.NeedsBuild { get; set; }
Returns true if we have compiles pending
bool—public System.Action Sandbox.CompileGroup.OnCompileFinished { get; set; }
Called when a compiling ends
Action—public System.Action Sandbox.CompileGroup.OnCompileStarted { get; set; }
Called when a compiling starts
Action—public System.Action Sandbox.CompileGroup.OnCompileSuccess { get; set; }
Called when a compile completes successfully. Can access the result from BuildResult.
Action—public bool Sandbox.CompileGroup.PrintErrorsInConsole { get; set; }
True if we want to print errors in the console when compiling
bool—public Sandbox.ICompileReferenceProvider Sandbox.CompileGroup.ReferenceProvider { get; set; }
Allows providing an external way to find references
public static bool Sandbox.CompileGroup.SuppressBuildNotifications { get; set; }
Build notifications start of suppressed until after startup proper. That way we don't get 4 build notification windows popping up on startup.
bool—No results match this filter.