/// <summary> /// 初始化 /// </summary> public static void Init() { BaseDispatch.BindEventHandler(OnPlayerXY, EProtocolId.E2G_GAME_PLAYERXY); BaseDispatch.BindEventHandler(OnLogin, EProtocolId.L2E_GAME_LOGINSERVER); BaseDispatch.BindEventHandler(OnRegister, EProtocolId.L2E_GAME_REGISTER); BaseDispatch.BindEventHandler(OnLoginOut, EProtocolId.E2G_GAME_LOGINOUT); //BaseDispatch.BindEventHandler(OnPlayerMapIn, EProtocolId.E2G_GAME_MAPIN); }
public static void Init() { BaseDispatch.BindEventHandler(OnBasePing, EProtocolId.ALL_BASE_PING); BaseDispatch.BindEventHandler(OnLogin, EProtocolId.E2L_GAME_LOGINSERVER); BaseDispatch.BindEventHandler(OnRegister, EProtocolId.E2L_GAME_REGISTER); }
public static void Init() { BaseDispatch.BindEventHandler(OnServerInfo, EProtocolId.G2D_GAME_SERVER); }
public static void Init() { BaseDispatch.BindEventHandler(OnBasePing, EProtocolId.ALL_BASE_PING); BaseDispatch.BindEventHandler(OnBaseServer, EProtocolId.S2C_SERVER_CONNECT); }