Skip to content

Sein Resource Definition

Struct · FSeinResourceDefinition

#include "Data/SeinResourceTypes.h"

deterministic: safe in simulation code

Project-wide declaration of a single resource. Lives on USeinGameplaySettings::ResourceCatalog. Factions reference these by tag in their ResourceKit, optionally supplying overrides.

FGameplayTag ResourceTag

Editable in defaults and on instances · Blueprint read-only

Gameplay tag identifying this resource (must live under SeinARTS.Resource.*).

FText DisplayName

Editable in defaults and on instances · Blueprint read-only

Display name for UI (tooltips, resource bars).

TObjectPtr<UTexture2D> Icon

Editable in defaults and on instances · Blueprint read-only

Icon used in UI displays (resource bar, cost tooltips).

FFixedPoint DefaultStartingValue · default FFixedPoint::Zero

Editable in defaults and on instances · Blueprint read-only

Starting balance every player gets for this resource, unless the player’s faction resource kit or the match’s starting resources replace it.

FFixedPoint DefaultCap · default FFixedPoint::Zero

Editable in defaults and on instances · Blueprint read-only

Maximum balance. Zero means uncapped. Income past the cap follows Overflow Behavior. For a resource whose costs add toward the cap, such as supply, a cost that would pass the cap is unaffordable.

ESeinResourceOverflowBehavior OverflowBehavior · default ESeinResourceOverflowBehavior::ClampAtCap

Editable in defaults and on instances · Blueprint read-only

How overflow is handled when income would exceed the cap.

ESeinResourceSpendBehavior SpendBehavior · default ESeinResourceSpendBehavior::RejectOnInsufficient

Editable in defaults and on instances · Blueprint read-only

How insufficient-balance spends are handled.

ESeinCostDirection CostDirection · default ESeinCostDirection::DeductFromBalance

Editable in defaults and on instances · Blueprint read-only

How cost entries against this resource are applied (deduct vs add-toward-cap).

ESeinProductionDeductionTiming ProductionDeductionTiming · default ESeinProductionDeductionTiming::AtEnqueue

Editable in defaults and on instances · Blueprint read-only

When production costs against this resource commit.