Esempio n. 1
0
    override public ModuleBase GetModule()
    {
        if (path == null)
        {
            return(null);
        }
        if (path == "")
        {
            return(null);
        }

        TerrainModule tm = TerrainModule.Load(path, false, 0, frequencyScale);

        if (tm != null)
        {
            this.module = tm.module;
        }
        else
        {
            Debug.LogError("MacroNode: Terrain module could not be loaded from " + path);
            this.module = new ModuleBase();
        }

        return(this.module);
    }
Esempio n. 2
0
    public void Load(string loadpath)
    {
        if (loadpath == "")
        {
            return;
        }
        savepath = loadpath;

        if (loadpath.Length != 0)
        {
            windows.Clear();
            settings = TerrainModule.Load(loadpath, true, 0, 1f);
            if (settings != null)
            {
                foreach (Node n in settings.nodes)
                {
                    windows.Add(new NodeWindow(n));
                }
            }
        }
    }