摄像机区域的架构改动

This commit is contained in:
2026-05-15 14:47:24 +08:00
parent 1b37297585
commit f264329751
3591 changed files with 1687228 additions and 446503 deletions

View File

@@ -0,0 +1,24 @@
using System;
namespace BaseGames.Localization
{
/// <summary>
/// 本地化服务接口。通过 ServiceLocator 注册,供 UI 和游戏系统获取本地化文本。
/// </summary>
public interface ILocalizationService
{
/// <summary>当前激活的语言。</summary>
Language CurrentLanguage { get; }
/// <summary>
/// 获取本地化字符串。查找顺序:当前语言 → 回退语言English→ 直接返回 key。
/// </summary>
string Get(string key, string table = "UI");
/// <summary>切换游戏语言并通知所有订阅者刷新文本。</summary>
void SetLanguage(Language language);
/// <summary>语言切换时触发。</summary>
event Action<Language> OnLanguageChanged;
}
}