From 8f3a00ebedff51072ed3c919abdb93f715062880 Mon Sep 17 00:00:00 2001 From: BlueRose <378100977@qq.com> Date: Tue, 28 May 2024 13:45:56 +0800 Subject: [PATCH] vault backup: 2024-05-28 13:45:56 --- 02-Note/DAWA/ASoul/导播台笔记/RuntimeEditor.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/02-Note/DAWA/ASoul/导播台笔记/RuntimeEditor.md b/02-Note/DAWA/ASoul/导播台笔记/RuntimeEditor.md index 6b918f6..dd4cb9d 100644 --- a/02-Note/DAWA/ASoul/导播台笔记/RuntimeEditor.md +++ b/02-Note/DAWA/ASoul/导播台笔记/RuntimeEditor.md @@ -62,7 +62,15 @@ static HandleConsoleCommand(gameInstance: TsLiveDirectorGameInstance, consoleCom ``` 主要的几个切换导播台的命令基本是调用`gameInstance.SetDirectorModeStr("XXX")`。 - +进入Area函数:为调用`TsDirectorConsoleCommandHandler._EnterArea(gameInstance, "0C1E0DD349EDD9860ED8BDBB55A736F3")`。`_EnterArea`的代码为: +```ts +static _EnterArea(gameInstance: TsLiveDirectorGameInstance, areaUUID: string): void { + let mapEnvironment = Utils.GetMapEnvironmentManager(gameInstance.GetWorld()); + if (mapEnvironment && mapEnvironment.LayerManager) { + mapEnvironment.LayerManager.EnterAreaByCMD(areaUUID); + } +} +``` TsLiveDirectorGameInstance.ts ```typescript