添加 ShopForm 下的 StatForm,展示玩家属性

This commit is contained in:
2026-09-25 00:03:39 +08:00
parent c61eb7fb68
commit 051c075183
29 changed files with 6574 additions and 51 deletions
@@ -0,0 +1,26 @@
using System.Collections.Generic;
using SepCore.Definition;
namespace SepCore.UI
{
public class StatRawData
{
public Dictionary<StatType, float> Values { get; } = new Dictionary<StatType, float>();
public float this[StatType statType]
{
get => GetValue(statType);
set => SetValue(statType, value);
}
public float GetValue(StatType statType)
{
return Values.TryGetValue(statType, out float val) ? val : 0f;
}
public void SetValue(StatType statType, float value)
{
Values[statType] = value;
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 4677fc5d940aebd40a5a55cdb8b29628
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: