class

TagLayerConfig

Tags are arbitrary strings for grouping entities; layers are 32 slots (0-31) used for physics and rendering filtering.

Module
MowoEngine
Header
#include "Core/TagLayerConfig.h"
Namespace
Mowo

Properties

TypeNameDescription
static constexpr intBUILTIN_TAG_COUNTIndices 0-6, cannot be removed. Default 7.
static constexpr const char* BUILTIN_TAGS[] =
static constexpr intBUILTIN_LAYER_COUNTLayer names live in FLayerRegistry (Project module) — the same list the inspector's layer-mask dropdown and Project Settings > Layers edit. These mirror its constants so callers keep compiling. Default FLayerRegistry::kBuiltinCount.
static constexpr intMAX_LAYERSDefault FLayerRegistry::kMaxLayers.

Constructors

SignatureNameDescription
TagLayerConfig()TagLayerConfig
~TagLayerConfig() = default~TagLayerConfig

Public functions

ReturnsNameDescription
TagLayerConfig&Get
const std::vector<std::string>&GetTags
intGetTagIndex
std::stringGetTagName
boolAddTagAdd a custom tag.
boolRemoveTagRemove a custom tag.
boolIsBuiltinTag
const std::vector<std::string>&GetLayers
intGetLayerIndex
std::stringGetLayerName
LayerMaskGetLayerMask
boolSetLayerNameOnly the non-built-in slots may be renamed.
boolIsBuiltinLayer
boolCanCollide
voidSetCollisionSymmetric — sets both directions.
uint32_tGetCollisionMask
voidResetCollisionMatrixBack to all layers colliding.
std::vector<std::string>GetCustomTags
std::vector<std::pair<int, std::string>>GetCustomLayersIndices 8-31 with non-empty names.
voidSetCustomTagsAppends to the built-in set.
voidSetCustomLayers

Function details

TagLayerConfig

C++
TagLayerConfig()

~TagLayerConfig

C++
~TagLayerConfig() = default

Get

C++
static TagLayerConfig& Get()

GetTags

C++
const std::vector<std::string>& GetTags() const

GetTagIndex

C++
int GetTagIndex(const std::string& tag) const

GetTagName

C++
std::string GetTagName(int index) const

AddTag

C++
bool AddTag(const std::string& tag)

Add a custom tag. Returns true if added (false if duplicate or invalid).

RemoveTag

C++
bool RemoveTag(const std::string& tag)

Remove a custom tag. Returns true if removed (false if built-in or not found).

IsBuiltinTag

C++
bool IsBuiltinTag(const std::string& tag) const

GetLayers

C++
const std::vector<std::string>& GetLayers() const

GetLayerIndex

C++
int GetLayerIndex(const std::string& layerName) const

GetLayerName

C++
std::string GetLayerName(int index) const

GetLayerMask

C++
LayerMask GetLayerMask(const std::string& layerName) const

SetLayerName

C++
bool SetLayerName(int index, const std::string& name)

Only the non-built-in slots may be renamed.

IsBuiltinLayer

C++
bool IsBuiltinLayer(int index) const

CanCollide

C++
bool CanCollide(int layerA, int layerB) const

SetCollision

C++
void SetCollision(int layerA, int layerB, bool canCollide)

Symmetric — sets both directions.

GetCollisionMask

C++
uint32_t GetCollisionMask(int layer) const

ResetCollisionMatrix

C++
void ResetCollisionMatrix()

Back to all layers colliding.

GetCustomTags

C++
std::vector<std::string> GetCustomTags() const

GetCustomLayers

C++
std::vector<std::pair<int, std::string>> GetCustomLayers() const

Indices 8-31 with non-empty names.

SetCustomTags

C++
void SetCustomTags(const std::vector<std::string>& customTags)

Appends to the built-in set.

SetCustomLayers

C++
void SetCustomLayers(const std::vector<std::pair<int, std::string>>& customLayers)
Generated from Core/TagLayerConfig.h via mowoengine.json · Oct 27, 2026Version 1.0.0