Overview

WCGASRegenerationSubsystem is a Game Instance Subsystem that generates and manages runtime Gameplay Effects for automatic attribute regeneration and degeneration in the Wonderscape GAS Ally plugin. It automatically initializes at game start, generates regeneration/degeneration effects from attribute definitions, caches them for efficient reuse, and provides the infrastructure for applying/removing periodic attribute changes where attributes automatically restore or drain over time (e.g., Health regeneration, Hunger degeneration).


Purpose

The Regeneration Subsystem orchestrates the automatic regeneration and degeneration system by providing:


How It Works

Initialization Flow

  1. Subsystem Startup: When the GameInstance initializes, this subsystem automatically loads
  2. Registry Dependency: Retrieves UWCGASAttributeRegistry subsystem to access attribute definitions
  3. Scan Attributes: Loads all registered UWCGASAttributeDefinition assets using the registry
  4. Process Regeneration: For each attribute with bEnableRegeneration = true:
  5. Process Degeneration: For each attribute with bEnableDegeneration = true: