Exemple #1
0
    public bool Link(MaestroEngine engine)
    {
        if (assembly != null)
        {
            return(engine.TryLink(assembly, out executable));
        }

        Debug.LogErrorFormat("Tried to link source '{0}' without compiling it first", path);
        return(false);
    }
Exemple #2
0
    public bool Execute(MaestroEngine engine)
    {
        if (executable.assembly != null)
        {
            return(engine.TryExecute(executable));
        }

        Debug.LogErrorFormat("Tried to execute source '{0}' without compiling and linking it first", path);
        return(false);
    }
Exemple #3
0
    public bool Compile(MaestroEngine engine)
    {
        if (TryLoadContents(out var content))
        {
            return(engine.TryCompile(path, content, out assembly));
        }

        Debug.LogErrorFormat("Could not load source at '{0}'", FullPath);
        return(false);
    }