SeinARTS Production Library
Class · USeinProductionBPFL : UBlueprintFunctionLibrary
#include "Lib/SeinProductionBPFL.h"
deterministic: safe in simulation code
Nodes for production queues: check whether an item can be queued, enqueue and cancel items, set rally points, change queue limits per producer or player, and read or set Production Data.
Blueprint nodes
Section titled “Blueprint nodes”Can Enqueue Production
Section titled “Can Enqueue Production”Check whether another item can be queued. Used includes queued and completed purchases in the effective scope. Producer overrides take precedence over player overrides and class defaults.
static bool SeinCanEnqueueProduction(const UObject* WorldContextObject, FSeinEntityHandle Producer, TSubclassOf<AActor> ProducibleClass, ESeinProductionQueueResult& Result, FSeinProductionQueueSettings& Settings, int64& Used);Set Production Unit Queue Policy
Section titled “Set Production Unit Queue Policy”Override this producible’s policy for one producer. Existing entries and completed history remain. Returns false for an invalid amount or unauthorized call.
static bool SeinSetProductionUnitQueuePolicy(const UObject* WorldContextObject, FSeinEntityHandle Producer, TSubclassOf<AActor> ProducibleClass, FSeinProductionQueueSettings Settings);Clear Production Unit Queue Policy
Section titled “Clear Production Unit Queue Policy”Clear this producer’s override for the item, restoring the player override or authored defaults. Does not clear history.
static bool SeinClearProductionUnitQueuePolicy(const UObject* WorldContextObject, FSeinEntityHandle Producer, TSubclassOf<AActor> ProducibleClass);Set Player Queue Policy
Section titled “Set Player Queue Policy”Override this producible’s policy for a player. Producer overrides take precedence. Existing entries and completed history remain.
static bool SeinSetPlayerQueuePolicy(const UObject* WorldContextObject, FSeinPlayerID Player, TSubclassOf<AActor> ProducibleClass, FSeinProductionQueueSettings Settings);Clear Player Queue Policy
Section titled “Clear Player Queue Policy”Clear this player’s override for the item, restoring authored defaults where no producer override exists. Does not clear history.
static bool SeinClearPlayerQueuePolicy(const UObject* WorldContextObject, FSeinPlayerID Player, TSubclassOf<AActor> ProducibleClass);Get Production Data
Section titled “Get Production Data”Read Production Data for an entity. Returns false and logs a warning on invalid handle or missing component; OutData is untouched on failure.
static bool SeinGetProductionData(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle, FSeinProductionPayload& OutData);Get Production Data
Section titled “Get Production Data”Batch read Production Data. Invalid/missing entities are skipped (warning logged).
static TArray<FSeinProductionPayload> SeinGetProductionDataMany(const UObject* WorldContextObject, const TArray<FSeinEntityHandle>& EntityHandles);Set Production Data
Section titled “Set Production Data”Overwrite the entity’s whole Production Data. False when the entity has none. Prefer Enqueue Production, Cancel Production and the rally nodes, which keep the queue and its refunds consistent.
static bool SeinSetProductionData(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle, const FSeinProductionPayload& NewData);Set Current Build Progress
Section titled “Set Current Build Progress”Set the progress of the item at the front of the entity’s production queue. False when the entity has no production queue.
static bool SeinSetCurrentBuildProgress(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle, FFixedPoint NewProgress);Enqueue Production
Section titled “Enqueue Production”Append a queue entry on Ability’s owner for Producible Class, reading build time, refund policy and research effect from the class’s Producible Data. The activation’s deducted cost becomes the entry’s refundable at-enqueue principal; a Production Queue ability also transfers its deferred bucket. No-op (refunding the activation) when the owner has no production queue, the queue is full or the class has no Producible Data.
static void SeinEnqueueProduction(USeinAbility* Ability, TSubclassOf<AActor> ProducibleClass);Cancel Production
Section titled “Cancel Production”Cancel one item in Ability’s owner’s production queue and refund its original payer under its refund policy. Queue Index is zero-based: 0 cancels the front item and resets progress; later indices remove waiting items. False without changes for an invalid index, an owner without a queue, or a call outside a simulation callback.
Defaults: QueueIndex = 0.
static bool SeinCancelProduction(USeinAbility* Ability, int32 QueueIndex = 0);Set Rally Point
Section titled “Set Rally Point”Rally Ability’s owner’s produced units to a transform. No-op without a production queue.
static void SeinSetRallyPoint(USeinAbility* Ability, const FFixedTransform& Transform);Set Rally Entity
Section titled “Set Rally Entity”Rally Ability’s owner’s produced units to an entity’s transform at dispatch time.
static void SeinSetRallyEntity(USeinAbility* Ability, FSeinEntityHandle RallyEntity);Clear Rally Point
Section titled “Clear Rally Point”Clear Ability’s owner’s rally target; produced units stay beside the producer.
static void SeinClearRallyPoint(USeinAbility* Ability);