mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
add a public SetGroupPowers to clientView
This commit is contained in:
@@ -735,6 +735,8 @@ namespace OpenSim.Framework
|
||||
|
||||
Dictionary<UUID, ulong> GetGroupPowers();
|
||||
|
||||
void SetGroupPowers(Dictionary<UUID, ulong> powers);
|
||||
|
||||
ulong GetGroupPowers(UUID groupID);
|
||||
|
||||
bool IsGroupMember(UUID GroupID);
|
||||
|
||||
@@ -5790,6 +5790,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
}
|
||||
}
|
||||
|
||||
public void SetGroupPowers(Dictionary<UUID, ulong> powers)
|
||||
{
|
||||
lock(m_groupPowers)
|
||||
{
|
||||
m_groupPowers.Clear();
|
||||
m_groupPowers = powers;
|
||||
}
|
||||
}
|
||||
|
||||
public ulong GetGroupPowers(UUID groupID)
|
||||
{
|
||||
if (groupID == ActiveGroupId)
|
||||
|
||||
@@ -589,7 +589,9 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server
|
||||
{
|
||||
return new Dictionary<UUID, ulong>();
|
||||
}
|
||||
|
||||
|
||||
public void SetGroupPowers(Dictionary<UUID, ulong> powers) { }
|
||||
|
||||
public ulong GetGroupPowers(UUID groupID)
|
||||
{
|
||||
return 0;
|
||||
|
||||
@@ -610,6 +610,8 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||
return new Dictionary<UUID, ulong>();
|
||||
}
|
||||
|
||||
public void SetGroupPowers(Dictionary<UUID, ulong> powers) { }
|
||||
|
||||
public ulong GetGroupPowers(UUID groupID)
|
||||
{
|
||||
return 0;
|
||||
|
||||
@@ -429,6 +429,8 @@ namespace OpenSim.Tests.Common
|
||||
return new Dictionary<UUID, ulong>();
|
||||
}
|
||||
|
||||
public void SetGroupPowers(Dictionary<UUID, ulong> powers) { }
|
||||
|
||||
public ulong GetGroupPowers(UUID groupID)
|
||||
{
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user