diff options
Diffstat (limited to 'Common/OpenSim.Framework')
-rw-r--r-- | Common/OpenSim.Framework/Interfaces/IClientAPI.cs | 2 | ||||
-rw-r--r-- | Common/OpenSim.Framework/Types/PrimData.cs | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/Common/OpenSim.Framework/Interfaces/IClientAPI.cs b/Common/OpenSim.Framework/Interfaces/IClientAPI.cs index ea38f06..9028d8d 100644 --- a/Common/OpenSim.Framework/Interfaces/IClientAPI.cs +++ b/Common/OpenSim.Framework/Interfaces/IClientAPI.cs | |||
@@ -144,7 +144,7 @@ namespace OpenSim.Framework.Interfaces | |||
144 | void SendTeleportCancel(); | 144 | void SendTeleportCancel(); |
145 | void SendTeleportLocationStart(); | 145 | void SendTeleportLocationStart(); |
146 | 146 | ||
147 | void SendAvatarData(ulong regionHandle, string firstName, string lastName, LLUUID avatarID, uint avatarLocalID, LLVector3 Pos); | 147 | void SendAvatarData(ulong regionHandle, string firstName, string lastName, LLUUID avatarID, uint avatarLocalID, LLVector3 Pos, byte[] textureEntry); |
148 | void SendAvatarTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, LLVector3 position, LLVector3 velocity); | 148 | void SendAvatarTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, LLVector3 position, LLVector3 velocity); |
149 | 149 | ||
150 | void AttachObject(uint localID, LLQuaternion rotation, byte attachPoint); | 150 | void AttachObject(uint localID, LLQuaternion rotation, byte attachPoint); |
diff --git a/Common/OpenSim.Framework/Types/PrimData.cs b/Common/OpenSim.Framework/Types/PrimData.cs index 56d41b3..f84ae3e 100644 --- a/Common/OpenSim.Framework/Types/PrimData.cs +++ b/Common/OpenSim.Framework/Types/PrimData.cs | |||
@@ -58,7 +58,7 @@ namespace OpenSim.Framework.Types | |||
58 | public sbyte PathTaperY; | 58 | public sbyte PathTaperY; |
59 | public sbyte PathTwist; | 59 | public sbyte PathTwist; |
60 | public sbyte PathTwistBegin; | 60 | public sbyte PathTwistBegin; |
61 | public byte[] Texture; | 61 | public byte[] TextureEntry; // a LL textureEntry in byte[] format |
62 | 62 | ||
63 | public Int32 CreationDate; | 63 | public Int32 CreationDate; |
64 | public uint OwnerMask = FULL_MASK_PERMISSIONS; | 64 | public uint OwnerMask = FULL_MASK_PERMISSIONS; |
@@ -105,8 +105,8 @@ namespace OpenSim.Framework.Types | |||
105 | this.PathTwist = (sbyte)data[i++]; | 105 | this.PathTwist = (sbyte)data[i++]; |
106 | this.PathTwistBegin = (sbyte)data[i++]; | 106 | this.PathTwistBegin = (sbyte)data[i++]; |
107 | ushort length = (ushort)(data[i++] + (data[i++] << 8)); | 107 | ushort length = (ushort)(data[i++] + (data[i++] << 8)); |
108 | this.Texture = new byte[length]; | 108 | this.TextureEntry = new byte[length]; |
109 | Array.Copy(data, i, Texture, 0, length); i += length; | 109 | Array.Copy(data, i, TextureEntry, 0, length); i += length; |
110 | this.CreationDate = (Int32)(data[i++] + (data[i++] << 8) + (data[i++] << 16) + (data[i++] << 24)); | 110 | this.CreationDate = (Int32)(data[i++] + (data[i++] << 8) + (data[i++] << 16) + (data[i++] << 24)); |
111 | this.OwnerMask = (uint)(data[i++] + (data[i++] << 8) + (data[i++] << 16) + (data[i++] << 24)); | 111 | this.OwnerMask = (uint)(data[i++] + (data[i++] << 8) + (data[i++] << 16) + (data[i++] << 24)); |
112 | this.NextOwnerMask = (uint)(data[i++] + (data[i++] << 8) + (data[i++] << 16) + (data[i++] << 24)); | 112 | this.NextOwnerMask = (uint)(data[i++] + (data[i++] << 8) + (data[i++] << 16) + (data[i++] << 24)); |
@@ -123,7 +123,7 @@ namespace OpenSim.Framework.Types | |||
123 | public byte[] ToBytes() | 123 | public byte[] ToBytes() |
124 | { | 124 | { |
125 | int i = 0; | 125 | int i = 0; |
126 | byte[] bytes = new byte[126 + Texture.Length]; | 126 | byte[] bytes = new byte[126 + TextureEntry.Length]; |
127 | Array.Copy(OwnerID.GetBytes(), 0, bytes, i, 16); i += 16; | 127 | Array.Copy(OwnerID.GetBytes(), 0, bytes, i, 16); i += 16; |
128 | bytes[i++] = this.PCode; | 128 | bytes[i++] = this.PCode; |
129 | bytes[i++] = (byte)(this.PathBegin % 256); | 129 | bytes[i++] = (byte)(this.PathBegin % 256); |
@@ -154,9 +154,9 @@ namespace OpenSim.Framework.Types | |||
154 | bytes[i++] = ((byte)this.PathTaperY); | 154 | bytes[i++] = ((byte)this.PathTaperY); |
155 | bytes[i++] = ((byte)this.PathTwist); | 155 | bytes[i++] = ((byte)this.PathTwist); |
156 | bytes[i++] = ((byte)this.PathTwistBegin); | 156 | bytes[i++] = ((byte)this.PathTwistBegin); |
157 | bytes[i++] = (byte)(Texture.Length % 256); | 157 | bytes[i++] = (byte)(TextureEntry.Length % 256); |
158 | bytes[i++] = (byte)((Texture.Length >> 8) % 256); | 158 | bytes[i++] = (byte)((TextureEntry.Length >> 8) % 256); |
159 | Array.Copy(Texture, 0, bytes, i, Texture.Length); i += Texture.Length; | 159 | Array.Copy(TextureEntry, 0, bytes, i, TextureEntry.Length); i += TextureEntry.Length; |
160 | bytes[i++] = (byte)(this.CreationDate % 256); | 160 | bytes[i++] = (byte)(this.CreationDate % 256); |
161 | bytes[i++] = (byte)((this.CreationDate >> 8) % 256); | 161 | bytes[i++] = (byte)((this.CreationDate >> 8) % 256); |
162 | bytes[i++] = (byte)((this.CreationDate >> 16) % 256); | 162 | bytes[i++] = (byte)((this.CreationDate >> 16) % 256); |