aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common
diff options
context:
space:
mode:
authorTedd Hansen2008-02-24 16:16:00 +0000
committerTedd Hansen2008-02-24 16:16:00 +0000
commit08131614c93912482e852e714f69c35801ee18be (patch)
tree9a016ed080d3d752e9039a8f88812b1b52b46d31 /OpenSim/Region/ScriptEngine/Common
parentI keep forgetting that my Linux OpenSim has the wrong version of libopenjpeg-... (diff)
downloadopensim-SC_OLD-08131614c93912482e852e714f69c35801ee18be.zip
opensim-SC_OLD-08131614c93912482e852e714f69c35801ee18be.tar.gz
opensim-SC_OLD-08131614c93912482e852e714f69c35801ee18be.tar.bz2
opensim-SC_OLD-08131614c93912482e852e714f69c35801ee18be.tar.xz
Implemented object oriented Prim.Position, Prim.Rotation and Prim.Text.
Example: Prim.Position.X += 10;
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs29
1 files changed, 20 insertions, 9 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs
index 9d16afc..d5af74a 100644
--- a/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs
@@ -45,22 +45,33 @@ namespace OpenSim.Region.ScriptEngine.Common
45 45
46 public class OSSLPrim 46 public class OSSLPrim
47 { 47 {
48 private OSSL_BuilIn_Commands OSSL;
49 public OSSLPrim(OSSL_BuilIn_Commands bc)
50 {
51 OSSL = bc;
52 }
48 53
49 private LSL_Types.Vector3 _position;
50 public LSL_Types.Vector3 Position { 54 public LSL_Types.Vector3 Position {
51 get { return _position; } 55 get { return OSSL.llGetPos(); }
52 set { _position = value; } 56 set { OSSL.llSetPos(value); }
53 } 57 }
54 private LSL_Types.Quaternion _rotation;
55 public LSL_Types.Quaternion Rotation { 58 public LSL_Types.Quaternion Rotation {
56 get { return _rotation; } 59 get { return OSSL.llGetRot(); }
57 set { _rotation = value; } 60 set { OSSL.llSetRot(value); }
58 } 61 }
59 private string _text; 62 private TextStruct _text;
60 public string Text 63 public TextStruct Text
61 { 64 {
62 get { return _text; } 65 get { return _text; }
63 set { _text = value; } 66 set { _text = value;
67 OSSL.llSetText(_text.Text, _text.color, _text.alpha); }
68 }
69
70 public struct TextStruct
71 {
72 public string Text;
73 public LSL_Types.Vector3 color;
74 public double alpha;
64 } 75 }
65 } 76 }
66 //public struct OSSLPrim_Position 77 //public struct OSSLPrim_Position