Overview

WCGASAttributeRegistry is a Game Instance Subsystem that serves as the central runtime registry for all attribute definitions in the Wonderscape GAS Ally plugin. It automatically initializes at game start, loads all attribute definitions from Project Settings, assigns them to pool slots (Attribute_00 through Attribute_149), and provides fast lookup capabilities for the attribute system.


Purpose

The Attribute Registry serves as the bridge between designer-created WCGASAttributeDefinition Data Assets and the runtime WCGASAttributePool that lives on Ability System Components. It provides:


How It Works

Initialization Flow

  1. Game Start: When the GameInstance initializes, the registry automatically loads
  2. Load Settings: Reads the Attribute Definitions array from Project Settings > Plugins > WC GAS Ally
  3. Validation: Each attribute definition is validated for uniqueness (name, tag, GUID)
  4. Slot Assignment: Valid attributes are assigned pool slots (0-149) based on their order in the settings array
  5. Registration: Attributes are added to internal lookup maps for fast queries

Slot Assignment