mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
* Two more OutPacket refactors. TextureSender.
* The split image packet sender doesn't like to be refactored (images don't load after it's been refactored), so left that as is for the moment.
This commit is contained in:
@@ -2229,6 +2229,21 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
newPack.Header.Zerocoded = true;
|
||||
OutPacket(newPack, ThrottleOutPacketType.Asset);
|
||||
}
|
||||
public void SendImagePart(ushort numParts, LLUUID ImageUUID, uint ImageSize, byte[] ImageData, byte imageCodec)
|
||||
{
|
||||
ImageDataPacket im = new ImageDataPacket();
|
||||
im.Header.Reliable = false;
|
||||
im.ImageID.Packets = numParts;
|
||||
im.ImageID.ID = ImageUUID;
|
||||
|
||||
if (ImageSize > 0)
|
||||
im.ImageID.Size = ImageSize;
|
||||
|
||||
im.ImageData.Data = ImageData;
|
||||
im.ImageID.Codec = imageCodec;
|
||||
im.Header.Zerocoded = true;
|
||||
OutPacket(im, ThrottleOutPacketType.Texture);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Estate Data Sending Methods
|
||||
|
||||
Reference in New Issue
Block a user