diff options
author | Tedd Hansen | 2007-08-18 20:53:13 +0000 |
---|---|---|
committer | Tedd Hansen | 2007-08-18 20:53:13 +0000 |
commit | 551f2af39f2bc003bef9ba388ccb4a6d87f2f36b (patch) | |
tree | 6338597d88a959f5d9391439fb2bb4978b897df5 /OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | |
parent | Working on AppDomains. Scripting is now officially broken. :] (diff) | |
download | opensim-SC_OLD-551f2af39f2bc003bef9ba388ccb4a6d87f2f36b.zip opensim-SC_OLD-551f2af39f2bc003bef9ba388ccb4a6d87f2f36b.tar.gz opensim-SC_OLD-551f2af39f2bc003bef9ba388ccb4a6d87f2f36b.tar.bz2 opensim-SC_OLD-551f2af39f2bc003bef9ba388ccb4a6d87f2f36b.tar.xz |
LSL Compiler now only referring required assemblies (DotNetEngine and Common). Changed Vector and Rotation to custom types (stored in Common) that needs to be changed later. No longer using Axiom. Script support still broken.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/LSL_Types.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs new file mode 100644 index 0000000..b151d5a --- /dev/null +++ b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | |||
@@ -0,0 +1,53 @@ | |||
1 | using System; | ||
2 | |||
3 | namespace OpenSim.Region.ScriptEngine.Common | ||
4 | { | ||
5 | [Serializable] | ||
6 | public class LSL_Types | ||
7 | { | ||
8 | [Serializable] | ||
9 | public struct Vector3 | ||
10 | { | ||
11 | public double X; | ||
12 | public double Y; | ||
13 | public double Z; | ||
14 | |||
15 | public Vector3(Vector3 vector) | ||
16 | { | ||
17 | X = (float)vector.X; | ||
18 | Y = (float)vector.Y; | ||
19 | Z = (float)vector.Z; | ||
20 | } | ||
21 | public Vector3(double x, double y, double z) | ||
22 | { | ||
23 | X = x; | ||
24 | Y = y; | ||
25 | Z = z; | ||
26 | } | ||
27 | } | ||
28 | [Serializable] | ||
29 | public struct Quaternion | ||
30 | { | ||
31 | public double X; | ||
32 | public double Y; | ||
33 | public double Z; | ||
34 | public double R; | ||
35 | |||
36 | public Quaternion(Quaternion Quat) | ||
37 | { | ||
38 | X = (float)Quat.X; | ||
39 | Y = (float)Quat.Y; | ||
40 | Z = (float)Quat.Z; | ||
41 | R = (float)Quat.R; | ||
42 | } | ||
43 | public Quaternion(double x, double y, double z, double r) | ||
44 | { | ||
45 | X = x; | ||
46 | Y = y; | ||
47 | Z = z; | ||
48 | R = r; | ||
49 | } | ||
50 | |||
51 | } | ||
52 | } | ||
53 | } | ||