class

FWolangClassRegistry

Module
Scripting
Header
#include "Scripting/WolangClassRegistry.h"
Namespace
Mowo

Constructors

SignatureNameDescription
FWolangClassRegistry(const FWolangClassRegistry&) = deleteFWolangClassRegistry

Public functions

ReturnsNameDescription
FWolangClassRegistry&Get
FWolangClassRegistry&operator=
uint32_tRefreshRescans <project>/Scripts/* (every folder with a wolang.toml) plus the packages added with AddPackageDirectory, and registers what is new.
uint32_tRefreshFrom
voidAddPackageDirectoryA package outside the project's Scripts folder (tests, plugins).
voidRemovePackageDirectory
const FWolangScriptClass*Find
const FWolangScriptClass*FindByClass
std::vector<const FWolangScriptClass*>GetClasses
std::vector<const FWolangScriptClass*>GetClassesInPackage
const std::vector<FWolangClassProblem>&GetProblems
std::vector<FWolangPackageScan>GetPackagesThe scanned packages, for the cook and the shim.
uint32_tRevisionBumped whenever a refresh changed anything a cache keys off.
voidClearDrops every class (tests): instances still alive keep a dangling class only if they outlive this, which a test must not let happen.
boolMapTypeThe Wolang types an editable field may have, as a script variable type.
boolParseLiteralA 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&) = delete

Get

C++
static FWolangClassRegistry& Get()

operator=

C++
FWolangClassRegistry& operator=(const FWolangClassRegistry&) = delete

Refresh

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) const

FindByClass

C++
const FWolangScriptClass* FindByClass(const MClass* cls) const

GetClasses

C++
std::vector<const FWolangScriptClass*> GetClasses() const

GetClassesInPackage

C++
std::vector<const FWolangScriptClass*> GetClassesInPackage(const std::filesystem::path& directory) const

GetProblems

C++
const std::vector<FWolangClassProblem>& GetProblems() const

GetPackages

C++
std::vector<FWolangPackageScan> GetPackages() const

The scanned packages, for the cook and the shim.

Revision

C++
uint32_t Revision() const

Bumped 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