人工代码初始化,entities文件夹保留
This commit is contained in:
1 parent
e3efeb74ad
commit
98e9903f73
48 files changed
+6545
No files matched your search
@@ -0,0 +1,39 @@
|
||||
# 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)
|
||||
Reference in new issue
Block a user