39 lines
981 B
Python
39 lines
981 B
Python
# coding=utf-8
|
|
from SystemTools import *
|
|
from SpecialFunciton.BlueFoxSystem import *
|
|
from OtherTools 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)
|