diff options
author | Adam Frisby | 2009-04-09 07:46:05 +0000 |
---|---|---|
committer | Adam Frisby | 2009-04-09 07:46:05 +0000 |
commit | 232241ab25ccd9e3184a2eeda0e80f7af15e1641 (patch) | |
tree | b8cc72323eac42b30b9e1b3f6cf77118f159ded7 /OpenSim/Region/OptionalModules/Scripting/Minimodule/IObject.cs | |
parent | * Fixed a number of culture-variant bugs in lsl implicit type conversions. (diff) | |
download | opensim-SC_OLD-232241ab25ccd9e3184a2eeda0e80f7af15e1641.zip opensim-SC_OLD-232241ab25ccd9e3184a2eeda0e80f7af15e1641.tar.gz opensim-SC_OLD-232241ab25ccd9e3184a2eeda0e80f7af15e1641.tar.bz2 opensim-SC_OLD-232241ab25ccd9e3184a2eeda0e80f7af15e1641.tar.xz |
* Implements IObject.OnTouch += delegate(IObject sender, TouchEventArgs e)
* This is equivalent to LSL 'touch(int senders)'
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting/Minimodule/IObject.cs')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/Minimodule/IObject.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/IObject.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/IObject.cs index 20d8e54..fd62328 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/IObject.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/IObject.cs | |||
@@ -32,8 +32,30 @@ using OpenSim.Region.OptionalModules.Scripting.Minimodule.Object; | |||
32 | 32 | ||
33 | namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | 33 | namespace OpenSim.Region.OptionalModules.Scripting.Minimodule |
34 | { | 34 | { |
35 | public class TouchEventArgs : EventArgs | ||
36 | { | ||
37 | public IAvatar Avatar; | ||
38 | |||
39 | public Vector3 TouchBiNormal; | ||
40 | public Vector3 TouchNormal; | ||
41 | public Vector3 TouchPosition; | ||
42 | |||
43 | public Vector2 TouchUV; | ||
44 | public Vector2 TouchST; | ||
45 | |||
46 | public int TouchMaterialIndex; | ||
47 | } | ||
48 | |||
49 | public delegate void OnTouchDelegate(IObject sender, TouchEventArgs e); | ||
50 | |||
35 | public interface IObject | 51 | public interface IObject |
36 | { | 52 | { |
53 | #region Events | ||
54 | |||
55 | event OnTouchDelegate OnTouch; | ||
56 | |||
57 | #endregion | ||
58 | |||
37 | /// <summary> | 59 | /// <summary> |
38 | /// Returns whether or not this object is still in the world. | 60 | /// Returns whether or not this object is still in the world. |
39 | /// Eg, if you store an IObject reference, however the object | 61 | /// Eg, if you store an IObject reference, however the object |