mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
* 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:
@@ -130,5 +130,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
public virtual void LandRenegerated()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public abstract void SetText(string text, Vector3 color, double alpha);
|
||||
}
|
||||
}
|
||||
@@ -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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -949,5 +949,10 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void SetText(string text, Vector3 color, double alpha)
|
||||
{
|
||||
Text = text;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user