更新PVF初始化
This commit is contained in:
@@ -4,12 +4,13 @@
|
|||||||
创建日期:2024-10-11 12:24
|
创建日期:2024-10-11 12:24
|
||||||
文件用途:pvf 管理器
|
文件用途:pvf 管理器
|
||||||
*/
|
*/
|
||||||
|
getroottable()._Script_Data_Init_ <- false;
|
||||||
class Script {
|
class Script {
|
||||||
|
|
||||||
C_Object = null;
|
C_Object = null;
|
||||||
|
|
||||||
constructor(Path = "/home/neople/game/Script.pvf") {
|
constructor(Path = "/home/neople/game/Script.pvf") {
|
||||||
if (getroottable().rawin("_Script_Data_")) {
|
if (getroottable()._Script_Data_Init_) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
print("正在初始化PVF...");
|
print("正在初始化PVF...");
|
||||||
@@ -20,6 +21,7 @@ class Script {
|
|||||||
print("PVF初始化完毕!!!");
|
print("PVF初始化完毕!!!");
|
||||||
print("用时: " + (time() - StartTime) + "秒");
|
print("用时: " + (time() - StartTime) + "秒");
|
||||||
getroottable()._Script_Data_ <- this;
|
getroottable()._Script_Data_ <- this;
|
||||||
|
getroottable()._Script_Data_Init_ = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user