diff options
Diffstat (limited to 'OpenSim/Region/Examples/SimpleApp')
-rw-r--r-- | OpenSim/Region/Examples/SimpleApp/FileSystemObject.cs | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/OpenSim/Region/Examples/SimpleApp/FileSystemObject.cs b/OpenSim/Region/Examples/SimpleApp/FileSystemObject.cs index 2e43fe6..83a76e3 100644 --- a/OpenSim/Region/Examples/SimpleApp/FileSystemObject.cs +++ b/OpenSim/Region/Examples/SimpleApp/FileSystemObject.cs | |||
@@ -1,31 +1,31 @@ | |||
1 | using System; | 1 | using System; |
2 | using System.Collections.Generic; | 2 | using System.Collections.Generic; |
3 | using System.Text; | 3 | using System.Text; |
4 | using OpenSim.Region.Environment.Scenes; | 4 | using OpenSim.Region.Environment.Scenes; |
5 | using libsecondlife; | 5 | using libsecondlife; |
6 | using OpenSim.Framework.Types; | 6 | using OpenSim.Framework.Types; |
7 | using System.Timers; | 7 | using System.Timers; |
8 | using System.Diagnostics; | 8 | using System.Diagnostics; |
9 | using System.IO; | 9 | using System.IO; |
10 | using Primitive=OpenSim.Region.Environment.Scenes.Primitive; | 10 | 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 : SceneObject |
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.EventManager, 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() |
27 | { | 27 | { |
28 | base.Update(); | 28 | base.Update(); |
29 | } | 29 | } |
30 | } | 30 | } |
31 | } | 31 | } |