1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00

feat(召唤系统): 实现彩虹旗召唤物及相关功能

添加SummonBase作为召唤物基类,实现LGBTFlag召唤物
修改LGBTWeapon从发射子弹改为召唤彩虹旗
在ComponentManager中添加召唤物管理功能
更新公鸡角色预设使用彩虹旗武器
This commit is contained in:
2025-11-06 22:26:15 +08:00
parent 5efa92f5df
commit a273f644d2
11 changed files with 81 additions and 33 deletions
@@ -4,6 +4,7 @@ class_name ComponentManager
static var bullets = {}
static var characters = {}
static var summons = {}
static var effects = {}
static var feeds = []
static var uiComponents = {}
@@ -16,6 +17,8 @@ static func init():
bullets[DirTool.getBasenameWithoutExtension(i)] = load(i)
for i in DirTool.listdir("res://components/Characters"):
characters[DirTool.getBasenameWithoutExtension(i)] = load(i)
for i in DirTool.listdir("res://components/Summons"):
summons[DirTool.getBasenameWithoutExtension(i)] = load(i)
for i in DirTool.listdir("res://components/Effects"):
effects[DirTool.getBasenameWithoutExtension(i)] = load(i)
for i in DirTool.listdir("res://components/Feeds"):
@@ -32,6 +35,8 @@ static func getBullet(t: String) -> PackedScene:
return MathTool.priority(bullets.get(t, false), load("res://components/Bullets/%s.tscn" % t))
static func getCharacter(t: String) -> PackedScene:
return MathTool.priority(characters.get(t, false), load("res://components/Characters/%s.tscn" % t))
static func getSummon(t: String) -> PackedScene:
return MathTool.priority(summons.get(t, false), load("res://components/Summons/%s.tscn" % t))
static func getEffect(t: String) -> PackedScene:
return MathTool.priority(effects.get(t, false), load("res://components/Effects/%s.tscn" % t))
static func getFeed(i: int) -> PackedScene: