* refactor: Remove OutPacket from the IClientAPI
* I believe this is reasonable since code outside the Linden client stack shouldn't be aware of the packet format being used * I would love to have made the method protected, but the LoadBalancerPlugin is still calling it and resolving that would require more work0.6.0-stable
parent
87e85489f3
commit
230835dbaa
|
@ -625,8 +625,6 @@ namespace OpenSim.Framework
|
||||||
|
|
||||||
// void ActivateGesture(UUID assetId, UUID gestureId);
|
// void ActivateGesture(UUID assetId, UUID gestureId);
|
||||||
|
|
||||||
// [Obsolete("IClientAPI.OutPacket SHOULD NOT EXIST outside of LLClientView please refactor appropriately.")]
|
|
||||||
void OutPacket(Packet newPack, ThrottleOutPacketType packType);
|
|
||||||
void SendWearables(AvatarWearable[] wearables, int serial);
|
void SendWearables(AvatarWearable[] wearables, int serial);
|
||||||
void SendAppearance(UUID agentID, byte[] visualParams, byte[] textureEntry);
|
void SendAppearance(UUID agentID, byte[] visualParams, byte[] textureEntry);
|
||||||
void SendStartPingCheck(byte seq);
|
void SendStartPingCheck(byte seq);
|
||||||
|
@ -774,7 +772,7 @@ namespace OpenSim.Framework
|
||||||
void SendEstateCovenantInformation(UUID covenant);
|
void SendEstateCovenantInformation(UUID covenant);
|
||||||
void SendDetailedEstateData(UUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, UUID covenant, string abuseEmail, UUID estateOwner);
|
void SendDetailedEstateData(UUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, UUID covenant, string abuseEmail, UUID estateOwner);
|
||||||
|
|
||||||
void SendLandProperties(IClientAPI remote_client, int sequence_id, bool snap_selection, int request_result, LandData landData, float simObjectBonusFactor, int parcelObjectCapacity, int simObjectCapacity, uint regionFlags);
|
void SendLandProperties(int sequence_id, bool snap_selection, int request_result, LandData landData, float simObjectBonusFactor, int parcelObjectCapacity, int simObjectCapacity, uint regionFlags);
|
||||||
void SendLandAccessListData(List<UUID> avatars, uint accessFlag, int localLandID);
|
void SendLandAccessListData(List<UUID> avatars, uint accessFlag, int localLandID);
|
||||||
void SendForceClientSelectObjects(List<uint> objectIDs);
|
void SendForceClientSelectObjects(List<uint> objectIDs);
|
||||||
void SendLandObjectOwners(Dictionary<UUID, int> ownersAndCount);
|
void SendLandObjectOwners(Dictionary<UUID, int> ownersAndCount);
|
||||||
|
|
|
@ -2921,7 +2921,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
this.OutPacket(packet, ThrottleOutPacketType.Task);
|
this.OutPacket(packet, ThrottleOutPacketType.Task);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendLandProperties(IClientAPI remote_client, int sequence_id, bool snap_selection, int request_result, LandData landData, float simObjectBonusFactor, int parcelObjectCapacity, int simObjectCapacity, uint regionFlags)
|
public void SendLandProperties(int sequence_id, bool snap_selection, int request_result, LandData landData, float simObjectBonusFactor, int parcelObjectCapacity, int simObjectCapacity, uint regionFlags)
|
||||||
{
|
{
|
||||||
ParcelPropertiesPacket updatePacket = (ParcelPropertiesPacket)PacketPool.Instance.GetPacket(PacketType.ParcelProperties);
|
ParcelPropertiesPacket updatePacket = (ParcelPropertiesPacket)PacketPool.Instance.GetPacket(PacketType.ParcelProperties);
|
||||||
// TODO: don't create new blocks if recycling an old packet
|
// TODO: don't create new blocks if recycling an old packet
|
||||||
|
@ -2999,7 +2999,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
updatePacket.ParcelData.UserLocation = landData.UserLocation;
|
updatePacket.ParcelData.UserLocation = landData.UserLocation;
|
||||||
updatePacket.ParcelData.UserLookAt = landData.UserLookAt;
|
updatePacket.ParcelData.UserLookAt = landData.UserLookAt;
|
||||||
updatePacket.Header.Zerocoded = true;
|
updatePacket.Header.Zerocoded = true;
|
||||||
remote_client.OutPacket((Packet)updatePacket, ThrottleOutPacketType.Task);
|
|
||||||
|
OutPacket((Packet)updatePacket, ThrottleOutPacketType.Task);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendLandAccessListData(List<UUID> avatars, uint accessFlag, int localLandID)
|
public void SendLandAccessListData(List<UUID> avatars, uint accessFlag, int localLandID)
|
||||||
|
@ -3945,14 +3946,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The dreaded OutPacket. This should only be called from within
|
/// This is the starting point for sending a simulator packet out to the client.
|
||||||
/// the ClientStack itself right now
|
///
|
||||||
/// This is the entry point for simulator packets to go out to
|
/// Please do not call this from outside the LindenUDP client stack.
|
||||||
/// the client.
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="NewPack"></param>
|
/// <param name="NewPack"></param>
|
||||||
/// <param name="throttlePacketType">Corresponds to the type of data that is going out. Enum</param>
|
/// <param name="throttlePacketType">Corresponds to the type of data that is going out. Enum</param>
|
||||||
public virtual void OutPacket(Packet NewPack, ThrottleOutPacketType throttlePacketType)
|
public void OutPacket(Packet NewPack, ThrottleOutPacketType throttlePacketType)
|
||||||
{
|
{
|
||||||
m_PacketHandler.OutPacket(NewPack, throttlePacketType);
|
m_PacketHandler.OutPacket(NewPack, throttlePacketType);
|
||||||
}
|
}
|
||||||
|
|
|
@ -172,7 +172,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land
|
||||||
// regionFlags |= (uint)RegionFlags.AllowLandmark;
|
// regionFlags |= (uint)RegionFlags.AllowLandmark;
|
||||||
// if (landData.OwnerID == remote_client.AgentId)
|
// if (landData.OwnerID == remote_client.AgentId)
|
||||||
// regionFlags |= (uint)RegionFlags.AllowSetHome;
|
// regionFlags |= (uint)RegionFlags.AllowSetHome;
|
||||||
remote_client.SendLandProperties(remote_client, sequence_id,
|
remote_client.SendLandProperties(sequence_id,
|
||||||
snap_selection, request_result, landData,
|
snap_selection, request_result, landData,
|
||||||
(float)m_scene.RegionInfo.RegionSettings.ObjectBonus,
|
(float)m_scene.RegionInfo.RegionSettings.ObjectBonus,
|
||||||
getParcelMaxPrimCount(this),
|
getParcelMaxPrimCount(this),
|
||||||
|
|
|
@ -414,10 +414,6 @@ namespace OpenSim.Region.Environment.Modules.World.NPC
|
||||||
get { return 1; }
|
get { return 1; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual void OutPacket(Packet newPack, ThrottleOutPacketType packType)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void SendWearables(AvatarWearable[] wearables, int serial)
|
public virtual void SendWearables(AvatarWearable[] wearables, int serial)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -840,7 +836,7 @@ namespace OpenSim.Region.Environment.Modules.World.NPC
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendLandProperties(IClientAPI remote_client, int sequence_id, bool snap_selection, int request_result, LandData landData, float simObjectBonusFactor,int parcelObjectCapacity, int simObjectCapacity, uint regionFlags)
|
public void SendLandProperties(int sequence_id, bool snap_selection, int request_result, LandData landData, float simObjectBonusFactor,int parcelObjectCapacity, int simObjectCapacity, uint regionFlags)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
public void SendLandAccessListData(List<UUID> avatars, uint accessFlag, int localLandID)
|
public void SendLandAccessListData(List<UUID> avatars, uint accessFlag, int localLandID)
|
||||||
|
|
|
@ -326,11 +326,6 @@ namespace OpenSim.Region.Examples.SimpleModule
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public virtual void OutPacket(Packet newPack, ThrottleOutPacketType packType)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void SendWearables(AvatarWearable[] wearables, int serial)
|
public virtual void SendWearables(AvatarWearable[] wearables, int serial)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -821,38 +816,42 @@ namespace OpenSim.Region.Examples.SimpleModule
|
||||||
public void SendRegionInfoToEstateMenu(RegionInfoForEstateMenuArgs args)
|
public void SendRegionInfoToEstateMenu(RegionInfoForEstateMenuArgs args)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendEstateCovenantInformation(UUID covenant)
|
public void SendEstateCovenantInformation(UUID covenant)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendDetailedEstateData(UUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, UUID covenant, string abuseEmail, UUID estateOwner)
|
public void SendDetailedEstateData(UUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, UUID covenant, string abuseEmail, UUID estateOwner)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendLandProperties(IClientAPI remote_client, int sequence_id, bool snap_selection, int request_result, LandData landData, float simObjectBonusFactor, int parcelObjectCapacity, int simObjectCapacity, uint regionFlags)
|
public void SendLandProperties(int sequence_id, bool snap_selection, int request_result, LandData landData, float simObjectBonusFactor, int parcelObjectCapacity, int simObjectCapacity, uint regionFlags)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendLandAccessListData(List<UUID> avatars, uint accessFlag, int localLandID)
|
public void SendLandAccessListData(List<UUID> avatars, uint accessFlag, int localLandID)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendForceClientSelectObjects(List<uint> objectIDs)
|
public void SendForceClientSelectObjects(List<uint> objectIDs)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendLandObjectOwners(Dictionary<UUID, int> ownersAndCount)
|
public void SendLandObjectOwners(Dictionary<UUID, int> ownersAndCount)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendLandParcelOverlay(byte[] data, int sequence_id)
|
public void SendLandParcelOverlay(byte[] data, int sequence_id)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendParcelMediaCommand(uint flags, ParcelMediaCommandEnum command, float time)
|
public void SendParcelMediaCommand(uint flags, ParcelMediaCommandEnum command, float time)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendParcelMediaUpdate(string mediaUrl, UUID mediaTextureID, byte autoScale, string mediaType,
|
public void SendParcelMediaUpdate(string mediaUrl, UUID mediaTextureID, byte autoScale, string mediaType,
|
||||||
string mediaDesc, int mediaWidth, int mediaHeight, byte mediaLoop)
|
string mediaDesc, int mediaWidth, int mediaHeight, byte mediaLoop)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendGroupNameReply(UUID groupLLUID, string GroupName)
|
public void SendGroupNameReply(UUID groupLLUID, string GroupName)
|
||||||
|
|
Loading…
Reference in New Issue