void OnRebirthOKClick() { if (m_FellowBuffer == null) { return; } if (false == m_FellowBuffer.IsValid()) { return; } if (m_FellowBuffer.Called) { GUIData.AddNotifyData("#{10325}"); return; } CG_FELLOW_REBIRTH pak = (CG_FELLOW_REBIRTH)PacketDistributed.CreatePacket(MessageID.PACKET_CG_FELLOW_REBIRTH); pak.SetGuid(m_FellowBuffer.Guid); pak.SendPacket(); rebirthFellowGuid = m_FellowBuffer.Guid; OnRebirthCancelClick(); }
public uint Execute(PacketDistributed ipacket) { CG_FELLOW_REBIRTH packet = (CG_FELLOW_REBIRTH )ipacket; if (null == packet) { return((uint)PACKET_EXE.PACKET_EXE_ERROR); } //enter your logic return((uint)PACKET_EXE.PACKET_EXE_CONTINUE); }