UI 系统

This commit is contained in:
2026-06-08 11:26:17 +08:00
parent 1897658a00
commit b582317692
94 changed files with 33540 additions and 3726 deletions

View File

@@ -0,0 +1,19 @@
namespace BaseGames.Core
{
/// <summary>
/// 图鉴运行时查询服务。UI 经 <see cref="ServiceLocator"/> 取用,读取"已发现 / 击杀次数"。
/// 实现见 BaseGames.Progression.BestiaryService订阅 EVT_EnemyDied持久化到 SaveData.Journal
/// 以字符串 enemyId 解耦UI 与服务均不依赖敌人程序集。
/// </summary>
public interface IBestiaryService
{
/// <summary>该敌人是否已被记录(击杀过 / 遭遇过)。</summary>
bool IsDiscovered(string enemyId);
/// <summary>对该敌人的累计击杀次数(用于完整词条解锁 / 完成度)。</summary>
int GetKillCount(string enemyId);
/// <summary>已发现敌人总数(完成度 = 此值 / 图鉴条目总数,由 UI 侧按数据表长度计算)。</summary>
int DiscoveredCount { get; }
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 9f371aeab3546c247bf0044d434e2518
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: