mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-27 22:41:56 +08:00
4e3425eda9
- 将attackstar.svg从UI目录移动到resources/common目录 - 将VerticalColorBar.tscn从UI/Variants目录移动到根components目录 - 将LaserSummoner.tscn从Bullets/Common目录移动到Bullets根目录 - 移除调试日志打印语句 - 优化ItemStore.gd的getTexture方法默认值处理 - 更新相关场景和脚本中的资源引用路径 - 添加FeedFilter调试工具组件 - 优化ComponentManager初始化逻辑
28 lines
581 B
GDScript
28 lines
581 B
GDScript
@tool
|
|
extends Node
|
|
class_name ItemStore
|
|
|
|
enum ItemType {
|
|
BASEBALL,
|
|
BASKETBALL,
|
|
APPLE,
|
|
BEACHBALL,
|
|
SOUL,
|
|
}
|
|
static var nameMap = {
|
|
ItemType.BASEBALL: "棒球",
|
|
ItemType.BASKETBALL: "篮球",
|
|
ItemType.APPLE: "苹果",
|
|
ItemType.BEACHBALL: "沙滩球",
|
|
ItemType.SOUL: "灵魂",
|
|
}
|
|
static var idMap = {
|
|
ItemType.BASEBALL: "baseball",
|
|
ItemType.BASKETBALL: "basketball",
|
|
ItemType.APPLE: "apple",
|
|
ItemType.BEACHBALL: "beachball",
|
|
ItemType.SOUL: "soul",
|
|
}
|
|
static func getTexture(type: ItemType) -> Texture2D:
|
|
return ComponentManager.getItemTexture(idMap.get(type, "baseball"))
|