void GetVersion(Net.NetworkConnection conn) { var getver = new NetMsg.CGetVersion(); byte[] buff = Net.PacketHelper.Pack(getver); conn.Send((int)NetMsgID.LOGIN_MSG_GET_VERSION, buff); }
public override void OnServerConnect(NetworkConnection conn) { base.OnServerConnect(conn); instance = this; }
public override void OnServerDisconnect(NetworkConnection conn) { base.OnServerDisconnect(conn); ChangeToRoom(); }
public override void OnServerReady(NetworkConnection conn) { base.OnServerReady(conn); }