引入 UISerializationRoot 和 Item

- 完成 MenuForm 和 SelectRoleForm 的迁移
This commit is contained in:
2026-09-13 22:18:29 +08:00
parent e2fdb660ab
commit 091a29db63
101 changed files with 5281 additions and 5753 deletions
@@ -25,29 +25,13 @@ namespace SepCore.UI
ItemType = ItemType.Weapon;
}
public GoodsItemContext(GoodsItemRawData rawData)
public GoodsItemContext(GoodsItemRawData rawData) : this()
{
if (rawData == null)
{
Name = string.Empty;
Description = string.Empty;
Rarity = Rarity.White;
Price = 0;
Icon = null;
ItemType = ItemType.Weapon;
return;
}
Price = rawData.Price;
Rarity = rawData.Rarity;
ItemType = rawData.ItemType;
if (rawData.DataRow == null)
{
Icon = null;
Name = string.Empty;
}
else if (ItemType == ItemType.Weapon)
if (ItemType == ItemType.Weapon)
{
if (rawData.DataRow is WeaponConfig weaponConfig)
{