Skip to content

Sein Resources Data

Struct · FSeinResourcesPayload : FSeinPayload

Parent: Sein Component Data

#include "Components/SeinResourcesPayload.h"

deterministic: safe in simulation code

A player entity’s resources, keyed by resource tag (SeinARTS.Resource.*). The resource catalog in the project settings and the faction’s resource kit set the starting balances and caps when the player registers.

TMap<FGameplayTag, FFixedPoint> Resources

Editable in defaults and on instances · Blueprint read and write

Current balance of each resource, keyed by resource tag. Starting balances come from the resource catalog, the faction’s resource kit and the match’s starting resources. Change balances with the resource nodes rather than editing this directly.

TMap<FGameplayTag, FFixedPoint> ResourceCaps

Blueprint read-only

Cap overrides. A tag missing here uses its catalog default.

C++ members (2)
  • FFixedPoint GetResource(FGameplayTag ResourceTag) const; The balance of one resource, or zero when the player has none.
  • void SetResource(FGameplayTag ResourceTag, FFixedPoint Amount);