(client) feat:实现掉落物,UI显示,维度

This commit is contained in:
m0_75251201
2025-08-27 13:56:22 +08:00
parent f04c89046b
commit 0c99e2beee
46 changed files with 6150 additions and 1809 deletions

View File

@ -0,0 +1,21 @@
namespace Data
{
public enum EventType
{
None,
SpawnCharacter,
SpawnBuilding,
SpawnBullet,
SpawnPickup,
SpawnDefaultEntity,
}
public class EventDef : Define
{
public EventType eventType = EventType.None;
public EntityDef entityDef_Character; // 用于 EventType.SpawnCharacter
public BuildingDef entityDef_Building; // 用于 EventType.SpawnBuilding
public BulletDef entityDef_Bullet; // 用于 EventType.SpawnBullet
public ItemDef entityDef_Pickup; // 用于 EventType.SpawnPickup
public EventDef() { }
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 70b8a820a04c4cafad4c9b91b9d3b01d
timeCreated: 1756267922

View File

@ -10,7 +10,8 @@ namespace Data
}
public class ItemDef : Define
{
public ImageDef texture;
public float FPS = 0;
public string[] textures;
public ItemRarity rarity = ItemRarity.Common;
public int maxStack = 10; // 最大堆叠数量默认为10
public bool ssEquippable = false; // 是否可装备