Esempio n. 1
0
    public void WriteInput()
    {
        string     input_yml       = "input.yml";
        helpers    helpers         = general_manager.manager.helper;
        string     FileContent     = "";
        GameObject activePackage   = helpers.SelectActivePackage();
        string     system          = general_manager.manager.system;
        string     resname         = helpers.SelectText(activePackage, "resname_panel");
        string     chain           = helpers.SelectText(activePackage, "chain_panel");
        string     initialPosition = helpers.SelectText(activePackage, "initial_panel");
        string     finalPosition   = helpers.SelectText(activePackage, "final_panel");

        FileContent = helpers.WriteLine("system", system, FileContent);
        FileContent = helpers.WriteLine("resname", resname, FileContent);
        FileContent = helpers.WriteLine("chain", chain, FileContent);
        FileContent = helpers.WriteLine("initial_position", initialPosition, FileContent);
        FileContent = helpers.WriteLine("final_position", finalPosition, FileContent);
        FileContent = _WritePackageLine(activePackage, FileContent);

        System.IO.File.WriteAllText(input_yml, FileContent);
    }