Ejemplo n.º 1
0
        public void ExportButtonClicked(FileSelectionViewController controller)
        {
            var    name = creatureNames[selectedIndex];
            string path = CreatureSerializer.PathToCreatureDesign(name);

            FileToSave file = new FileToSave(path, CustomEvolutionFileType.creat);

            NativeFileSO.NativeFileSO.shared.SaveFile(file);
        }
Ejemplo n.º 2
0
        public void ExportButtonClicked(FileSelectionViewController controller)
        {
            var    name = filenames[selectedIndex];
            string path = SimulationSerializer.PathToSimulationSave(name);

            FileToSave file = new FileToSave(path, CustomEvolutionFileType.evol);

            NativeFileSO.NativeFileSO.shared.SaveFile(file);
        }
Ejemplo n.º 3
0
        public static void Main()
        {
            string path        = "path/to/existing/fileToSave.txt";
            string newFilename = "ExportedFile.txt";

            FileToSave file = new FileToSave(path, newFilename, SupportedFileType.PlainText);

            // Allows the user to choose a save location and saves the
            // file to that location
            NativeFileSO.shared.SaveFile(file);
        }