Skip to content

Sein Visual Event

Struct · FSeinVisualEvent

#include "Events/SeinVisualEvent.h"

deterministic: safe in simulation code

A single visual event emitted by the simulation for the render layer to consume. These are strictly one-way: simulation -> render. The render layer never writes back.

ESeinVisualEventType Type · default ESeinVisualEventType::EntitySpawned

Blueprint read-only

The type of visual event

FSeinEntityHandle PrimaryEntity

Blueprint read-only

Primary entity involved in this event

FSeinEntityHandle SecondaryEntity

Blueprint read-only

Secondary entity involved (e.g. damage source, target)

FFixedPoint Value

Blueprint read-only

Number carried by the event, such as a damage or heal amount. Some event types pack extra data into it; see the event type.

FGameplayTag Tag

Blueprint read-only

Gameplay tag for ability, effect, or entity-identity identification

FFixedVector Location

Blueprint read-only

World location relevant to the event

FSeinPlayerID PlayerID

Blueprint read-only

Player who owns or triggered this event

ESeinConstructionState OldConstructionState · default ESeinConstructionState::Complete

Blueprint read-only

Construction phase before this notification. Stage-only changes leave the phase unchanged.

ESeinConstructionState NewConstructionState · default ESeinConstructionState::Complete

Blueprint read-only

Construction phase after this notification.

FGameplayTag OldConstructionStage

Blueprint read-only

Designer milestone before this notification.

FGameplayTag NewConstructionStage

Blueprint read-only

Designer milestone after this notification.

FGameplayTag ReasonTag

Blueprint read-only

Optional reason-tag for CommandRejected events — a gameplay tag under SeinARTS.Command.Reject.* (Unaffordable / OnCooldown / PathUnreachable / GoalUnwalkable / etc.) letting UI surface “why” alongside “which command”. Empty for non-CommandRejected events.

C++ members (29)
  • static FSeinVisualEvent MakeSpawnEvent(FSeinEntityHandle Entity, FFixedVector Location); Create an entity spawn event
  • static FSeinVisualEvent MakeDestroyEvent(FSeinEntityHandle Entity); Create an entity destroy event
  • static FSeinVisualEvent MakeDamageAppliedEvent(FSeinEntityHandle Target, FSeinEntityHandle Source, FFixedPoint Amount, FGameplayTag DamageType); Create a DamageApplied event (per-hit). Tag carries the damage-type tag.
  • static FSeinVisualEvent MakeHealAppliedEvent(FSeinEntityHandle Target, FSeinEntityHandle Source, FFixedPoint Amount, FGameplayTag HealType); Create a HealApplied event (per-hit). Tag carries the heal-type tag.
  • static FSeinVisualEvent MakeDeathEvent(FSeinEntityHandle Dying, FSeinEntityHandle Killer); Create a Death event — entity’s health crossed zero. Consumed by UI / render for death animation routing; the entity is queued for destroy elsewhere.
  • static FSeinVisualEvent MakeKillEvent(FSeinEntityHandle Killer, FSeinEntityHandle Killed, FSeinPlayerID KillerPlayer); Create a Kill event — counterpart to Death, surfaces the killer side of a kill for kill-feed / scoreboard UI.
  • static FSeinVisualEvent MakeAbilityEvent(FSeinEntityHandle Entity, FGameplayTag AbilityTag, bool bActivated); Create an ability activation or deactivation event
  • static FSeinVisualEvent MakeProductionEvent(FSeinEntityHandle Building, FGameplayTag IdentityTag, bool bCompleted); Create a production started or completed event
  • static FSeinVisualEvent MakeEffectEvent(FSeinEntityHandle Target, FGameplayTag EffectTag, bool bApplied); Create an effect applied or removed event
  • static FSeinVisualEvent MakeAttributesChangedEvent(FSeinEntityHandle Entity); Create an attributes changed event
  • static FSeinVisualEvent MakeGameEvent(FGameplayTag EventTag, FSeinEntityHandle PrimaryEntity, FSeinEntityHandle SecondaryEntity = FSeinEntityHandle(), FFixedPoint Value = FFixedPoint::Zero, FFixedVector Location = FFixedVector::ZeroVector); Create a GameEvent named by EventTag, with the game’s own payload.
  • static FSeinVisualEvent MakeTechResearchedEvent(FSeinPlayerID Player, FGameplayTag TechTag); Create a tech researched event (for UI refresh).
  • static FSeinVisualEvent MakeTechRevokedEvent(FSeinPlayerID Player, FGameplayTag TechTag); Create a tech revoked event (complement to TechResearched).
  • static FSeinVisualEvent MakeProductionStalledEvent(FSeinEntityHandle Building, FGameplayTag IdentityTag); Create a production-stalled event (front queue entry at 100% waiting on an AtCompletion resource — typically pop cap — to free up).
  • static FSeinVisualEvent MakeConstructionStateChangedEvent(FSeinEntityHandle Entity, bool bUnderConstruction); Create a ConstructionStateChanged event. bUnderConstruction = true for spawn-time entry into construction state; false for completion. The bridged actor’s USeinConstructionRenderComponent consumes this to drive the placement-visual swap (hide main mesh + spawn placement visual on enter, reverse on exit).
  • static FSeinVisualEvent MakePingEvent(FSeinPlayerID Player, FFixedVector Location, FSeinEntityHandle OptionalTarget = FSeinEntityHandle()); Create a ping event at a world location, optionally targeting an entity
  • static FSeinVisualEvent MakeCommandRejectedEvent(FSeinPlayerID Player, FSeinEntityHandle Entity, FGameplayTag CommandTag, FGameplayTag ReasonTag = FGameplayTag()); Create a CommandRejected event for UI feedback. CommandTag goes in Tag; optional ReasonTag (under SeinARTS.Command.Reject.*) goes in the dedicated ReasonTag field for richer UI feedback.
  • static FSeinVisualEvent MakeNavLinkChangedEvent(int32 NavLinkID, bool bEnabled); Create a NavLinkChanged event — fires when SeinSetNavLinkEnabled toggles a link. Value encodes the new enabled state as 0 or 1; Tag unused.
  • static FSeinVisualEvent MakeTerrainMutatedEvent(FFixedVector Location, int32 CellCount); Create a TerrainMutated event — fires when runtime cell mutations occur (shelling, footprint register/unregister, nav-tag stamping). Location = mutation anchor; Value = affected-cell count (debug / render hints).
  • static FSeinVisualEvent MakeEntityRemovedFromWorldEvent(FSeinEntityHandle Entity);
  • static FSeinVisualEvent MakeEntityReturnedToWorldEvent(FSeinEntityHandle Entity, FFixedVector Location);
  • static FSeinVisualEvent MakePlayPreRenderedCinematicEvent(FGameplayTag CinematicIDTag, int32 SkipMode, int32 VoteThreshold); Create a PlayPreRenderedCinematic event. Renderer reads Tag as the cinematic ID (an FName packed into tag-string form), and Value encodes (SkipMode & 0xFF) | (VoteThreshold << 8) as a compact combined parameter carrier. Soft-object-ptr payloads are carried through designer-side binding; V1 keeps the event struct fixed-shape.
  • static FSeinVisualEvent MakeEndCinematicEvent(FGameplayTag CinematicIDTag); Create an EndCinematic event. Tag = cinematic ID (same mapping as PlayPreRenderedCinematic).
  • static FSeinVisualEvent MakeMatchFlowEvent(ESeinVisualEventType Type, FSeinPlayerID Player = FSeinPlayerID(), FGameplayTag Reason = FGameplayTag()); Create a match flow event of Type, with an optional player and reason tag.
  • static FSeinVisualEvent MakeVoteStartedEvent(FGameplayTag VoteType, FSeinPlayerID Initiator, int32 RequiredThreshold); Create a VoteStarted event. Tag = VoteType; PlayerID = Initiator; Value = RequiredThreshold (fixed-point-encoded int).
  • static FSeinVisualEvent MakeVoteProgressEvent(FGameplayTag VoteType, int32 YesCount, int32 NoCount); Create a VoteProgress event. Tag = VoteType; Value encodes (YesCount & 0xFFFF) | (NoCount << 16).
  • static FSeinVisualEvent MakeVoteResolvedEvent(FGameplayTag VoteType, bool bPassed); Create a VoteResolved event. Tag = VoteType; Value = 1 if passed, 0 if failed.
  • static FSeinVisualEvent MakeCollisionOverlapBeginEvent(FSeinEntityHandle A, FSeinEntityHandle B); Create a CollisionOverlapBegin event — two Overlap-responding colliders started overlapping. PrimaryEntity = A, SecondaryEntity = B.
  • static FSeinVisualEvent MakeCollisionOverlapEndEvent(FSeinEntityHandle A, FSeinEntityHandle B); Create a CollisionOverlapEnd event — counterpart to begin.