Overview
WCGASSkillTreeComp is a comprehensive ActorComponent that manages runtime skill tree systems integrated with the Gameplay Ability System. It handles multiple skill trees per character, purchase/refund transactions with confirmation workflows, tree-level and branch-level respec operations, tier gating systems, cross-tree prerequisites, mastery rewards, build presets/templates, transaction history with undo capability, client-side prediction for multiplayer, and save/load persistence.
Core Functionality
- Manages multiple skill trees per character with runtime add/remove capability
- Provides confirmation-based transaction flow (Request → Confirm/Cancel) for purchase, refund, and respec operations
- Supports batch purchase transactions for multi-node purchases in a single atomic operation
- Implements tier gating systems with tree-wide or branch-scoped point requirements
- Handles cross-tree prerequisites allowing nodes to require investments in other skill trees
- Supports branch unlock requirements with race, blessing, class level, and custom requirement checks
- Implements mastery systems at both branch and tree levels with configurable rewards
- Provides build preset creation, comparison, and application for saved builds
- Maintains transaction history with configurable undo grace period
- Supports client-side prediction with automatic rollback on server mismatch
- Integrates with WCGASLevelingComponent for character level requirements
- Integrates with WCGASHeritageComponent for race, blessing, and class level requirements
- Supports async loading for large skill tree assets to prevent hitching
- Replicates tree state to all clients for consistent UI display
- Provides server-side validation delegate for custom anti-cheat and game logic
- Supports starting build presets for NPCs and template characters