From 06e0e513cf194d97d576c111e5c481cc769bba1f Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Fri, 25 Jul 2008 03:45:17 +0000 Subject: Add GetGroupPowers() and a dictionary to hold them to ClientView and IClientAPI. No user functionality --- OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 8 ++++++++ OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs | 5 +++++ OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs | 5 +++++ 3 files changed, 18 insertions(+) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index a7dd35a..0c420b4 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -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 m_groupPowers = new Dictionary(); /* 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; + } + /// /// This is a utility method used by single states to not duplicate kicks and blue card of death messages. /// diff --git a/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs b/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs index 4b42f9e..2ae4ae0 100644 --- a/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs +++ b/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs @@ -365,6 +365,11 @@ namespace OpenSim.Region.Environment.Modules.World.NPC get { return 0; } } + public ulong GetGroupPowers(LLUUID groupID) + { + return 0; + } + public virtual int NextAnimationSequenceNumber { get { return 1; } diff --git a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs index 22feab6..f0442ac 100644 --- a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs +++ b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs @@ -277,6 +277,11 @@ namespace OpenSim.Region.Examples.SimpleModule get { return 0; } } + public ulong GetGroupPowers(LLUUID groupID) + { + return 0; + } + public virtual int NextAnimationSequenceNumber { get { return 1; } -- cgit v1.1