Update svn properties.

This commit is contained in:
Jeff Ames
2009-04-06 14:24:13 +00:00
parent 2a5d38a580
commit 5f34bd73fb
10 changed files with 1014 additions and 1014 deletions

View File

@@ -1,72 +1,72 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Timers;
using Nini.Config;
using OpenSim.Region.Framework.Interfaces;
using OpenSim.Region.Framework.Scenes;
namespace OpenSim.Region.OptionalModules.Autooar
{
public class AutooarModule : IRegionModule
{
private readonly Timer m_timer = new Timer(60000*20);
private readonly List<Scene> m_scenes = new List<Scene>();
private IConfigSource config;
private bool m_enabled = false;
public void Initialise(Scene scene, IConfigSource source)
{
m_scenes.Add(scene);
config = source;
}
public void PostInitialise()
{
if(config.Configs["autooar"] != null)
{
m_enabled = config.Configs["autooar"].GetBoolean("Enabled", m_enabled);
}
if(m_enabled)
{
m_timer.Elapsed += m_timer_Elapsed;
m_timer.AutoReset = true;
m_timer.Start();
}
}
void m_timer_Elapsed(object sender, ElapsedEventArgs e)
{
if (!Directory.Exists("autooars"))
Directory.CreateDirectory("autooars");
foreach (Scene scene in m_scenes)
{
IRegionArchiverModule archiver = scene.RequestModuleInterface<IRegionArchiverModule>();
archiver.ArchiveRegion(Path.Combine("autooars",
scene.RegionInfo.RegionName + "_" + scene.RegionInfo.RegionLocX +
"x" + scene.RegionInfo.RegionLocY + ".oar.tar.gz"));
}
}
public void Close()
{
if (m_timer.Enabled)
m_timer.Stop();
}
public string Name
{
get { return "Automatic OAR Module"; }
}
public bool IsSharedModule
{
get { return true; }
}
}
}
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Timers;
using Nini.Config;
using OpenSim.Region.Framework.Interfaces;
using OpenSim.Region.Framework.Scenes;
namespace OpenSim.Region.OptionalModules.Autooar
{
public class AutooarModule : IRegionModule
{
private readonly Timer m_timer = new Timer(60000*20);
private readonly List<Scene> m_scenes = new List<Scene>();
private IConfigSource config;
private bool m_enabled = false;
public void Initialise(Scene scene, IConfigSource source)
{
m_scenes.Add(scene);
config = source;
}
public void PostInitialise()
{
if(config.Configs["autooar"] != null)
{
m_enabled = config.Configs["autooar"].GetBoolean("Enabled", m_enabled);
}
if(m_enabled)
{
m_timer.Elapsed += m_timer_Elapsed;
m_timer.AutoReset = true;
m_timer.Start();
}
}
void m_timer_Elapsed(object sender, ElapsedEventArgs e)
{
if (!Directory.Exists("autooars"))
Directory.CreateDirectory("autooars");
foreach (Scene scene in m_scenes)
{
IRegionArchiverModule archiver = scene.RequestModuleInterface<IRegionArchiverModule>();
archiver.ArchiveRegion(Path.Combine("autooars",
scene.RegionInfo.RegionName + "_" + scene.RegionInfo.RegionLocX +
"x" + scene.RegionInfo.RegionLocY + ".oar.tar.gz"));
}
}
public void Close()
{
if (m_timer.Enabled)
m_timer.Stop();
}
public string Name
{
get { return "Automatic OAR Module"; }
}
public bool IsSharedModule
{
get { return true; }
}
}
}

View File

@@ -1,15 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using OpenMetaverse;
namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
{
public interface IParcel
{
string Name { get; set; }
string Description { get; set; }
ISocialEntity Owner { get; set; }
bool[,] Bitmap { get; }
}
}
using System;
using System.Collections.Generic;
using System.Text;
using OpenMetaverse;
namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
{
public interface IParcel
{
string Name { get; set; }
string Description { get; set; }
ISocialEntity Owner { get; set; }
bool[,] Bitmap { get; }
}
}

View File

@@ -1,29 +1,29 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
{
interface IPersistence
{
T Get<T>(Guid storageID);
T Get<T>();
/// <summary>
/// Stores 'data' into the persistence system
/// associated with this object, however saved
/// under the ID 'storageID'. This data may
/// be accessed by other scripts however.
/// </summary>
/// <param name="storageID"></param>
/// <param name="data"></param>
void Put<T>(Guid storageID, T data);
/// <summary>
/// Stores 'data' into the persistence system
/// using the default ID for this script.
/// </summary>
/// <param name="data"></param>
void Put<T>(T data);
}
}
using System;
using System.Collections.Generic;
using System.Text;
namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
{
interface IPersistence
{
T Get<T>(Guid storageID);
T Get<T>();
/// <summary>
/// Stores 'data' into the persistence system
/// associated with this object, however saved
/// under the ID 'storageID'. This data may
/// be accessed by other scripts however.
/// </summary>
/// <param name="storageID"></param>
/// <param name="data"></param>
void Put<T>(Guid storageID, T data);
/// <summary>
/// Stores 'data' into the persistence system
/// using the default ID for this script.
/// </summary>
/// <param name="data"></param>
void Put<T>(T data);
}
}

View File

@@ -1,14 +1,14 @@
using System;
using System.Collections.Generic;
using System.Text;
using OpenMetaverse;
namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
{
public interface ISocialEntity
{
UUID GlobalID { get; }
string Name { get; }
bool IsUser { get; }
}
using System;
using System.Collections.Generic;
using System.Text;
using OpenMetaverse;
namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
{
public interface ISocialEntity
{
UUID GlobalID { get; }
string Name { get; }
bool IsUser { get; }
}
}

View File

@@ -1,45 +1,45 @@
using OpenSim.Region.Framework.Interfaces;
using OpenSim.Region.Framework.Scenes;
namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
{
class LOParcel : IParcel
{
private readonly Scene m_scene;
private readonly int m_parcelID;
public LOParcel(Scene m_scene, int m_parcelID)
{
this.m_scene = m_scene;
this.m_parcelID = m_parcelID;
}
private ILandObject GetLO()
{
return m_scene.LandChannel.GetLandObject(m_parcelID);
}
public string Name
{
get { return GetLO().landData.Name; }
set { GetLO().landData.Name = value; }
}
public string Description
{
get { return GetLO().landData.Description; }
set { GetLO().landData.Description = value; }
}
public ISocialEntity Owner
{
get { throw new System.NotImplementedException(); }
set { throw new System.NotImplementedException(); }
}
public bool[,] Bitmap
{
get { return GetLO().landBitmap; }
}
}
}
using OpenSim.Region.Framework.Interfaces;
using OpenSim.Region.Framework.Scenes;
namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
{
class LOParcel : IParcel
{
private readonly Scene m_scene;
private readonly int m_parcelID;
public LOParcel(Scene m_scene, int m_parcelID)
{
this.m_scene = m_scene;
this.m_parcelID = m_parcelID;
}
private ILandObject GetLO()
{
return m_scene.LandChannel.GetLandObject(m_parcelID);
}
public string Name
{
get { return GetLO().landData.Name; }
set { GetLO().landData.Name = value; }
}
public string Description
{
get { return GetLO().landData.Description; }
set { GetLO().landData.Description = value; }
}
public ISocialEntity Owner
{
get { throw new System.NotImplementedException(); }
set { throw new System.NotImplementedException(); }
}
public bool[,] Bitmap
{
get { return GetLO().landBitmap; }
}
}
}

View File

@@ -1,39 +1,39 @@
using System;
using System.Collections.Generic;
using System.Text;
using OpenMetaverse;
namespace OpenSim.Region.OptionalModules.Scripting.Minimodule.Object
{
/// <summary>
/// This implements an interface similar to that provided by physics engines to OpenSim internally.
/// Eg, PhysicsActor. It is capable of setting and getting properties related to the current
/// physics scene representation of this object.
/// </summary>
public interface IObjectPhysics
{
bool Enabled { get; set; }
bool Phantom { get; set; }
bool PhantomCollisions { get; set; }
double Density { get; set; }
double Mass { get; set; }
double Buoyancy { get; set; }
Vector3 GeometricCenter { get; }
Vector3 CenterOfMass { get; }
Vector3 RotationalVelocity { get; set; }
Vector3 Velocity { get; set; }
Vector3 Torque { get; set; }
Vector3 Acceleration { get; }
Vector3 Force { get; set; }
bool FloatOnWater { set; }
void AddForce(Vector3 force, bool pushforce);
void AddAngularForce(Vector3 force, bool pushforce);
void SetMomentum(Vector3 momentum);
}
}
using System;
using System.Collections.Generic;
using System.Text;
using OpenMetaverse;
namespace OpenSim.Region.OptionalModules.Scripting.Minimodule.Object
{
/// <summary>
/// This implements an interface similar to that provided by physics engines to OpenSim internally.
/// Eg, PhysicsActor. It is capable of setting and getting properties related to the current
/// physics scene representation of this object.
/// </summary>
public interface IObjectPhysics
{
bool Enabled { get; set; }
bool Phantom { get; set; }
bool PhantomCollisions { get; set; }
double Density { get; set; }
double Mass { get; set; }
double Buoyancy { get; set; }
Vector3 GeometricCenter { get; }
Vector3 CenterOfMass { get; }
Vector3 RotationalVelocity { get; set; }
Vector3 Velocity { get; set; }
Vector3 Torque { get; set; }
Vector3 Acceleration { get; }
Vector3 Force { get; set; }
bool FloatOnWater { set; }
void AddForce(Vector3 force, bool pushforce);
void AddAngularForce(Vector3 force, bool pushforce);
void SetMomentum(Vector3 momentum);
}
}

View File

@@ -1,34 +1,34 @@
using System;
using System.Collections.Generic;
using System.Text;
using OpenMetaverse;
namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
{
class SEUser : ISocialEntity
{
private readonly UUID m_uuid;
private readonly string m_name;
public SEUser(UUID uuid, string name)
{
m_uuid = uuid;
m_name = name;
}
public UUID GlobalID
{
get { return m_uuid; }
}
public string Name
{
get { return m_name; }
}
public bool IsUser
{
get { return true; }
}
}
}
using System;
using System.Collections.Generic;
using System.Text;
using OpenMetaverse;
namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
{
class SEUser : ISocialEntity
{
private readonly UUID m_uuid;
private readonly string m_name;
public SEUser(UUID uuid, string name)
{
m_uuid = uuid;
m_name = name;
}
public UUID GlobalID
{
get { return m_uuid; }
}
public string Name
{
get { return m_name; }
}
public bool IsUser
{
get { return true; }
}
}
}