Files
emod-cli/debug_mod/DEBUG_ENV_SCRIPT/modMain.py

45 lines
1.1 KiB
Python
Raw Normal View History

# -*- coding: utf-8 -*-
from mod.common.mod import Mod
import mod.client.extraClientApi as clientApi
import mod.server.extraServerApi as serverApi
from .Lifecycle import install_output_wrapper
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"
install_output_wrapper()
@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,
)
@Mod.InitClient()
def client_init(self):
clientApi.RegisterSystem(
MOD_NAME,
CLIENT_SYSTEM_NAME,
CLIENT_SYSTEM_PATH,
)
@Mod.DestroyServer()
def server_destroy(self):
pass
@Mod.DestroyClient()
def client_destroy(self):
pass