public void Send(WoWLivingObj obj) { bool con_lost = false; Converter.CodeAndSend<WoWLivingObj>(Socket_sender, obj, ref con_lost, client_packet_size); if (con_lost) throw new Exception("Разорвано соединение с сервером!"); }
public void Do() { if (name != "Zorn") { if (pet) { if (pet_client == null) pet_client = new PartyDataRetrivalClient(); wmr.GetPet(obj); pet_client.Send(obj); } else { if (pet_client != null) { pet_client.Close(); pet_client = null; } } wmr.GetPlayer(obj); p_obj = obj; player_client.Send(obj); } }
void CopyData(WoWLivingObj inp, WowForPartyMemberHealerCD outpt) { outpt.buff_arr = inp.buff_arr; outpt.name = inp.name; outpt.mp = inp.mp; outpt.max_mp = inp.max_mp; outpt.hp = inp.hp; outpt.max_hp = inp.max_hp; outpt.under_attack = inp.under_attack; outpt.type = inp.type; outpt.GUID = inp.GUID; }
bool CopyData(WoWLivingObj inp, WowForPartyMemberHealerCD outpt) { if (inp == null || inp.name == null) return false; outpt.name = inp.name; outpt.buff_arr = inp.buff_arr; outpt.mp = inp.mp; outpt.max_mp = inp.max_mp; outpt.hp = inp.hp; outpt.max_hp = inp.max_hp; outpt.under_attack = inp.under_attack; outpt.type = inp.type; outpt.GUID = inp.GUID; return true; }