GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
ProjectResourcesCopier.h
1 /*
2  * GDevelop Core
3  * Copyright 2008-present Florian Rival ([email protected]). All rights
4  * reserved. This project is released under the MIT License.
5  */
6 #pragma once
7 
8 #include "GDCore/String.h"
9 
10 namespace gd {
11 class Project;
12 class AbstractFileSystem;
13 } // namespace gd
14 
15 namespace gd {
16 
22 class GD_CORE_API ProjectResourcesCopier {
23  public:
45  static bool CopyAllResourcesTo(gd::Project& project,
47  gd::String destinationDirectory,
48  bool updateOriginalProject,
49  bool preserveAbsoluteFilenames = true,
50  bool preserveDirectoryStructure = true);
51 
52 private:
53  static bool CopyAllResourcesTo(gd::Project& originalProject,
54  gd::Project& clonedProject,
56  gd::String destinationDirectory,
57  bool preserveAbsoluteFilenames = true,
58  bool preserveDirectoryStructure = true);
59 };
60 
61 } // namespace gd
An interface to manipulate files in a platform agnostic way. This allow exporters to work on files wi...
Definition: AbstractFileSystem.h:24
Base class representing a project (game), including all resources, scenes, objects,...
Definition: Project.h:50
Copy all resources files of a project to a directory.
Definition: ProjectResourcesCopier.h:22
String represents an UTF8 encoded string.
Definition: String.h:31
Definition: CommonTools.h:24