Add GetGroupPowers() and a dictionary to hold them to ClientView and
IClientAPI. No user functionality0.6.0-stable
parent
6554c7bac5
commit
06e0e513cf
|
@ -317,6 +317,8 @@ namespace OpenSim.Framework
|
||||||
string ActiveGroupName { get; }
|
string ActiveGroupName { get; }
|
||||||
|
|
||||||
ulong ActiveGroupPowers { get; }
|
ulong ActiveGroupPowers { get; }
|
||||||
|
|
||||||
|
ulong GetGroupPowers(LLUUID groupID);
|
||||||
|
|
||||||
string FirstName { get; }
|
string FirstName { get; }
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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; }
|
||||||
|
|
|
@ -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; }
|
||||||
|
|
Loading…
Reference in New Issue