diff options
author | MW | 2007-04-30 15:38:51 +0000 |
---|---|---|
committer | MW | 2007-04-30 15:38:51 +0000 |
commit | a595881dc06c8359faa731a0af2d8be7290daad1 (patch) | |
tree | 3ce516a66b07b4695d9861f52ed91485cd14c2a0 /OpenSim.RegionServer/world/Primitive2.cs | |
parent | And it's fixed (diff) | |
download | opensim-SC-a595881dc06c8359faa731a0af2d8be7290daad1.zip opensim-SC-a595881dc06c8359faa731a0af2d8be7290daad1.tar.gz opensim-SC-a595881dc06c8359faa731a0af2d8be7290daad1.tar.bz2 opensim-SC-a595881dc06c8359faa731a0af2d8be7290daad1.tar.xz |
fixed the VS 2005 solution/ project files.
and a couple of other small changes
Diffstat (limited to 'OpenSim.RegionServer/world/Primitive2.cs')
-rw-r--r-- | OpenSim.RegionServer/world/Primitive2.cs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/OpenSim.RegionServer/world/Primitive2.cs b/OpenSim.RegionServer/world/Primitive2.cs index 24fc6da..c0d6295 100644 --- a/OpenSim.RegionServer/world/Primitive2.cs +++ b/OpenSim.RegionServer/world/Primitive2.cs | |||
@@ -145,6 +145,35 @@ namespace OpenSim.world | |||
145 | 145 | ||
146 | } | 146 | } |
147 | 147 | ||
148 | public void GetProperites(SimClient client) | ||
149 | { | ||
150 | ObjectPropertiesPacket proper = new ObjectPropertiesPacket(); | ||
151 | proper.ObjectData = new ObjectPropertiesPacket.ObjectDataBlock[1]; | ||
152 | proper.ObjectData[0] = new ObjectPropertiesPacket.ObjectDataBlock(); | ||
153 | proper.ObjectData[0].ItemID = LLUUID.Zero; | ||
154 | proper.ObjectData[0].CreationDate = (ulong)this.primData.CreationDate; | ||
155 | proper.ObjectData[0].CreatorID = this.primData.OwnerID; | ||
156 | proper.ObjectData[0].FolderID = LLUUID.Zero; | ||
157 | proper.ObjectData[0].FromTaskID = LLUUID.Zero; | ||
158 | proper.ObjectData[0].GroupID = LLUUID.Zero; | ||
159 | proper.ObjectData[0].InventorySerial = 0; | ||
160 | proper.ObjectData[0].LastOwnerID = LLUUID.Zero; | ||
161 | proper.ObjectData[0].ObjectID = this.uuid; | ||
162 | proper.ObjectData[0].OwnerID = primData.OwnerID; | ||
163 | proper.ObjectData[0].TouchName = new byte[0]; | ||
164 | proper.ObjectData[0].TextureID = new byte[0]; | ||
165 | proper.ObjectData[0].SitName = new byte[0]; | ||
166 | proper.ObjectData[0].Name = new byte[0]; | ||
167 | proper.ObjectData[0].Description = new byte[0]; | ||
168 | proper.ObjectData[0].OwnerMask = this.primData.OwnerMask; | ||
169 | proper.ObjectData[0].NextOwnerMask = this.primData.NextOwnerMask; | ||
170 | proper.ObjectData[0].GroupMask = this.primData.GroupMask; | ||
171 | proper.ObjectData[0].EveryoneMask = this.primData.EveryoneMask; | ||
172 | proper.ObjectData[0].BaseMask = this.primData.BaseMask; | ||
173 | |||
174 | client.OutPacket(proper); | ||
175 | } | ||
176 | |||
148 | #endregion | 177 | #endregion |
149 | 178 | ||
150 | # region Inventory Methods | 179 | # region Inventory Methods |
@@ -291,6 +320,11 @@ namespace OpenSim.world | |||
291 | 320 | ||
292 | public void CreateFromPrimData(PrimData primData) | 321 | public void CreateFromPrimData(PrimData primData) |
293 | { | 322 | { |
323 | this.CreateFromPrimData(primData, primData.Position, primData.LocalID, false); | ||
324 | } | ||
325 | |||
326 | public void CreateFromPrimData(PrimData primData, LLVector3 posi, uint localID, bool newprim) | ||
327 | { | ||
294 | 328 | ||
295 | } | 329 | } |
296 | 330 | ||