(client) feat:支持定义实体的碰撞体大小和偏移;建筑支持定义实体建筑和瓦片建筑,建筑支持指定按钮回调;添加存档管理器;Dev支持设置是否暂停;实体允许定义事件组;添加基地界面 (#57)

Co-authored-by: m0_75251201 <m0_75251201@noreply.gitcode.com>
Reviewed-on: http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite/pulls/57
This commit is contained in:
2025-09-28 15:02:57 +08:00
parent 87a8abe86c
commit aff747be17
232 changed files with 39203 additions and 4161 deletions

View File

@@ -0,0 +1,76 @@
<?xml version="1.0" encoding="utf-8"?>
<Define>
<ImageDef>
<defName>Shop</defName>
<label>商店贴图</label>
<path>Resources\Map\Outpost\Store.png</path>
</ImageDef>
<EventDef>
<defName>OpenShopUI</defName>
<label>打开商店界面</label>
<description>当玩家与商店交互时打开商店界面</description>
<workClass>Event_OpenUI</workClass>
<parameter>
{
"uiName": "Shop"
}
</parameter>
</EventDef>
<EventDef>
<defName>OpenSkillTreeUI</defName>
<label>打开技能树界面</label>
<description>当玩家与技能树商店交互时打开技能树界面</description>
<workClass>Event_OpenUI</workClass>
<parameter>
{
"uiName": "SkillTree"
}
</parameter>
</EventDef>
<BuildingDef>
<defName>Shop</defName>
<label>商店</label>
<description>一个可以购买物品的商店</description>
<attributes>
<health>500</health>
</attributes>
<affiliation>player</affiliation>
<buildingType>Dynamic</buildingType>
<drawingOrder>
<idle_down>
<textures>
<li>Shop</li>
</textures>
</idle_down>
</drawingOrder>
<colliderSize>4,4</colliderSize>
<detectionRadius>6</detectionRadius>
<triggerEvents>
<li>OpenShopUI</li>
</triggerEvents>
</BuildingDef>
<BuildingDef>
<defName>SkillTreeShop</defName>
<label>技能树商店</label>
<description>一个可以升级技能的商店</description>
<attributes>
<health>500</health>
</attributes>
<affiliation>player</affiliation>
<buildingType>Dynamic</buildingType>
<drawingOrder>
<idle_down>
<textures>
<li>Shop</li>
</textures>
</idle_down>
</drawingOrder>
<colliderSize>4,4</colliderSize>
<detectionRadius>6</detectionRadius>
<triggerEvents>
<li>OpenSkillTreeUI</li>
</triggerEvents>
</BuildingDef>
</Define>

View File

@@ -9,5 +9,7 @@
</attributes>
<affiliation>none</affiliation>
<slowDown>1</slowDown>
<buildingType>Static</buildingType>
<tile>BaseWall</tile>
</BuildingDef>
</Define>