|
ArticyXImporter
ArticyXImporter for Unreal Engine
|
Manages the generation, compilation, and asset creation for Articy-imported data. More...
#include <CodeGenerator.h>
Static Public Member Functions | |
| static bool | GenerateCode (UArticyImportData *Data) |
| Generates code files based on the provided import data. | |
| static void | CacheCodeFiles () |
| Caches the content of code files in the source folder. | |
| static bool | RestoreCachedFiles () |
| Restores cached files from previous import sessions. | |
| static void | GenerateAssets (UArticyImportData *Data) |
| Generates assets based on the provided import data. | |
| static void | Recompile (UArticyImportData *Data) |
| Initiates the recompilation process for the generated code. | |
| static FString | GetSourceFolder () |
| Returns the main source folder for all the generated code. | |
| static FString | GetGeneratedInterfacesFilename (const UArticyImportData *Data) |
| Helper methods for generated class/struct names. | |
| static FString | GetGeneratedTypesFilename (const UArticyImportData *Data) |
| Gets the filename for the generated types based on import data. | |
| static FString | GetGeneratedTypeInformationFilename (const UArticyImportData *Data) |
| static FString | GetGlobalVarsClassname (const UArticyImportData *Data, const bool bOmittPrefix=false) |
| Gets the class name for global variables based on import data. | |
| static FString | GetGVNamespaceClassname (const UArticyImportData *Data, const FString &Namespace) |
| Gets the class name for a global variable namespace based on import data. | |
| static FString | GetDatabaseClassname (const UArticyImportData *Data, const bool bOmittPrefix=false) |
| Gets the class name for the database based on import data. | |
| static FString | GetArticyTypeClassname (const UArticyImportData *Data, const bool bOmittPrefix=false) |
| Gets the class name for the Articy type system based on import data. | |
| static FString | GetArticyLocalizerClassname (const UArticyImportData *Data, const bool bOmittPrefix=false) |
| Gets the class name for the Articy localizer system based on import data. | |
| static FString | GetMethodsProviderClassname (const UArticyImportData *Data, const bool bOmittPrefix=false) |
| Gets the class name for the methods provider based on import data. | |
| static FString | GetExpressoScriptsClassname (const UArticyImportData *Data, const bool bOmittPrefix=false) |
| Gets the class name for expresso scripts based on import data. | |
| static FString | GetFeatureInterfaceClassName (const UArticyImportData *Data, const FArticyTemplateFeatureDef &Feature, const bool bOmittPrefix=false) |
| Gets the class name for a feature interface based on import data. | |
| static bool | DeleteGeneratedCode (const FString &Filename="") |
| Deletes a file inside the source folder (empty Filename deletes the whole folder). | |
| static bool | DeleteExtraCode (const TArray< FString > &GeneratedFiles) |
| Deletes extra generated code files that are not in the provided list. | |
| static bool | DeleteGeneratedAssets (const FArticyPackageDefs &PackageDefs) |
| Deletes generated assets based on package definitions. | |
| static bool | RenameGeneratedAssets (const FArticyPackageDefs &PackageDefs) |
| Renames generated assets based on package definitions. | |
Manages the generation, compilation, and asset creation for Articy-imported data.
|
static |
Caches the content of code files in the source folder.
Loads the content of each file into memory for later restoration if needed.
|
static |
Deletes extra generated code files that are not in the provided list.
Iterates through the source folder and deletes files not matching any prefix from the generated files list.
| GeneratedFiles | A list of prefixes for the generated files to keep. |
|
static |
Deletes generated assets based on package definitions.
Removes assets not included in the import, handling invalid assets appropriately.
| PackageDefs | The package definitions used to determine which assets to delete. |
|
static |
Deletes a file inside the source folder (empty Filename deletes the whole folder).
Deletes generated code files in the source folder.
| Filename | The name of the file to delete, or empty to delete the whole folder. |
If the filename is empty, deletes the entire folder recursively.
| Filename | The name of the file to delete, or empty to delete the whole folder. |
|
static |
Generates assets based on the provided import data.
Handles asset generation, including handling renaming and deletion of generated assets.
| Data | The import data used for asset generation. |
This function handles asset generation, including handling renaming and deletion of generated assets.
| Data | The import data used for asset generation. |
|
static |
Generates code files based on the provided import data.
| Data | The import data used for code generation. |
This function manages the code generation process for various components such as global variables, databases, and scripts.
| Data | The import data used for code generation. |
|
static |
Gets the class name for the Articy localizer system based on import data.
| Data | The import data containing project details. |
| bOmittPrefix | Whether to omit the "U" prefix. |
|
static |
Gets the class name for the Articy type system based on import data.
| Data | The import data containing project details. |
| bOmittPrefix | Whether to omit the "U" prefix. |
|
static |
Gets the class name for the database based on import data.
| Data | The import data containing project details. |
| bOmittPrefix | Whether to omit the "U" prefix. |
|
static |
Gets the class name for expresso scripts based on import data.
| Data | The import data containing project details. |
| bOmittPrefix | Whether to omit the "U" prefix. |
|
static |
Gets the class name for a feature interface based on import data.
| Data | The import data containing project details. |
| Feature | The feature definition. |
| bOmittPrefix | Whether to omit the "I" prefix. |
|
static |
Helper methods for generated class/struct names.
Gets the filename for the generated interfaces based on import data.
| Data | The import data containing project details. |
|
static |
Gets the filename for the generated types based on import data.
| Data | The import data containing project details. |
|
static |
Gets the class name for global variables based on import data.
| Data | The import data containing project details. |
| bOmittPrefix | Whether to omit the "U" prefix. |
|
static |
Gets the class name for a global variable namespace based on import data.
| Data | The import data containing project details. |
| Namespace | The namespace for the global variables. |
|
static |
Gets the class name for the methods provider based on import data.
| Data | The import data containing project details. |
| bOmittPrefix | Whether to omit the "U" prefix. |
|
static |
Returns the main source folder for all the generated code.
Retrieves the main source folder for all generated code.
The source folder is determined based on the game's source directory and project name.
|
static |
Initiates the recompilation process for the generated code.
| Data | The import data used for recompilation. |
|
static |
Renames generated assets based on package definitions.
This function handles renaming of package assets when their names have changed.
| PackageDefs | The package definitions containing the new asset names. |
|
static |
Restores cached files from previous import sessions.
Attempts to write the cached file content back to disk.
This function attempts to write the cached file content back to disk.