diff options
author | MW | 2007-05-17 10:42:40 +0000 |
---|---|---|
committer | MW | 2007-05-17 10:42:40 +0000 |
commit | 0808b9470c47baae5c9d9d9769415dcb2fa02e35 (patch) | |
tree | dae7859587b12ad06c862f04c9fa77acac31245c /OpenSim.RegionServer | |
parent | More OO and abstract goodness for Gareth to drool over. Cleaned up the World ... (diff) | |
download | opensim-SC-0808b9470c47baae5c9d9d9769415dcb2fa02e35.zip opensim-SC-0808b9470c47baae5c9d9d9769415dcb2fa02e35.tar.gz opensim-SC-0808b9470c47baae5c9d9d9769415dcb2fa02e35.tar.bz2 opensim-SC-0808b9470c47baae5c9d9d9769415dcb2fa02e35.tar.xz |
Some work on the new SceneObject and primitive2 classes
Diffstat (limited to 'OpenSim.RegionServer')
-rw-r--r-- | OpenSim.RegionServer/world/SceneObject.cs | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/OpenSim.RegionServer/world/SceneObject.cs b/OpenSim.RegionServer/world/SceneObject.cs index 58454fd..338a27e 100644 --- a/OpenSim.RegionServer/world/SceneObject.cs +++ b/OpenSim.RegionServer/world/SceneObject.cs | |||
@@ -13,5 +13,59 @@ namespace OpenSim.world | |||
13 | { | 13 | { |
14 | public class SceneObject : Entity | 14 | public class SceneObject : Entity |
15 | { | 15 | { |
16 | |||
17 | public SceneObject() | ||
18 | { | ||
19 | |||
20 | } | ||
21 | |||
22 | public void CreateFromPacket(ObjectAddPacket addPacket, LLUUID agentID, uint localID) | ||
23 | { | ||
24 | } | ||
25 | |||
26 | public void CreateFromBytes(byte[] data) | ||
27 | { | ||
28 | |||
29 | } | ||
30 | |||
31 | public override void update() | ||
32 | { | ||
33 | |||
34 | } | ||
35 | |||
36 | public override void BackUp() | ||
37 | { | ||
38 | |||
39 | } | ||
40 | |||
41 | public void GetProperites(SimClient client) | ||
42 | { | ||
43 | ObjectPropertiesPacket proper = new ObjectPropertiesPacket(); | ||
44 | proper.ObjectData = new ObjectPropertiesPacket.ObjectDataBlock[1]; | ||
45 | proper.ObjectData[0] = new ObjectPropertiesPacket.ObjectDataBlock(); | ||
46 | proper.ObjectData[0].ItemID = LLUUID.Zero; | ||
47 | proper.ObjectData[0].CreationDate = (ulong)this.primData.CreationDate; | ||
48 | proper.ObjectData[0].CreatorID = this.primData.OwnerID; | ||
49 | proper.ObjectData[0].FolderID = LLUUID.Zero; | ||
50 | proper.ObjectData[0].FromTaskID = LLUUID.Zero; | ||
51 | proper.ObjectData[0].GroupID = LLUUID.Zero; | ||
52 | proper.ObjectData[0].InventorySerial = 0; | ||
53 | proper.ObjectData[0].LastOwnerID = LLUUID.Zero; | ||
54 | proper.ObjectData[0].ObjectID = this.uuid; | ||
55 | proper.ObjectData[0].OwnerID = primData.OwnerID; | ||
56 | proper.ObjectData[0].TouchName = new byte[0]; | ||
57 | proper.ObjectData[0].TextureID = new byte[0]; | ||
58 | proper.ObjectData[0].SitName = new byte[0]; | ||
59 | proper.ObjectData[0].Name = new byte[0]; | ||
60 | proper.ObjectData[0].Description = new byte[0]; | ||
61 | proper.ObjectData[0].OwnerMask = this.primData.OwnerMask; | ||
62 | proper.ObjectData[0].NextOwnerMask = this.primData.NextOwnerMask; | ||
63 | proper.ObjectData[0].GroupMask = this.primData.GroupMask; | ||
64 | proper.ObjectData[0].EveryoneMask = this.primData.EveryoneMask; | ||
65 | proper.ObjectData[0].BaseMask = this.primData.BaseMask; | ||
66 | |||
67 | client.OutPacket(proper); | ||
68 | } | ||
69 | |||
16 | } | 70 | } |
17 | } | 71 | } |