新增蓝图热更新功能

This commit is contained in:
boyce
2025-11-17 15:01:51 +08:00
parent 027e83b706
commit eaf20c4e3a
4 changed files with 136 additions and 46 deletions

View File

@@ -52,6 +52,15 @@ func (gp *GraphPool) Load(execPool *ExecPool, graphFilePath string, blueprintMod
})
}
func (gp *GraphPool) GetBaseGraph(graphName string) *baseGraph {
gr, ok := gp.mapGraphs[graphName]
if !ok {
return nil
}
return gr
}
func (gp *GraphPool) Create(graphName string, graphID int64) IGraph {
gr, ok := gp.mapGraphs[graphName]
if !ok {