Api Sandbox CompileGroup
class

CompileGroup

public class CompileGroup

Constructors

CompileGroup(String name)

Properties

Name Type Description
SuppressBuildNotifications static Boolean Build notifications start of suppressed until after startup proper. That way we don't get 4 build notification windows popping up on startup.
Compilers IEnumerable<Compiler> The compilers within the group
Name String The name of this compile group, for debugging/display purposes
NeedsBuild Boolean Returns true if we have compiles pending
IsBuilding Boolean Returns true if we are currently in the process of building
PrintErrorsInConsole Boolean True if we want to print errors in the console when compiling
AllowFastHotload Boolean True if we want to use fast hotloading with this compile group
BuildResult Results Returns true if build was successful
OnCompileStarted Action Called when a compiling starts
OnCompileFinished Action Called when a compiling ends
OnCompileSuccess Action Called when a compile completes successfully. Can access the result from BuildResult.
ReferenceProvider ICompileReferenceProvider Allows providing an external way to find references
AccessControl AccessControl AccessControl instance to use when verifying whitelist. Must be set to enable compile-time access control.

Methods

virtual Void Dispose()

Shut everything down

Compiler CreateCompiler(String name, String path, Configuration settings)

Create a new compiler in this group.

Compiler GetOrCreateCompiler(String name)
Task<Boolean> BuildAsync()

Build the compilers

Void Reset()

Reset the compile group. Clear errors and outputs.

Task WaitForCompile(CancellationToken token)
Assembly: Sandbox.Compiling Namespace: Sandbox Full Name: Sandbox.CompileGroup