Add GetGroupPowers() and a dictionary to hold them to ClientView and

IClientAPI. No user functionality
This commit is contained in:
Melanie Thielker
2008-07-25 03:45:17 +00:00
parent 6554c7bac5
commit 06e0e513cf
4 changed files with 20 additions and 0 deletions

View File

@@ -115,6 +115,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
protected LLUUID m_activeGroupID = LLUUID.Zero;
protected string m_activeGroupName = String.Empty;
protected ulong m_activeGroupPowers = 0;
protected Dictionary<LLUUID,ulong> m_groupPowers = new Dictionary<LLUUID, ulong>();
/* Instantiated Designated Event Delegates */
//- used so we don't create new objects for each incoming packet and then toss it out later */
@@ -292,6 +293,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
get { return m_activeGroupPowers; }
}
public ulong GetGroupPowers(LLUUID groupID)
{
if(m_groupPowers.ContainsKey(groupID))
return m_groupPowers[groupID];
return 0;
}
/// <summary>
/// This is a utility method used by single states to not duplicate kicks and blue card of death messages.
/// </summary>