Plumbing along....

0.6.0-stable
Melanie Thielker 2008-10-29 00:15:39 +00:00
parent 0c6db79a8e
commit 766269a59b
2 changed files with 41 additions and 0 deletions

View File

@ -6861,6 +6861,45 @@ Console.WriteLine(msgpack.ToString());
}
break;
case PacketType.GroupRoleUpdate:
GroupRoleUpdatePacket groupRoleUpdate =
(GroupRoleUpdatePacket)Pack;
if (m_GroupsModule != null)
{
foreach (GroupRoleUpdatePacket.RoleDataBlock d in
groupRoleUpdate.RoleData)
{
m_GroupsModule.GroupRoleUpdate(this,
groupRoleUpdate.AgentData.GroupID,
d.RoleID,
Utils.BytesToString(d.Name),
Utils.BytesToString(d.Description),
Utils.BytesToString(d.Title),
d.Powers,
d.UpdateType);
}
}
break;
case PacketType.GroupRoleChanges:
GroupRoleChangesPacket groupRoleChanges =
(GroupRoleChangesPacket)Pack;
if (m_GroupsModule != null)
{
foreach (GroupRoleChangesPacket.RoleChangeBlock d in
groupRoleChanges.RoleChange)
{
m_GroupsModule.GroupRoleChanges(this,
groupRoleChanges.AgentData.GroupID,
d.RoleID,
d.MemberID,
d.Change);
}
}
break;
default:
m_log.Warn("[CLIENT]: unhandled packet " + Pack.ToString());
break;

View File

@ -51,6 +51,8 @@ namespace OpenSim.Region.Interfaces
GroupNoticeData[] GroupNoticesListRequest(IClientAPI remoteClient, UUID GroupID);
string GetGroupTitle(UUID avatarID);
void GroupRoleUpdate(IClientAPI remoteClient, UUID GroupID, UUID RoleID, string name, string description, string title, ulong powers, byte updateType);
void GroupRoleChanges(IClientAPI remoteClient, UUID GroupID, UUID RoleID, UUID MemberID, uint changes);
void GroupNoticeRequest(IClientAPI remoteClient, UUID groupNoticeID);
void SendAgentGroupDataUpdate(IClientAPI remoteClient);
}