Navigation
API > API/Plugins > API/Plugins/MassSignals
References
| Module | MassSignals |
| Header | /Engine/Plugins/Runtime/MassGameplay/Source/MassSignals/Public/MassSignalTypes.h |
| Include | #include "MassSignalTypes.h" |
Syntax
struct FMassSignalNameLookup
Remarks
MassSignalNameLookup stores list of Signal names for each entity. The names are stored per entity as a bitmask, you can allocate new name using GetOrAddSignalName(). This limits the names to 64.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TMap< FMassEntityHandle, uint64 > | EntitySignals | Map from entity id to name bitmask | |
| TArray< FName > | SignalNames | Array of Signal names |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddSignalToEntity
(
const FMassEntityHandle Entity, |
Adds specified Signal name bitflag to an entity | |
| uint64 | GetOrAddSignalName
(
const FName SignalName |
Retrieve if it is already registered or adds new signal to the lookup and return the bitflag for that Signal @SignalName is the name of the signal to retrieve or add to the lookup. | |
| void | GetSignalsForEntity
(
const FMassEntityHandle Entity, |
Retrieve for a specific entity the raised signal this frame | |
| void | Reset () |
Empties the name lookup and entity signals |
Constants
| Name | Description |
|---|---|
| MaxSignalNames | Max number of names each entity can contain |