mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 18:52:08 +08:00
This PR refactors code that used multi-line if/else statements to use the ternary operator for more concise and readable assignments. - if statement can be rewritten using the ternary operator: The original code assigned values based on Storage.ExistsAsync(key) with separate if and else blocks, leading to verbose multi-line statements. We have replaced these with single-line ternary expressions in both the generic GetAsync<T> method and the UnifiedSettingsFile loader, reducing code duplication and improving clarity. > This Autofix was generated by AI. Please review the change before merging.
GFramework.Game
GFramework 框架的游戏通用模块,提供游戏开发常用的功能。
主要功能
- Settings - 游戏设置系统,支持设置分类和配置应用
依赖关系
- 依赖 GFramework.Core
- 依赖 GFramework.Core.Abstractions
详细文档
参见 docs/zh-CN/game/ 目录下的详细文档。