NoJobEngine 2.0.7
Loading...
Searching...
No Matches
ProjectScriptManager.h
Go to the documentation of this file.
1
6#pragma once
7#include <filesystem>
8#include <functional>
9#include <string>
10#include <vector>
11
12namespace NoJob
13{
14 struct BTCallbackMetadata;
16 {
17 public:
18 using LogFunction = std::function<void(std::string)>;
19
20 static void SetLogger(LogFunction logger);
21 static bool Load(const std::filesystem::path& projectRoot);
22 static void Unload();
23 static bool IsLoaded();
24 static std::size_t LoadedScriptCount();
25 static std::vector<BTCallbackMetadata> BehaviorTreeCallbackCatalog();
26
27 private:
28 static void RegisterScript(struct ScriptDefinition definition);
29 };
30}
static bool Load(const std::filesystem::path &projectRoot)
static void SetLogger(LogFunction logger)
std::function< void(std::string)> LogFunction
static std::vector< BTCallbackMetadata > BehaviorTreeCallbackCatalog()