* Minor MRM Cleanup
* Interfaces now live in Interfaces subdirectory. * Namespace does not yet reflect this change. * Final namespace for MRMs will probably sit somewhere around OpenSim.Extend.MRM[?]0.6.5-rc1
parent
988737b182
commit
b8619386eb
|
@ -0,0 +1,43 @@
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
||||||
|
{
|
||||||
|
interface IScheduler
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Schedule an event callback to occur
|
||||||
|
/// when 'time' is elapsed.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="time">The period to wait before executing</param>
|
||||||
|
void RunIn(TimeSpan time);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Schedule an event callback to fire
|
||||||
|
/// every "time". Equivilent to a repeating
|
||||||
|
/// timer.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="time">The period to wait between executions</param>
|
||||||
|
void RunAndRepeat(TimeSpan time);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Fire this scheduler only when the region has
|
||||||
|
/// a user in it.
|
||||||
|
/// </summary>
|
||||||
|
bool WhenRegionOccupied { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Fire this event only when the region is visible
|
||||||
|
/// to a child agent, or there is a full agent
|
||||||
|
/// in this region.
|
||||||
|
/// </summary>
|
||||||
|
bool WhenRegionVisible { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Determines whether this runs in the master scheduler thread, or a new thread
|
||||||
|
/// is spawned to handle your request. Running in scheduler may mean that your
|
||||||
|
/// code does not execute perfectly on time, however will result in a lower
|
||||||
|
/// processor cost to running your code.
|
||||||
|
/// </summary>
|
||||||
|
bool Schedule { get; set; }
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,7 +1,4 @@
|
||||||
using System;
|
using System.Drawing;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Drawing;
|
|
||||||
using System.Text;
|
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
using OpenSim.Region.Framework.Scenes;
|
using OpenSim.Region.Framework.Scenes;
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,9 @@ namespace OpenSim
|
||||||
|
|
||||||
void World_OnChat(IWorld sender, ChatEventArgs e)
|
void World_OnChat(IWorld sender, ChatEventArgs e)
|
||||||
{
|
{
|
||||||
if(!e.Text.Contains("hic!"))
|
if (e.Sender is IAvatar)
|
||||||
|
{
|
||||||
|
if (!e.Text.Contains("hic!"))
|
||||||
{
|
{
|
||||||
e.Text = e.Text.Replace("s", "sh");
|
e.Text = e.Text.Replace("s", "sh");
|
||||||
e.Text = e.Text.Replace("S", "Sh");
|
e.Text = e.Text.Replace("S", "Sh");
|
||||||
|
@ -48,6 +50,12 @@ namespace OpenSim
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(e.Sender is IObject)
|
||||||
|
{
|
||||||
|
// Ignore
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public override void Stop()
|
public override void Stop()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue