Exemplo n.º 1
0
        //---------------------------------------------------------------------
        // WRITING OUT
        //---------------------------------------------------------------------

        //these should mirror the loading methods above

        public void save(Module module)
        {
            nodenum = 0;
            generateOILNames(module);

            oilcan = new EnamlData();
            oilcan.setStringValue("OILCan.version", OILCANVERSION);
            oilcan.setStringValue("module.name", module.name);

            int fnum = 0;

            foreach (FuncDefNode func in module.funcs)
            {
                saveFuncDef(fnum++, func);
            }

            oilcan.saveToFile(filename);
        }