//客户端发起寻宝申请 public void ApplyGetTreasure(byte takedId) { Log.info(this, "发送27-1给服务器请求获取宝藏:" + takedId); MemoryStream msdata = new MemoryStream(); Module_27.write_27_1(msdata, takedId); AppNet.gameNet.send(msdata, 27, 1); }
//客户端请求刷新宝藏信息 public void ApplyFreshTreasureInfo() { Log.info(this, "发送27-2给服务器请求刷新宝藏信息"); MemoryStream msdata = new MemoryStream(); Module_27.write_27_2(msdata); AppNet.gameNet.send(msdata, 27, 2); }
//------------------------------------- 协议请求 ----------------------------------------- //客户端请求寻宝信息 public void ApplyTreasureInfo() { Log.info(this, "发送27-0给服务器请求寻宝信息"); MemoryStream msdata = new MemoryStream(); Module_27.write_27_0(msdata); AppNet.gameNet.send(msdata, 27, 0); }