diff options
author | Tedd Hansen | 2007-08-13 20:55:07 +0000 |
---|---|---|
committer | Tedd Hansen | 2007-08-13 20:55:07 +0000 |
commit | 79dc1a4f7d4196d14bd51cb0839b9dd8c644cab7 (patch) | |
tree | e07b695666f9fe6e90a674706ebdc9509dd33065 /OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs | |
parent | committed a test version of OpenSimAssetSet.xml in last commit, so fixing that. (diff) | |
download | opensim-SC_OLD-79dc1a4f7d4196d14bd51cb0839b9dd8c644cab7.zip opensim-SC_OLD-79dc1a4f7d4196d14bd51cb0839b9dd8c644cab7.tar.gz opensim-SC_OLD-79dc1a4f7d4196d14bd51cb0839b9dd8c644cab7.tar.bz2 opensim-SC_OLD-79dc1a4f7d4196d14bd51cb0839b9dd8c644cab7.tar.xz |
Common script for all objects (Default.lsl). ScriptEngine touch_start event now works, but llSay only outputs to server console.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs index 5c67ffe..5fa25fb 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs | |||
@@ -7,7 +7,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL | |||
7 | { | 7 | { |
8 | public class LSL_BaseClass : LSL_BuiltIn_Commands_Interface | 8 | public class LSL_BaseClass : LSL_BuiltIn_Commands_Interface |
9 | { | 9 | { |
10 | public UInt32 State = 0; | 10 | public string State = "default"; |
11 | internal OpenSim.Region.Environment.Scenes.Scene World; | 11 | internal OpenSim.Region.Environment.Scenes.Scene World; |
12 | 12 | ||
13 | public void Start(OpenSim.Region.Environment.Scenes.Scene _World, string FullScriptID) | 13 | public void Start(OpenSim.Region.Environment.Scenes.Scene _World, string FullScriptID) |
@@ -46,17 +46,18 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL | |||
46 | public Axiom.Math.Vector3 llRot2Left(Axiom.Math.Quaternion r) { return new Axiom.Math.Vector3(); } | 46 | public Axiom.Math.Vector3 llRot2Left(Axiom.Math.Quaternion r) { return new Axiom.Math.Vector3(); } |
47 | public Axiom.Math.Vector3 llRot2Up(Axiom.Math.Quaternion r) { return new Axiom.Math.Vector3(); } | 47 | public Axiom.Math.Vector3 llRot2Up(Axiom.Math.Quaternion r) { return new Axiom.Math.Vector3(); } |
48 | public Axiom.Math.Quaternion llRotBetween(Axiom.Math.Vector3 start, Axiom.Math.Vector3 end) { return new Axiom.Math.Quaternion(); } | 48 | public Axiom.Math.Quaternion llRotBetween(Axiom.Math.Vector3 start, Axiom.Math.Vector3 end) { return new Axiom.Math.Quaternion(); } |
49 | public void llWhisper(UInt16 channelID, string text) | 49 | public void llWhisper(int channelID, string text) |
50 | { | 50 | { |
51 | Common.SendToDebug("INTERNAL FUNCTION llWhisper(" + channelID + ", \"" + text + "\");"); | 51 | //Common.SendToDebug("INTERNAL FUNCTION llWhisper(" + channelID + ", \"" + text + "\");"); |
52 | Common.SendToLog("llWhisper Channel " + channelID + ", Text: \"" + text + "\""); | 52 | Console.WriteLine("llWhisper Channel " + channelID + ", Text: \"" + text + "\""); |
53 | } | 53 | } |
54 | //public void llSay(UInt32 channelID, string text) | 54 | //public void llSay(UInt32 channelID, string text) |
55 | public void llSay(object channelID, object text) | 55 | public void llSay(int channelID, string text) |
56 | { | 56 | { |
57 | //TODO: DO SOMETHING USEFUL HERE | 57 | //TODO: DO SOMETHING USEFUL HERE |
58 | Common.SendToDebug("INTERNAL FUNCTION llSay(" + (UInt32)channelID + ", \"" + (string)text + "\");"); | 58 | //Common.SendToDebug("INTERNAL FUNCTION llSay(" + (UInt32)channelID + ", \"" + (string)text + "\");"); |
59 | Common.SendToLog("llSay Channel " + (UInt32)channelID + ", Text: \"" + (string)text + "\""); | 59 | Console.WriteLine("llSay Channel " + channelID + ", Text: \"" + text + "\""); |
60 | //World.SimChat( | ||
60 | } | 61 | } |
61 | public void llShout(UInt16 channelID, string text) { return; } | 62 | public void llShout(UInt16 channelID, string text) { return; } |
62 | public UInt32 llListen(UInt16 channelID, string name, string ID, string msg) { return 0; } | 63 | public UInt32 llListen(UInt16 channelID, string name, string ID, string msg) { return 0; } |