Skip to content

Sein Entity Tag State Table

Struct · FSeinEntityTagStateTable

#include "State/SeinWorldState.h"

Per-entity tag states in flat arrays parallel to the entity pool, so tag queries cost one index and a generation compare. An entry exists only for a live entity; destroy paths remove it. References returned by Find/FindOrAdd are invalidated by a later FindOrAdd that grows the arrays.

C++ members (8)
  • FSeinEntityTagState* Find(FSeinEntityHandle Handle);
  • const FSeinEntityTagState* Find(FSeinEntityHandle Handle) const;
  • FSeinEntityTagState& FindOrAdd(FSeinEntityHandle Handle); Get or create. An occupied slot under another generation is a leaked entry from a missed destroy; it is replaced and flagged.
  • int32 Remove(FSeinEntityHandle Handle); Remove the exact entry; returns the number removed.
  • void Reset();
  • void GetKeys(TArray<FSeinEntityHandle>& OutKeys) const; Stored handles in ascending slot order.
  • int32 Num() const;
  • bool IsEmpty() const;