NoJobEngine 2.0.7
Loading...
Searching...
No Matches
ProjectAssetOperations.h
Go to the documentation of this file.
1
6#pragma once
7
9#include <filesystem>
10#include <functional>
11#include <string>
12
13namespace NoJob
14{
16 {
17 public:
18 using LogFunction = std::function<void(std::string)>;
19
20 static std::string SanitizeCppIdentifier(std::string name);
21 static bool CreateCppScript(const std::filesystem::path& scriptsDirectory,
22 const std::string& requestedName,
23 const LogFunction& log = {});
24 static std::filesystem::path CreatePrefab(Entity source,
25 const std::filesystem::path& directory,
26 const LogFunction& log = {});
27 };
28}
Entity declarations for the Scenes and Native Scripting subsystem.
std::function< void(std::string)> LogFunction
static std::filesystem::path CreatePrefab(Entity source, const std::filesystem::path &directory, const LogFunction &log={})
static std::string SanitizeCppIdentifier(std::string name)
static bool CreateCppScript(const std::filesystem::path &scriptsDirectory, const std::string &requestedName, const LogFunction &log={})