Ejemplo n.º 1
0
        public override void BuildAutogeneratedCode(out string globalsFilePath, out string mainFunctionFilePath, out string configFunctionFilePath)
        {
            var functionBuilderData = new FunctionBuilderData(Options.MapInfo, Options.MapDoodads, Options.MapUnits, Options.MapRegions, Options.MapSounds, Options.LobbyMusic, false);
            var functionBuilder     = new JassFunctionBuilder(functionBuilderData);

            globalsFilePath = Path.Combine(Options.OutputDirectory, "globals.j");
            RenderToFile(globalsFilePath, functionBuilder.BuildGlobalDeclarations());

            mainFunctionFilePath = Path.Combine(Options.OutputDirectory, "main.j");
            RenderToFile(mainFunctionFilePath, functionBuilder.BuildMainFunction());

            configFunctionFilePath = Path.Combine(Options.OutputDirectory, "config.j");
            RenderToFile(configFunctionFilePath, functionBuilder.BuildConfigFunction());
        }
Ejemplo n.º 2
0
 public LuaFunctionBuilder(FunctionBuilderData data)
     : base(data)
 {
 }
Ejemplo n.º 3
0
 public FunctionBuilder(FunctionBuilderData data)
 {
     _data = data;
 }
Ejemplo n.º 4
0
 public JassFunctionBuilder(FunctionBuilderData data)
     : base(data)
 {
 }