diff options
author | lbsa71 | 2007-07-18 09:36:47 +0000 |
---|---|---|
committer | lbsa71 | 2007-07-18 09:36:47 +0000 |
commit | f70ec1fa75ef526266ad359d2db0e25f2635c182 (patch) | |
tree | 0ce6f6df1702d849532d1818c76c2bd301fb4579 /OpenSim/Region/Examples/SimpleApp/FileSystemObject.cs | |
parent | * One hopefully-final attempt at fixing this remoting issue. (diff) | |
download | opensim-SC-f70ec1fa75ef526266ad359d2db0e25f2635c182.zip opensim-SC-f70ec1fa75ef526266ad359d2db0e25f2635c182.tar.gz opensim-SC-f70ec1fa75ef526266ad359d2db0e25f2635c182.tar.bz2 opensim-SC-f70ec1fa75ef526266ad359d2db0e25f2635c182.tar.xz |
* Added a FileSystemObject to SimpleApp
* Added Some ShapeTypes (shapes doesn't work though!)
* Fixed some \0 issues
Diffstat (limited to 'OpenSim/Region/Examples/SimpleApp/FileSystemObject.cs')
-rw-r--r-- | OpenSim/Region/Examples/SimpleApp/FileSystemObject.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/OpenSim/Region/Examples/SimpleApp/FileSystemObject.cs b/OpenSim/Region/Examples/SimpleApp/FileSystemObject.cs new file mode 100644 index 0000000..2e43fe6 --- /dev/null +++ b/OpenSim/Region/Examples/SimpleApp/FileSystemObject.cs | |||
@@ -0,0 +1,31 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using OpenSim.Region.Environment.Scenes; | ||
5 | using libsecondlife; | ||
6 | using OpenSim.Framework.Types; | ||
7 | using System.Timers; | ||
8 | using System.Diagnostics; | ||
9 | using System.IO; | ||
10 | using Primitive=OpenSim.Region.Environment.Scenes.Primitive; | ||
11 | |||
12 | namespace SimpleApp | ||
13 | { | ||
14 | public class FileSystemObject : SceneObject | ||
15 | { | ||
16 | public FileSystemObject(Scene world, FileInfo fileInfo, LLVector3 pos) | ||
17 | : base( world, world.EventManager, LLUUID.Zero, world.NextLocalId, pos, BoxShape.Default ) | ||
18 | { | ||
19 | |||
20 | |||
21 | float size = (float)Math.Pow((double)fileInfo.Length, (double) 1 / 3) / 5; | ||
22 | rootPrimitive.ResizeGoup(new LLVector3(size, size, size)); | ||
23 | rootPrimitive.Text = fileInfo.Name; | ||
24 | } | ||
25 | |||
26 | public override void Update() | ||
27 | { | ||
28 | base.Update(); | ||
29 | } | ||
30 | } | ||
31 | } | ||