1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-06 03:37:13 +08:00

refactor: 重构资源路径和组件结构

- 将attackstar.svg从UI目录移动到resources/common目录
- 将VerticalColorBar.tscn从UI/Variants目录移动到根components目录
- 将LaserSummoner.tscn从Bullets/Common目录移动到Bullets根目录
- 移除调试日志打印语句
- 优化ItemStore.gd的getTexture方法默认值处理
- 更新相关场景和脚本中的资源引用路径
- 添加FeedFilter调试工具组件
- 优化ComponentManager初始化逻辑
This commit is contained in:
2025-09-21 13:56:50 +08:00
parent d54c050be9
commit 4e3425eda9
16 changed files with 124 additions and 31 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
@tool
extends Node
class_name ItemStore
enum ItemType {
@@ -23,4 +24,4 @@ static var idMap = {
ItemType.SOUL: "soul",
}
static func getTexture(type: ItemType) -> Texture2D:
return ComponentManager.getItemTexture(idMap[type])
return ComponentManager.getItemTexture(idMap.get(type, "baseball"))