CommandCallbackType ReceiveTeamTimeLimit(byte[] dataBuffer, int socketId) { //TraceUtil.Log("[ReceiveTeamTimeLimit]"); SMsgErrorCode_SC sMsgErrorCode_SC = SMsgErrorCode_SC.ParsePackage(dataBuffer); if (sMsgErrorCode_SC.iContent.Length > 0) { MessageBox.Instance.ShowTips(4, LanguageTextManager.GetString("IDS_H1_528"), 1); } return(CommandCallbackType.Continue); }
public static SMsgErrorCode_SC ParsePackage(byte[] dataBuffer) { SMsgErrorCode_SC sMsgErrorCode_SC = new SMsgErrorCode_SC(); int of = 0; of += PackageHelper.ReadData(dataBuffer.Skip(of).ToArray(), out sMsgErrorCode_SC.byNum); sMsgErrorCode_SC.iContent = new int[sMsgErrorCode_SC.byNum]; for (int i = 0; i < sMsgErrorCode_SC.iContent.Length; i++) { of += PackageHelper.ReadData(dataBuffer.Skip(of).ToArray(), out sMsgErrorCode_SC.iContent[i]); } return(sMsgErrorCode_SC); }