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

IClientAPI. No user functionality
0.6.0-stable
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

@ -318,6 +318,8 @@ namespace OpenSim.Framework
ulong ActiveGroupPowers { get; } ulong ActiveGroupPowers { get; }
ulong GetGroupPowers(LLUUID groupID);
string FirstName { get; } string FirstName { get; }
string LastName { get; } string LastName { get; }

View File

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

View File

@ -365,6 +365,11 @@ namespace OpenSim.Region.Environment.Modules.World.NPC
get { return 0; } get { return 0; }
} }
public ulong GetGroupPowers(LLUUID groupID)
{
return 0;
}
public virtual int NextAnimationSequenceNumber public virtual int NextAnimationSequenceNumber
{ {
get { return 1; } get { return 1; }

View File

@ -277,6 +277,11 @@ namespace OpenSim.Region.Examples.SimpleModule
get { return 0; } get { return 0; }
} }
public ulong GetGroupPowers(LLUUID groupID)
{
return 0;
}
public virtual int NextAnimationSequenceNumber public virtual int NextAnimationSequenceNumber
{ {
get { return 1; } get { return 1; }