* Now sending manager, host and root host to Script in constructor.

* Changed how Script accesses World
* Implemented llSay, llWhisper and llShout
* Added SetText() to IScriptHost, implemented llText
* Minor renamings to conform with code conventions
This commit is contained in:
lbsa71
2007-08-16 18:40:44 +00:00
parent cb90510e16
commit e53d680d41
15 changed files with 147 additions and 50 deletions

View File

@@ -130,5 +130,7 @@ namespace OpenSim.Region.Environment.Scenes
public virtual void LandRenegerated()
{
}
}
public abstract void SetText(string text, Vector3 color, double alpha);
}
}

View File

@@ -715,5 +715,10 @@ namespace OpenSim.Region.Environment.Scenes
{
OnPrimCountTainted();
}
public override void SetText(string text, Vector3 color, double alpha)
{
throw new Exception("The method or operation is not implemented.");
}
}
}

View File

@@ -311,5 +311,9 @@ namespace OpenSim.Region.Environment.Scenes
client.OutPacket(proper);
}
public override void SetText(string text, Axiom.Math.Vector3 color, double alpha)
{
throw new System.Exception("The method or operation is not implemented.");
}
}
}

View File

@@ -949,5 +949,10 @@ namespace OpenSim.Region.Environment.Scenes
}
}
}
public override void SetText(string text, Vector3 color, double alpha)
{
Text = text;
}
}
}

View File

@@ -576,6 +576,11 @@ namespace OpenSim.Region.Environment.Scenes
public virtual void OnGrab(LLVector3 offsetPos, IClientAPI remoteClient)
{
}
public void SetText(string text, Vector3 color, double alpha)
{
Text = text;
}
}
}

View File

@@ -690,6 +690,11 @@ namespace OpenSim.Region.Environment.Scenes
}
}
public override void SetText(string text, Vector3 color, double alpha)
{
throw new Exception("The method or operation is not implemented.");
}
}
}

View File

@@ -10,5 +10,6 @@ namespace OpenSim.Region.Environment.Scenes.Scripting
string Name { get; }
LLUUID UUID { get; }
LLVector3 AbsolutePosition { get; }
void SetText(string text, Axiom.Math.Vector3 color, double alpha);
}
}

View File

@@ -22,5 +22,10 @@ namespace OpenSim.Region.Environment.Scenes.Scripting
{
get { return m_pos; }
}
public void SetText(string text, Axiom.Math.Vector3 color, double alpha)
{
Console.WriteLine("Tried to SetText [{0}] on NullScriptHost", text);
}
}
}