2026-05-16 00:59:51 +08:00
|
|
|
# -*- coding: utf-8 -*-
|
2026-07-21 20:52:10 +08:00
|
|
|
from mod.common.mod import Mod
|
|
|
|
|
import mod.client.extraClientApi as clientApi
|
|
|
|
|
import mod.server.extraServerApi as serverApi
|
2026-05-16 00:59:51 +08:00
|
|
|
|
2026-07-21 20:52:10 +08:00
|
|
|
from .Lifecycle import install_output_wrapper
|
2026-05-16 00:59:51 +08:00
|
|
|
|
|
|
|
|
|
2026-07-21 20:52:10 +08:00
|
|
|
MOD_NAME = "EmodCliDebug"
|
|
|
|
|
MOD_VERSION = "1.0.0"
|
|
|
|
|
SERVER_SYSTEM_NAME = "EmodCliDebugServer"
|
|
|
|
|
SERVER_SYSTEM_PATH = "DEBUG_ENV_SCRIPT.DebugServerSystem.DebugServerSystem"
|
|
|
|
|
CLIENT_SYSTEM_NAME = "EmodCliDebugClient"
|
|
|
|
|
CLIENT_SYSTEM_PATH = "DEBUG_ENV_SCRIPT.DebugClientSystem.DebugClientSystem"
|
2026-05-16 00:59:51 +08:00
|
|
|
|
|
|
|
|
|
2026-07-21 20:52:10 +08:00
|
|
|
install_output_wrapper()
|
2026-05-16 00:59:51 +08:00
|
|
|
|
|
|
|
|
|
2026-07-21 20:52:10 +08:00
|
|
|
@Mod.Binding(name=MOD_NAME, version=MOD_VERSION)
|
|
|
|
|
class EmodCliDebugMod(object):
|
|
|
|
|
@Mod.InitServer()
|
|
|
|
|
def server_init(self):
|
|
|
|
|
serverApi.RegisterSystem(
|
|
|
|
|
MOD_NAME,
|
|
|
|
|
SERVER_SYSTEM_NAME,
|
|
|
|
|
SERVER_SYSTEM_PATH,
|
|
|
|
|
)
|
2026-05-16 00:59:51 +08:00
|
|
|
|
2026-07-21 20:52:10 +08:00
|
|
|
@Mod.InitClient()
|
|
|
|
|
def client_init(self):
|
|
|
|
|
clientApi.RegisterSystem(
|
|
|
|
|
MOD_NAME,
|
|
|
|
|
CLIENT_SYSTEM_NAME,
|
|
|
|
|
CLIENT_SYSTEM_PATH,
|
|
|
|
|
)
|
2026-05-16 00:59:51 +08:00
|
|
|
|
2026-07-21 20:52:10 +08:00
|
|
|
@Mod.DestroyServer()
|
|
|
|
|
def server_destroy(self):
|
|
|
|
|
pass
|
2026-05-16 00:59:51 +08:00
|
|
|
|
2026-07-21 20:52:10 +08:00
|
|
|
@Mod.DestroyClient()
|
|
|
|
|
def client_destroy(self):
|
|
|
|
|
pass
|