示例#1
0
 /// <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);
 }
示例#2
0
 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);
 }
示例#3
0
 public static void Init()
 {
     BaseDispatch.BindEventHandler(OnServerInfo, EProtocolId.G2D_GAME_SERVER);
 }
示例#4
0
 public static void Init()
 {
     BaseDispatch.BindEventHandler(OnBasePing, EProtocolId.ALL_BASE_PING);
     BaseDispatch.BindEventHandler(OnBaseServer, EProtocolId.S2C_SERVER_CONNECT);
 }