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
| Type | Name | Description |
|---|---|---|
static constexpr int | BUILTIN_TAG_COUNT | Indices 0-6, cannot be removed. Default 7. |
static constexpr const char* BUILTIN_TAGS[] = | ||
static constexpr int | BUILTIN_LAYER_COUNT | Layer 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 int | MAX_LAYERS | Default FLayerRegistry::kMaxLayers. |
Constructors
| Signature | Name | Description |
|---|---|---|
TagLayerConfig() | TagLayerConfig | |
~TagLayerConfig() = default | ~TagLayerConfig |
Public functions
| Returns | Name | Description |
|---|---|---|
TagLayerConfig& | Get | |
const std::vector<std::string>& | GetTags | |
int | GetTagIndex | |
std::string | GetTagName | |
bool | AddTag | Add a custom tag. |
bool | RemoveTag | Remove a custom tag. |
bool | IsBuiltinTag | |
const std::vector<std::string>& | GetLayers | |
int | GetLayerIndex | |
std::string | GetLayerName | |
LayerMask | GetLayerMask | |
bool | SetLayerName | Only the non-built-in slots may be renamed. |
bool | IsBuiltinLayer | |
bool | CanCollide | |
void | SetCollision | Symmetric — sets both directions. |
uint32_t | GetCollisionMask | |
void | ResetCollisionMatrix | Back to all layers colliding. |
std::vector<std::string> | GetCustomTags | |
std::vector<std::pair<int, std::string>> | GetCustomLayers | Indices 8-31 with non-empty names. |
void | SetCustomTags | Appends to the built-in set. |
void | SetCustomLayers |
Function details
TagLayerConfig
C++
TagLayerConfig()~TagLayerConfig
C++
~TagLayerConfig() = defaultGet
C++
static TagLayerConfig& Get()GetTags
C++
const std::vector<std::string>& GetTags() constGetTagIndex
C++
int GetTagIndex(const std::string& tag) constGetTagName
C++
std::string GetTagName(int index) constAddTag
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) constGetLayers
C++
const std::vector<std::string>& GetLayers() constGetLayerIndex
C++
int GetLayerIndex(const std::string& layerName) constGetLayerName
C++
std::string GetLayerName(int index) constGetLayerMask
C++
LayerMask GetLayerMask(const std::string& layerName) constSetLayerName
C++
bool SetLayerName(int index, const std::string& name)Only the non-built-in slots may be renamed.
IsBuiltinLayer
C++
bool IsBuiltinLayer(int index) constCanCollide
C++
bool CanCollide(int layerA, int layerB) constSetCollision
C++
void SetCollision(int layerA, int layerB, bool canCollide)Symmetric — sets both directions.
GetCollisionMask
C++
uint32_t GetCollisionMask(int layer) constResetCollisionMatrix
C++
void ResetCollisionMatrix()Back to all layers colliding.
GetCustomTags
C++
std::vector<std::string> GetCustomTags() constGetCustomLayers
C++
std::vector<std::pair<int, std::string>> GetCustomLayers() constIndices 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