mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 19:35:41 +08:00
PLEASE NOTE: that with this revision some prim related features may be broke for a while. (things like linking prims and the parcel prim count.) Also this revision may not work on mono, but that will be fixed soon.
32 lines
910 B
C#
32 lines
910 B
C#
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 : SceneObjectGroup
|
|
{
|
|
public FileSystemObject(Scene world, FileInfo fileInfo, LLVector3 pos)
|
|
: base( world, world.RegionInfo.RegionHandle, 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();
|
|
}
|
|
}
|
|
}
|