LuaMindProgramCompiler

public final class LuaMindProgramCompiler

Compiles one declarative Lua table into an immutable Mind program.

The budget table contains soft callback, entity, and server scheduling limits. The runaway table contains hard cpu_micros and max_instructions limits. Existing programs may keep max_instructions in budget; new programs should put it in runaway so the two policies stay visibly separate. Both hard limits are silently clamped to the engine ceiling (MAX_INSTRUCTIONS instructions and MAX_CPU_MILLIS ms of CPU), so a program may ask for less but never more.

Functions

Link copied to clipboard
public static MindProgram compile(LuaTable table)