diff options
Diffstat (limited to 'OpenSim/OpenSim.RegionServer/Simulator/SceneObject.cs')
-rw-r--r-- | OpenSim/OpenSim.RegionServer/Simulator/SceneObject.cs | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/OpenSim/OpenSim.RegionServer/Simulator/SceneObject.cs b/OpenSim/OpenSim.RegionServer/Simulator/SceneObject.cs new file mode 100644 index 0000000..1ef91c9 --- /dev/null +++ b/OpenSim/OpenSim.RegionServer/Simulator/SceneObject.cs | |||
@@ -0,0 +1,105 @@ | |||
1 | /* | ||
2 | * Copyright (c) Contributors, http://www.openmetaverse.org/ | ||
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions are met: | ||
7 | * * Redistributions of source code must retain the above copyright | ||
8 | * notice, this list of conditions and the following disclaimer. | ||
9 | * * Redistributions in binary form must reproduce the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer in the | ||
11 | * documentation and/or other materials provided with the distribution. | ||
12 | * * Neither the name of the OpenSim Project nor the | ||
13 | * names of its contributors may be used to endorse or promote products | ||
14 | * derived from this software without specific prior written permission. | ||
15 | * | ||
16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS AND ANY | ||
17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY | ||
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
26 | * | ||
27 | */ | ||
28 | using System; | ||
29 | using System.Collections.Generic; | ||
30 | using System.Text; | ||
31 | using OpenSim.RegionServer.Types; | ||
32 | using libsecondlife; | ||
33 | using libsecondlife.Packets; | ||
34 | using OpenSim.Framework.Interfaces; | ||
35 | using OpenSim.Physics.Manager; | ||
36 | using OpenSim.Framework.Types; | ||
37 | using OpenSim.Framework.Inventory; | ||
38 | using OpenSim.RegionServer.Client; | ||
39 | |||
40 | namespace OpenSim.RegionServer.Simulator | ||
41 | { | ||
42 | public class SceneObject : Entity | ||
43 | { | ||
44 | private LLUUID rootUUID; | ||
45 | private Dictionary<LLUUID, Primitive2> ChildPrimitives = new Dictionary<LLUUID, Primitive2>(); | ||
46 | private Dictionary<uint, ClientView> m_clientThreads; | ||
47 | private World m_world; | ||
48 | |||
49 | public SceneObject() | ||
50 | { | ||
51 | |||
52 | } | ||
53 | |||
54 | public void CreateFromPacket(ObjectAddPacket addPacket, LLUUID agentID, uint localID) | ||
55 | { | ||
56 | } | ||
57 | |||
58 | public void CreateFromBytes(byte[] data) | ||
59 | { | ||
60 | |||
61 | } | ||
62 | |||
63 | public override void update() | ||
64 | { | ||
65 | |||
66 | } | ||
67 | |||
68 | public override void BackUp() | ||
69 | { | ||
70 | |||
71 | } | ||
72 | |||
73 | public void GetProperites(ClientView client) | ||
74 | { | ||
75 | /* | ||
76 | ObjectPropertiesPacket proper = new ObjectPropertiesPacket(); | ||
77 | proper.ObjectData = new ObjectPropertiesPacket.ObjectDataBlock[1]; | ||
78 | proper.ObjectData[0] = new ObjectPropertiesPacket.ObjectDataBlock(); | ||
79 | proper.ObjectData[0].ItemID = LLUUID.Zero; | ||
80 | proper.ObjectData[0].CreationDate = (ulong)this.primData.CreationDate; | ||
81 | proper.ObjectData[0].CreatorID = this.primData.OwnerID; | ||
82 | proper.ObjectData[0].FolderID = LLUUID.Zero; | ||
83 | proper.ObjectData[0].FromTaskID = LLUUID.Zero; | ||
84 | proper.ObjectData[0].GroupID = LLUUID.Zero; | ||
85 | proper.ObjectData[0].InventorySerial = 0; | ||
86 | proper.ObjectData[0].LastOwnerID = LLUUID.Zero; | ||
87 | proper.ObjectData[0].ObjectID = this.uuid; | ||
88 | proper.ObjectData[0].OwnerID = primData.OwnerID; | ||
89 | proper.ObjectData[0].TouchName = new byte[0]; | ||
90 | proper.ObjectData[0].TextureID = new byte[0]; | ||
91 | proper.ObjectData[0].SitName = new byte[0]; | ||
92 | proper.ObjectData[0].Name = new byte[0]; | ||
93 | proper.ObjectData[0].Description = new byte[0]; | ||
94 | proper.ObjectData[0].OwnerMask = this.primData.OwnerMask; | ||
95 | proper.ObjectData[0].NextOwnerMask = this.primData.NextOwnerMask; | ||
96 | proper.ObjectData[0].GroupMask = this.primData.GroupMask; | ||
97 | proper.ObjectData[0].EveryoneMask = this.primData.EveryoneMask; | ||
98 | proper.ObjectData[0].BaseMask = this.primData.BaseMask; | ||
99 | |||
100 | client.OutPacket(proper); | ||
101 | * */ | ||
102 | } | ||
103 | |||
104 | } | ||
105 | } | ||