mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
Committing the second part of Jim Greensky @ Intel Lab's patch, re-prioritizing updates
This commit is contained in:
@@ -448,6 +448,8 @@ namespace OpenSim.Framework
|
||||
public delegate void AvatarInterestUpdate(IClientAPI client, uint wantmask, string wanttext, uint skillsmask, string skillstext, string languages);
|
||||
public delegate void PlacesQuery(UUID QueryID, UUID TransactionID, string QueryText, uint QueryFlags, byte Category, string SimName, IClientAPI client);
|
||||
|
||||
public delegate double UpdatePriorityHandler(UpdatePriorityData data);
|
||||
|
||||
#endregion
|
||||
|
||||
public struct DirPlacesReplyData
|
||||
@@ -744,6 +746,29 @@ namespace OpenSim.Framework
|
||||
public double priority { get { return this.m_priority; } }
|
||||
}
|
||||
|
||||
public struct UpdatePriorityData {
|
||||
private double m_priority;
|
||||
private uint m_localID;
|
||||
|
||||
public UpdatePriorityData(double priority, uint localID) {
|
||||
this.m_priority = priority;
|
||||
this.m_localID = localID;
|
||||
}
|
||||
|
||||
public double priority { get { return this.m_priority; } }
|
||||
public uint localID { get { return this.m_localID; } }
|
||||
}
|
||||
|
||||
[Flags]
|
||||
public enum StateUpdateTypes
|
||||
{
|
||||
None = 0,
|
||||
AvatarTerse = 1,
|
||||
PrimitiveTerse = AvatarTerse << 1,
|
||||
PrimitiveFull = PrimitiveTerse << 1,
|
||||
All = AvatarTerse | PrimitiveTerse | PrimitiveFull,
|
||||
}
|
||||
|
||||
public interface IClientAPI
|
||||
{
|
||||
Vector3 StartPos { get; set; }
|
||||
@@ -1118,6 +1143,8 @@ namespace OpenSim.Framework
|
||||
|
||||
void SendPrimTerseUpdate(SendPrimitiveTerseData data);
|
||||
|
||||
void ReprioritizeUpdates(StateUpdateTypes type, UpdatePriorityHandler handler);
|
||||
|
||||
void SendInventoryFolderDetails(UUID ownerID, UUID folderID, List<InventoryItemBase> items,
|
||||
List<InventoryFolderBase> folders, bool fetchFolders,
|
||||
bool fetchItems);
|
||||
|
||||
Reference in New Issue
Block a user