public override void Avatars_OnAvatarInterests(object sender, AvatarInterestsReplyEventArgs e) { SimAvatar A = DeclareAvatarProfile(e.AvatarID); if (!MaintainAvatarMetaData) { return; } A.AvatarInterests = e.Interests; }
public void Avatars_AvatarInterestsReply(object sender, AvatarInterestsReplyEventArgs e) { Hashtable item = new Hashtable(); item.Add("MessageType", "AvatarInterests"); item.Add("AvatarID", e.AvatarID); item.Add("WantToMask", e.Interests.WantToMask); item.Add("WantToText", e.Interests.WantToText); item.Add("SkillsMask", e.Interests.SkillsMask); item.Add("SkillsText", e.Interests.SkillsText); item.Add("LanguagesText", e.Interests.LanguagesText); enqueue(item); }
void Avatars_AvatarInterestsReply(object sender, AvatarInterestsReplyEventArgs e) { lock (ReceivedProfileEvent) { Interests = e.Interests; ReceivedInterests = true; if (ReceivedInterests && ReceivedProperties && ReceivedGroups) { ReceivedProfileEvent.Set(); } } }
private void Avatars_AvatarInterestsReply(object sender, AvatarInterestsReplyEventArgs e) { if (e.AvatarID != targetID) { return; } lock (ReceivedProfileEvent) { Interests = e.Interests; ReceivedInterests = true; if (ReceivedInterests && ReceivedProperties && ReceivedGroups) { ReceivedProfileEvent.Set(); } } }
void Avatars_AvatarInterestsReply(object sender, AvatarInterestsReplyEventArgs e) { if (e.AvatarID != AgentID) { return; } if (InvokeRequired) { BeginInvoke(new MethodInvoker(() => Avatars_AvatarInterestsReply(sender, e))); return; } Interests = e.Interests; // want to's checkBoxBuild.Checked = (Interests.WantToMask & (1 << 0)) != 0; checkBoxExplore.Checked = (Interests.WantToMask & (1 << 1)) != 0; checkBoxMeet.Checked = (Interests.WantToMask & (1 << 2)) != 0; checkBoxGroup.Checked = (Interests.WantToMask & (1 << 3)) != 0; checkBoxBuy.Checked = (Interests.WantToMask & (1 << 4)) != 0; checkBoxSell.Checked = (Interests.WantToMask & (1 << 5)) != 0; checkBoxBeHired.Checked = (Interests.WantToMask & (1 << 6)) != 0; checkBoxHire.Checked = (Interests.WantToMask & (1 << 7)) != 0; txtWantTo.Text = Interests.WantToText; // skills checkBoxTextures.Checked = (Interests.WantToMask & (1 << 0)) != 0; checkBoxArchitecture.Checked = (Interests.WantToMask & (1 << 1)) != 0; checkBoxEventPlanning.Checked = (Interests.WantToMask & (1 << 2)) != 0; checkBoxModeling.Checked = (Interests.WantToMask & (1 << 3)) != 0; checkBoxScripting.Checked = (Interests.WantToMask & (1 << 4)) != 0; checkBoxCustomCharacters.Checked = (Interests.WantToMask & (1 << 5)) != 0; txtSkills.Text = Interests.SkillsText; txtLanguages.Text = Interests.LanguagesText; }