class
FWolangClassRegistry
- Module
- Scripting
- Header
#include "Scripting/WolangClassRegistry.h"- Namespace
Mowo
Constructors
| Signature | Name | Description |
|---|---|---|
FWolangClassRegistry(const FWolangClassRegistry&) = delete | FWolangClassRegistry |
Public functions
| Returns | Name | Description |
|---|---|---|
FWolangClassRegistry& | Get | |
FWolangClassRegistry& | operator= | |
uint32_t | Refresh | Rescans <project>/Scripts/* (every folder with a wolang.toml) plus the packages added with AddPackageDirectory, and registers what is new. |
uint32_t | RefreshFrom | |
void | AddPackageDirectory | A package outside the project's Scripts folder (tests, plugins). |
void | RemovePackageDirectory | |
const FWolangScriptClass* | Find | |
const FWolangScriptClass* | FindByClass | |
std::vector<const FWolangScriptClass*> | GetClasses | |
std::vector<const FWolangScriptClass*> | GetClassesInPackage | |
const std::vector<FWolangClassProblem>& | GetProblems | |
std::vector<FWolangPackageScan> | GetPackages | The scanned packages, for the cook and the shim. |
uint32_t | Revision | Bumped whenever a refresh changed anything a cache keys off. |
void | Clear | Drops every class (tests): instances still alive keep a dangling class only if they outlive this, which a test must not let happen. |
bool | MapType | The Wolang types an editable field may have, as a script variable type. |
bool | ParseLiteral | A field's initializer as written, read into a value of type when it is a literal (numbers, bool, text, Vec2/Vec3(...), null); false otherwise. |
Function details
FWolangClassRegistry
C++
FWolangClassRegistry(const FWolangClassRegistry&) = deleteGet
C++
static FWolangClassRegistry& Get()operator=
C++
FWolangClassRegistry& operator=(const FWolangClassRegistry&) = deleteRefresh
C++
uint32_t Refresh()Rescans <project>/Scripts/* (every folder with a wolang.toml) plus the packages added with AddPackageDirectory, and registers what is new. Answers how many classes are registered afterwards.
RefreshFrom
C++
uint32_t RefreshFrom(const std::filesystem::path& scriptsRoot)AddPackageDirectory
C++
void AddPackageDirectory(const std::filesystem::path& directory)A package outside the project's Scripts folder (tests, plugins).
RemovePackageDirectory
C++
void RemovePackageDirectory(const std::filesystem::path& directory)Find
C++
const FWolangScriptClass* Find(const std::string& name) constFindByClass
C++
const FWolangScriptClass* FindByClass(const MClass* cls) constGetClasses
C++
std::vector<const FWolangScriptClass*> GetClasses() constGetClassesInPackage
C++
std::vector<const FWolangScriptClass*> GetClassesInPackage(const std::filesystem::path& directory) constGetProblems
C++
const std::vector<FWolangClassProblem>& GetProblems() constGetPackages
C++
std::vector<FWolangPackageScan> GetPackages() constThe scanned packages, for the cook and the shim.
Revision
C++
uint32_t Revision() constBumped whenever a refresh changed anything a cache keys off.
Clear
C++
void Clear()Drops every class (tests): instances still alive keep a dangling class only if they outlive this, which a test must not let happen.
MapType
C++
static bool MapType(const std::string& wolangType, FMValueType& outType, FScriptVariableMeta& meta)The Wolang types an editable field may have, as a script variable type.
ParseLiteral
C++
static bool ParseLiteral(const std::string& text, FMValueType type, VisualScriptValue& out)A field's initializer as written, read into a value of type when it is a literal (numbers, bool, text, Vec2/Vec3(...), null); false otherwise.
Generated from Scripting/WolangClassRegistry.h via scripting.json · Nov 3, 2026Version 1.0.0