private void GroupTitlesHandler(Packet packet, Simulator simulator) { GroupTitlesReplyPacket titles = (GroupTitlesReplyPacket)packet; Dictionary <LLUUID, GroupTitle> groupTitleCache = new Dictionary <LLUUID, GroupTitle>(); foreach (GroupTitlesReplyPacket.GroupDataBlock block in titles.GroupData) { GroupTitle groupTitle = new GroupTitle(); groupTitle.Title = Helpers.FieldToString(block.Title); groupTitle.Selected = block.Selected; groupTitleCache[block.RoleID] = groupTitle; } GroupTitlesCallbacks[titles.AgentData.GroupID](groupTitleCache); }
private void GroupTitlesHandler(Packet packet, Simulator simulator) { GroupTitlesReplyPacket titles = (GroupTitlesReplyPacket)packet; Dictionary<LLUUID, GroupTitle> groupTitleCache = new Dictionary<LLUUID, GroupTitle>(); foreach (GroupTitlesReplyPacket.GroupDataBlock block in titles.GroupData) { GroupTitle groupTitle = new GroupTitle(); groupTitle.Title = Helpers.FieldToString(block.Title); groupTitle.Selected = block.Selected; groupTitleCache[block.RoleID] = groupTitle; } GroupTitlesCallbacks[titles.AgentData.GroupID](groupTitleCache); }
private void GroupTitlesHandler(Packet packet, Simulator simulator) { if (OnGroupTitles != null) { GroupTitlesReplyPacket titles = (GroupTitlesReplyPacket)packet; Dictionary<LLUUID, GroupTitle> groupTitleCache = new Dictionary<LLUUID, GroupTitle>(); foreach (GroupTitlesReplyPacket.GroupDataBlock block in titles.GroupData) { GroupTitle groupTitle = new GroupTitle(); groupTitle.Title = Helpers.FieldToUTF8String(block.Title); groupTitle.Selected = block.Selected; groupTitleCache[block.RoleID] = groupTitle; } try { OnGroupTitles(groupTitleCache); } catch (Exception e) { Client.Log(e.ToString(), Helpers.LogLevel.Error); } } }