How razzmatazzz/remnantsaveguardian works
Main Components
A. User Interface Layer (MVVM Architecture)
• Views (Windows and Pages)
• ViewModels
• User Controls
B. Core Services Layer
• Save Management
• World Analysis
• Backup System
• Localization System
C. Data Layer
• Game Data (game.json)
• Save File Processing
• Configuration Storage
Component Relationships
┌─ UI Layer ─────────────────────┐
• ┌─ Views ──┐ ┌─ ViewModels ─┐ │
• Main Window│←→│MainWindowVM │ │
• Pages │←→│BackupsVM │ │
• Controls │←→│SettingsVM │ │
• ┘ │WorldAnalyzerVM│ │
• ┘ │
• Services Layer ───────────────┤
• ┌─ Core Services ────────────┐ │
• ApplicationHostService │ │
• PageService │ │
• SaveWatcher │ │
• UpdateCheck │ │
• ┘ │
• Business Logic Layer ─────────┤
• ┌─ Game Logic ───────────────┐ │
• RemnantSave │ │
• RemnantWorldEvent │ │
• RemnantCharacter │ │
• SaveBackup │ │
• ┘ │
• Data Layer ──────────────────┤
• ┌─ Storage ────┐ ┌─ Config ─┐ │
• WindowsSave │ │AppConfig │ │
• game.json │ │Settings │ │
• ┘ └──────────┘ │
• ┘
Key Elements to Highlight
A. MVVM Pattern Implementation:
• Clear separation between Views and ViewModels
• Data binding relationships
B. Localization System:
• Locales directory structure
• Connection to UI components
C. Save Management:
• Flow from game saves to backup storage
• Monitoring system (SaveWatcher)
D. World Analysis:
• Connection between game data and analysis components
Implementation Notes
• Maintain consistent styling and naming
• Notes for critical processes
Remember to include the localization system's integration, as the application supports multiple languages, and show how the game.json data flows through the world analyzer components to provide game information to the user.
This structure reflects a desktop application that follows modern .NET practices while maintaining a clear separation of concerns and modularity in its architecture.