private void EGMI_ACK_OBJECT_LEAVE(NFMsg.MsgBase xMsg) { NFMsg.AckPlayerLeaveList xData = new NFMsg.AckPlayerLeaveList(); xData = mxSerializer.Deserialize(new MemoryStream(xMsg.msg_data), null, typeof(NFMsg.AckPlayerLeaveList)) as NFMsg.AckPlayerLeaveList; for (int i = 0; i < xData.object_list.Count; ++i) { NFCKernelModule.Instance.DestroyObject(NFNetController.PBToNF(xData.object_list[i])); } }
private void EGMI_ACK_OBJECT_LEAVE(int id, MemoryStream stream) { NFMsg.MsgBase xMsg = NFMsg.MsgBase.Parser.ParseFrom(stream); NFMsg.AckPlayerLeaveList xData = NFMsg.AckPlayerLeaveList.Parser.ParseFrom(xMsg.MsgData); for (int i = 0; i < xData.ObjectList.Count; ++i) { mKernelModule.DestroyObject(mHelpModule.PBToNF(xData.ObjectList[i])); } }
private void OnObjectLeave(UInt16 id, MemoryStream stream) { NFMsg.MsgBase xMsg = NFMsg.MsgBase.Parser.ParseFrom(stream); NFMsg.AckPlayerLeaveList xData = NFMsg.AckPlayerLeaveList.Parser.ParseFrom(xMsg.msg_data); for (int i = 0; i < xData.object_list.Count; ++i) { mKernelModule.DestroyObject(mHelpModule.PBToNF(xData.object_list[i])); } }
private void OnObjectLeave(UInt16 id, MemoryStream stream) { NFMsg.MsgBase xMsg = new NFMsg.MsgBase(); xMsg = Serializer.Deserialize <NFMsg.MsgBase>(stream); NFMsg.AckPlayerLeaveList xData = new NFMsg.AckPlayerLeaveList(); xData = Serializer.Deserialize <NFMsg.AckPlayerLeaveList>(new MemoryStream(xMsg.msg_data)); for (int i = 0; i < xData.object_list.Count; ++i) { NFCKernelModule.Instance().DestroyObject(PBToNF(xData.object_list[i])); } }
private void EGMI_ACK_OBJECT_LEAVE(MsgHead head, MemoryStream stream) { NFMsg.MsgBase xMsg = new NFMsg.MsgBase(); xMsg = Serializer.Deserialize <NFMsg.MsgBase>(stream); NFMsg.AckPlayerLeaveList xData = new NFMsg.AckPlayerLeaveList(); xData = Serializer.Deserialize <NFMsg.AckPlayerLeaveList>(new MemoryStream(xMsg.msg_data)); for (int i = 0; i < xData.object_list.Count; ++i) { NFCKernel.Instance.DestroyObject(PBToNF(xData.object_list[i])); } }
private void EGMI_ACK_OBJECT_LEAVE(MsgHead head, MemoryStream stream) { NFMsg.MsgBase xMsg = new NFMsg.MsgBase(); xMsg = Serializer.Deserialize<NFMsg.MsgBase>(stream); NFMsg.AckPlayerLeaveList xData = new NFMsg.AckPlayerLeaveList(); xData = Serializer.Deserialize<NFMsg.AckPlayerLeaveList>(new MemoryStream(xMsg.msg_data)); for (int i = 0; i < xData.object_list.Count; ++i) { NFCKernelModule.Instance.DestroyObject(PBToNF(xData.object_list[i])); } }