13 lines
358 B
Python
13 lines
358 B
Python
import asyncio
|
|
from game_server.net.gateway import KCPGateway
|
|
from utils.config import Config
|
|
from game_server.resource import ResourceManager
|
|
|
|
def fn_main():
|
|
try:
|
|
ResourceManager.instance().load_resources()
|
|
asyncio.run(KCPGateway.new(Config.GameServer.IP,Config.GameServer.Port))
|
|
except Exception as e:
|
|
print(f"Error: {e}")
|
|
|