WCGASWorldContextSubsystem is a World Subsystem that serves as the central runtime authority for the World Context System in the Wonderscape GAS Ally plugin. It automatically initializes when a game world begins, loads context data definitions from Project Settings, builds runtime lookup maps for O(1) context queries, manages three layers of contexts (global, zone-based, per-actor), provides the query API for damage calculations and effect modifications, integrates with the Difficulty Subsystem for modifier scaling, and coordinates with Context Volumes for spatial context zones.
The World Context Subsystem orchestrates all environmental context management by providing:
AWCGASContextVolume actors for priority-based zone context resolutionShouldCreateSubsystem to only run in game worlds, not editor preview)LoadContextData() which retrieves configuration from UWCGASAllySettings via GetDefault<UWCGASAllySettings>()Settings->WorldContextData array, loading each UWCGASWorldContextData synchronously and validating ContextTagFWCGASCachedContextData with pre-processed element rules in fast lookup format (ElementTag → ModType → Value)ContextDataRegistry TMap (ContextTag → CachedData) for O(1) lookups