diff options
Diffstat (limited to 'OpenSim/Region/Examples/SimpleApp')
-rw-r--r-- | OpenSim/Region/Examples/SimpleApp/CpuCounterObject.cs | 8 | ||||
-rw-r--r-- | OpenSim/Region/Examples/SimpleApp/FileSystemObject.cs | 8 | ||||
-rw-r--r-- | OpenSim/Region/Examples/SimpleApp/Program.cs | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/OpenSim/Region/Examples/SimpleApp/CpuCounterObject.cs b/OpenSim/Region/Examples/SimpleApp/CpuCounterObject.cs index 404653d..108fa98 100644 --- a/OpenSim/Region/Examples/SimpleApp/CpuCounterObject.cs +++ b/OpenSim/Region/Examples/SimpleApp/CpuCounterObject.cs | |||
@@ -9,12 +9,12 @@ using System.Diagnostics; | |||
9 | 9 | ||
10 | namespace SimpleApp | 10 | namespace SimpleApp |
11 | { | 11 | { |
12 | public class CpuCounterObject : SceneObject | 12 | public class CpuCounterObject : SceneObjectGroup |
13 | { | 13 | { |
14 | private PerformanceCounter m_counter; | 14 | private PerformanceCounter m_counter; |
15 | 15 | ||
16 | public CpuCounterObject(Scene world, EventManager eventManager, LLUUID ownerID, uint localID, LLVector3 pos, PrimitiveBaseShape shape) | 16 | public CpuCounterObject(Scene world, ulong regionHandle, LLUUID ownerID, uint localID, LLVector3 pos, PrimitiveBaseShape shape) |
17 | : base(world, eventManager, ownerID, localID, pos, shape ) | 17 | : base(world, regionHandle, ownerID, localID, pos, shape ) |
18 | { | 18 | { |
19 | String objectName = "Processor"; | 19 | String objectName = "Processor"; |
20 | String counterName = "% Processor Time"; | 20 | String counterName = "% Processor Time"; |
@@ -27,7 +27,7 @@ namespace SimpleApp | |||
27 | { | 27 | { |
28 | float cpu = m_counter.NextValue() / 40f; | 28 | float cpu = m_counter.NextValue() / 40f; |
29 | LLVector3 size = new LLVector3(cpu, cpu, cpu); | 29 | LLVector3 size = new LLVector3(cpu, cpu, cpu); |
30 | rootPrimitive.ResizeGoup( size ); | 30 | //rootPrimitive.ResizeGoup( size ); |
31 | 31 | ||
32 | base.UpdateMovement(); | 32 | base.UpdateMovement(); |
33 | } | 33 | } |
diff --git a/OpenSim/Region/Examples/SimpleApp/FileSystemObject.cs b/OpenSim/Region/Examples/SimpleApp/FileSystemObject.cs index 83a76e3..920fea7 100644 --- a/OpenSim/Region/Examples/SimpleApp/FileSystemObject.cs +++ b/OpenSim/Region/Examples/SimpleApp/FileSystemObject.cs | |||
@@ -11,16 +11,16 @@ using Primitive=OpenSim.Region.Environment.Scenes.Primitive; | |||
11 | 11 | ||
12 | namespace SimpleApp | 12 | namespace SimpleApp |
13 | { | 13 | { |
14 | public class FileSystemObject : SceneObject | 14 | public class FileSystemObject : SceneObjectGroup |
15 | { | 15 | { |
16 | public FileSystemObject(Scene world, FileInfo fileInfo, LLVector3 pos) | 16 | public FileSystemObject(Scene world, FileInfo fileInfo, LLVector3 pos) |
17 | : base( world, world.EventManager, LLUUID.Zero, world.NextLocalId, pos, BoxShape.Default ) | 17 | : base( world, world.RegionInfo.RegionHandle, LLUUID.Zero, world.NextLocalId, pos, BoxShape.Default ) |
18 | { | 18 | { |
19 | 19 | ||
20 | 20 | ||
21 | float size = (float)Math.Pow((double)fileInfo.Length, (double) 1 / 3) / 5; | 21 | float size = (float)Math.Pow((double)fileInfo.Length, (double) 1 / 3) / 5; |
22 | rootPrimitive.ResizeGoup(new LLVector3(size, size, size)); | 22 | // rootPrimitive.ResizeGoup(new LLVector3(size, size, size)); |
23 | rootPrimitive.Text = fileInfo.Name; | 23 | // rootPrimitive.Text = fileInfo.Name; |
24 | } | 24 | } |
25 | 25 | ||
26 | public override void Update() | 26 | public override void Update() |
diff --git a/OpenSim/Region/Examples/SimpleApp/Program.cs b/OpenSim/Region/Examples/SimpleApp/Program.cs index db71578..84c86fd 100644 --- a/OpenSim/Region/Examples/SimpleApp/Program.cs +++ b/OpenSim/Region/Examples/SimpleApp/Program.cs | |||
@@ -69,7 +69,7 @@ namespace SimpleApp | |||
69 | shape.Scale = new LLVector3(0.5f, 0.5f, 0.5f); | 69 | shape.Scale = new LLVector3(0.5f, 0.5f, 0.5f); |
70 | LLVector3 pos = new LLVector3(138, 129, 27); | 70 | LLVector3 pos = new LLVector3(138, 129, 27); |
71 | 71 | ||
72 | SceneObject sceneObject = new CpuCounterObject(scene, scene.EventManager, LLUUID.Zero, scene.PrimIDAllocate(), pos, shape); | 72 | SceneObjectGroup sceneObject = new CpuCounterObject(scene, regionInfo.RegionHandle, LLUUID.Zero, scene.PrimIDAllocate(), pos, shape); |
73 | scene.AddEntity(sceneObject); | 73 | scene.AddEntity(sceneObject); |
74 | 74 | ||
75 | MyNpcCharacter m_character = new MyNpcCharacter( scene.EventManager ); | 75 | MyNpcCharacter m_character = new MyNpcCharacter( scene.EventManager ); |