How hex-dragon/pcl2 works
Main Components
a. User Interface Layer
• WPF-based UI components (Controls folder)
• Pages system with multiple sections (Pages folder)
• Custom themes and resources (Resources folder)
b. Core Modules Layer
• Base Module System
• Minecraft Integration Module
• Download Management
• Authentication System
• Settings Management
c. Resource Management Layer
• Language Resources
• Help Documentation
┌─────────────────────────────────────────────────────┐
• Presentation Layer │
• ┬─────────────────────┬─────────────────┤
• Launch UI │ Download UI │ Settings UI │
• (Pages) │ (Pages) │ (Pages) │
• ┴─────────────────────┴─────────────────┤
• Custom Controls Layer │
• (Buttons, Cards, ComboBoxes, etc.) │
• ┤
• Core Modules │
• ┬──────────┬───────────┬──────────────────┤
• Base │ Minecraft│ Download │ Event │
• Module │ Module │ Module │ Handling │
• ┴──────────┴───────────┴──────────────────┤
• Resource Management │
• ┤
• External Dependencies │
• (Java Runtime, Minecraft Files, etc.) │
• ┘
Important Elements to Highlight
a. Module Integration:
• Connections between ModMinecraft and ModLaunch
• ModDownload's interaction with external resources
• Authentication flow through different login methods
b. Data Flow:
• User input through UI controls
• Configuration management
• Game launching process
• Resource downloading and management
Implementation Details
• Annotations for critical processes like game launching and mod management
→ Direct Dependency
⇢ Event Flow
□ Module
○ External Service
◇ User Interface Component