class

FViewerRegistry

Module
Game
Header
#include "Game/FViewerRegistry.h"
Namespace
Mowo

Type aliases

AliasDescription
using FHandle = uint32_t
using FProvider = std::function<void(const FViewerQuery& query, std::vector<FViewerInfo>& out)>

Constructors

SignatureNameDescription
FViewerRegistry(const FViewerRegistry&) = deleteFViewerRegistry

Public functions

ReturnsNameDescription
FViewerRegistry&Get
FViewerRegistry&operator=
FHandleAddProviderThe host's contribution.
voidRemoveProvider
std::vector<FViewerInfo>GetViewersEvery viewer of the world: the built-in camera answer for a play or game world, plus whatever the providers add.
std::vector<FViewerInfo>GetViewersThe same question from a scene system, which is handed the ECS world only.
voidBindWorldKept by MWorld::SetECSWorld so the ECS overload can find the actor world.
voidUnbindWorld
MWorld*FindWorld

Function details

FViewerRegistry

C++
FViewerRegistry(const FViewerRegistry&) = delete

Get

C++
static FViewerRegistry& Get()

operator=

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

AddProvider

C++
FHandle AddProvider(FProvider provider)

The host's contribution. The handle removes it again; a provider living in a module that unloads must be removed first or the call lands in unmapped code.

RemoveProvider

C++
void RemoveProvider(FHandle handle)

GetViewers

C++
std::vector<FViewerInfo> GetViewers(const MWorld* world) const

Every viewer of the world: the built-in camera answer for a play or game world, plus whatever the providers add.

GetViewers

C++
std::vector<FViewerInfo> GetViewers(const World* ecs) const

The same question from a scene system, which is handed the ECS world only.

BindWorld

C++
void BindWorld(const World* ecs, MWorld* world)

Kept by MWorld::SetECSWorld so the ECS overload can find the actor world.

UnbindWorld

C++
void UnbindWorld(const MWorld* world)

FindWorld

C++
MWorld* FindWorld(const World* ecs) const
Generated from Game/FViewerRegistry.h via game.json · Nov 5, 2026Version 1.0.0