Method Compile
- Namespace
- GrindFest
- Assembly
- GrindFest.dll
Compile(string, string, out byte[], string, bool, bool)
Compiles the bot scripts and hands the assembly back as data now. Only for callers that genuinely need the value synchronously (editor tooling, DevTests). It cannot run the isolated security analysis, which is asynchronous: waiting on that would freeze the caller and, on a runtime without threads, never finish at all. It also does not apply the player's isolated-API setting - it compiles what the caller asked for. Everything the game runs goes through CompileAsync(string, string, string, bool, bool), which does both.
public (Assembly, ImmutableArray<Diagnostic>) Compile(string assemblyName, string sourceDirectory, out byte[] assemblyBytes, string outputPath = null, bool isolated = false, bool localHero = true)
Parameters
assemblyNamestringsourceDirectorystringassemblyBytesbyte[]outputPathstringisolatedboollocalHerobool