Files
2026-07-21 16:04:04 +08:00

39 lines
1011 B
Python

# coding=utf-8
from mod.common.mod import Mod
from OtherTools import *
from SpecialFunciton.BlueFoxSystem import *
from SystemTools import *
from ToolsConfig import *
def LoadMod():
"""
一键加载脚本
:return:
"""
print """
---->>>加载脚本<<<----
模组名称:{}
模组版本:{}
""".format(MOD_NAME, MOD_VERSION)
Mod.Binding(MOD_NAME, MOD_VERSION)(BlueFoxModLoader)
class BlueFoxModLoader:
def __init__(self):
pass
@Mod.InitClient()
def InitClient(self):
RegisterSystemFastly(clientApi, BlueFoxClientSystem)
lastSubclasses = GetLastSubclass(BlueFoxClientSystem)
for lastSubclass in lastSubclasses:
RegisterSystemFastly(clientApi, lastSubclass)
@Mod.InitServer()
def InitServer(self):
RegisterSystemFastly(serverApi, BlueFoxServerSystem)
lastSubclasses = GetLastSubclass(BlueFoxServerSystem)
for lastSubclass in lastSubclasses:
RegisterSystemFastly(serverApi, lastSubclass)