diff options
Ditto...More work on the AllNewSceneObject* classes.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/AllNewSceneObjectGroup2.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/AllNewSceneObjectGroup2.cs | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/OpenSim/Region/Environment/Scenes/AllNewSceneObjectGroup2.cs b/OpenSim/Region/Environment/Scenes/AllNewSceneObjectGroup2.cs index 8fd8e52..b0fe12a 100644 --- a/OpenSim/Region/Environment/Scenes/AllNewSceneObjectGroup2.cs +++ b/OpenSim/Region/Environment/Scenes/AllNewSceneObjectGroup2.cs | |||
@@ -19,7 +19,6 @@ namespace OpenSim.Region.Environment.Scenes | |||
19 | protected Dictionary<LLUUID, AllNewSceneObjectPart2> m_parts = new Dictionary<LLUUID, AllNewSceneObjectPart2>(); | 19 | protected Dictionary<LLUUID, AllNewSceneObjectPart2> m_parts = new Dictionary<LLUUID, AllNewSceneObjectPart2>(); |
20 | 20 | ||
21 | protected ulong m_regionHandle; | 21 | protected ulong m_regionHandle; |
22 | protected Scene m_scene; | ||
23 | 22 | ||
24 | public event PrimCountTaintedDelegate OnPrimCountTainted; | 23 | public event PrimCountTaintedDelegate OnPrimCountTainted; |
25 | 24 | ||
@@ -54,8 +53,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
54 | m_scene = world; | 53 | m_scene = world; |
55 | 54 | ||
56 | this.Pos = pos; | 55 | this.Pos = pos; |
57 | this.m_rootPart = new AllNewSceneObjectPart2(m_regionHandle, this, ownerID, localID, shape, pos); | 56 | LLVector3 rootOffset = new LLVector3(0, 0, 0); |
58 | this.m_parts.Add(this.m_rootPart.UUID, this.m_rootPart); | 57 | AllNewSceneObjectPart2 newPart = new AllNewSceneObjectPart2(m_regionHandle, this, ownerID, localID, shape, rootOffset); |
58 | this.m_parts.Add(newPart.UUID, newPart); | ||
59 | this.SetPartAsRoot(newPart); | ||
59 | } | 60 | } |
60 | 61 | ||
61 | /// <summary> | 62 | /// <summary> |
@@ -63,7 +64,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
63 | /// </summary> | 64 | /// </summary> |
64 | public void FlagGroupForFullUpdate() | 65 | public void FlagGroupForFullUpdate() |
65 | { | 66 | { |
66 | 67 | foreach (AllNewSceneObjectPart2 part in this.m_parts.Values) | |
68 | { | ||
69 | part.SendFullUpdateToAllClients(); | ||
70 | } | ||
67 | } | 71 | } |
68 | 72 | ||
69 | /// <summary> | 73 | /// <summary> |
@@ -71,7 +75,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
71 | /// </summary> | 75 | /// </summary> |
72 | public void FlagGroupForTerseUpdate() | 76 | public void FlagGroupForTerseUpdate() |
73 | { | 77 | { |
74 | 78 | foreach (AllNewSceneObjectPart2 part in this.m_parts.Values) | |
79 | { | ||
80 | part.SendTerseUpdateToALLClients(); | ||
81 | } | ||
75 | } | 82 | } |
76 | 83 | ||
77 | /// <summary> | 84 | /// <summary> |
@@ -413,5 +420,14 @@ namespace OpenSim.Region.Environment.Scenes | |||
413 | { | 420 | { |
414 | 421 | ||
415 | } | 422 | } |
423 | |||
424 | /// <summary> | ||
425 | /// | ||
426 | /// </summary> | ||
427 | /// <returns></returns> | ||
428 | public List<ScenePresence> RequestSceneAvatars() | ||
429 | { | ||
430 | return m_scene.RequestAvatarList(); | ||
431 | } | ||
416 | } | 432 | } |
417 | } | 433 | } |