aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Examples/SimpleApp/FileSystemObject.cs
blob: 83a76e341301ddd204a4ee7efc63475b125904ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
using System.Text;
using OpenSim.Region.Environment.Scenes;
using libsecondlife;
using OpenSim.Framework.Types;
using System.Timers;
using System.Diagnostics;
using System.IO;
using Primitive=OpenSim.Region.Environment.Scenes.Primitive;

namespace SimpleApp
{
    public class FileSystemObject : SceneObject
    {
        public FileSystemObject(Scene world, FileInfo fileInfo, LLVector3 pos)
            : base( world, world.EventManager, LLUUID.Zero, world.NextLocalId, pos, BoxShape.Default )
        {
            
            
            float size = (float)Math.Pow((double)fileInfo.Length, (double) 1 / 3) / 5;
            rootPrimitive.ResizeGoup(new LLVector3(size, size, size));
            rootPrimitive.Text = fileInfo.Name;
        }

        public override void Update()
        {
            base.Update();
        }
    }
}