FPlaceableActorRegistry
- Module
- Game
- Header
#include "Game/PlaceableActorRegistry.h"- Namespace
Mowo
Constructors
| Signature | Name | Description |
|---|---|---|
FPlaceableActorRegistry(const FPlaceableActorRegistry&) = delete | FPlaceableActorRegistry |
Public functions
| Returns | Name | Description |
|---|---|---|
FPlaceableActorRegistry& | Get | |
FPlaceableActorRegistry& | operator= | |
void | Register | owner names the registering module (FModuleAnchor): a plugin's placeable entries leave the palette when it unloads instead of offering a class nothing can spawn any more. |
size_t | RemoveAllInModule | |
const FPlaceableActorInfo* | FindByPlaceId | |
const std::vector<FPlaceableActorInfo>& | GetAll | |
std::vector<std::string> | GetCategories | |
void | RefreshUserClasses | A class the project itself declares — a Visual Script class saved from the Actor Editor, a mbt newclass C++ actor — becomes placeable by DERIVING from one that already is. |
uint32_t | Revision | Bumped on every change to the entry list — a palette that cached its rows compares this instead of rebuilding them each frame. |
const char* | UserClassCategory | Category for a class whose nearest placeable ancestor carries no grouping worth inheriting (the bare empty-actor entry) — the palette's all-classes group. |
const char* | BasicCategory | The curated Basic tab, in its own order (BasicOrder). |
std::vector<const FPlaceableActorInfo*> | GetBasic | |
std::string | DisplayNameForClass | "ADoorFrame" -> "Door Frame". |
std::string | PlaceIdForClass | Lowercased class name. |
Function details
FPlaceableActorRegistry
FPlaceableActorRegistry(const FPlaceableActorRegistry&) = deleteGet
static FPlaceableActorRegistry& Get()operator=
FPlaceableActorRegistry& operator=(const FPlaceableActorRegistry&) = deleteRegister
void Register(FPlaceableActorInfo info, const void* owner = FModuleAnchor::Here())owner names the registering module (FModuleAnchor): a plugin's placeable entries leave the palette when it unloads instead of offering a class nothing can spawn any more.
RemoveAllInModule
size_t RemoveAllInModule(void* moduleHandle)FindByPlaceId
const FPlaceableActorInfo* FindByPlaceId(const std::string& placeId) constGetAll
const std::vector<FPlaceableActorInfo>& GetAll() constGetCategories
std::vector<std::string> GetCategories() constRefreshUserClasses
void RefreshUserClasses()A class the project itself declares — a Visual Script class saved from the Actor Editor, a mbt newclass C++ actor — becomes placeable by DERIVING from one that already is. Neither MClass nor VisualScriptClass carries placement metadata of its own, so the nearest placeable ancestor supplies the category and the icon; the mesh type is deliberately not inherited, because a subclass builds its own geometry from its components. Called for you by GetAll/FindByPlaceId/GetCategories whenever the class tables have moved; public so a caller that just compiled a class can force it without waiting for the next read.
Revision
uint32_t Revision() constBumped on every change to the entry list — a palette that cached its rows compares this instead of rebuilding them each frame. Derived entries appear and disappear with hot reload, so a cache that never re-reads shows a class that is gone and hides one that just arrived.
UserClassCategory
static const char* UserClassCategory()Category for a class whose nearest placeable ancestor carries no grouping worth inheriting (the bare empty-actor entry) — the palette's all-classes group.
BasicCategory
static const char* BasicCategory()The curated Basic tab, in its own order (BasicOrder).
GetBasic
std::vector<const FPlaceableActorInfo*> GetBasic() constDisplayNameForClass
static std::string DisplayNameForClass(const std::string& className)"ADoorFrame" -> "Door Frame". The palette shows names an artist reads, and a class name is the only label a derived entry has.
PlaceIdForClass
static std::string PlaceIdForClass(const std::string& className)Lowercased class name. Placement ids are the scene's spawn key, so a derived one has to be stable across sessions rather than an index.