代码初始化
This commit is contained in:
1 parent
8160eca074
commit
dffebce01d
43 files changed
+6383
No files matched your search
@@ -0,0 +1,38 @@
|
||||
# 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)
|
||||
Reference in new issue
Block a user