aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs
diff options
context:
space:
mode:
authorAdam Frisby2009-05-29 22:44:49 +0000
committerAdam Frisby2009-05-29 22:44:49 +0000
commit78bec422259671ad72ad46ca98ab8029b78aefe5 (patch)
tree40e6b2dcc2495cc8409a52027acc39faefb89f49 /OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs
parent* Allows standalone region users to skip the "You must wait 5 minutes to log ... (diff)
downloadopensim-SC_OLD-78bec422259671ad72ad46ca98ab8029b78aefe5.zip
opensim-SC_OLD-78bec422259671ad72ad46ca98ab8029b78aefe5.tar.gz
opensim-SC_OLD-78bec422259671ad72ad46ca98ab8029b78aefe5.tar.bz2
opensim-SC_OLD-78bec422259671ad72ad46ca98ab8029b78aefe5.tar.xz
* Implements Sound on Objects for IObject in MRM
* Method: IObject.Sound.Play(UUID sound, double volume) * More feature-packed API to come soon. (I want a World.Sound with arbitrary positioning)
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs17
1 files changed, 16 insertions, 1 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs
index f29522f..c1c255b 100644
--- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs
@@ -38,7 +38,7 @@ using SculptType=OpenSim.Region.OptionalModules.Scripting.Minimodule.Object.Scul
38 38
39namespace OpenSim.Region.OptionalModules.Scripting.Minimodule 39namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
40{ 40{
41 class SOPObject : MarshalByRefObject, IObject, IObjectPhysics, IObjectShape 41 class SOPObject : MarshalByRefObject, IObject, IObjectPhysics, IObjectShape, IObjectSound
42 { 42 {
43 private readonly Scene m_rootScene; 43 private readonly Scene m_rootScene;
44 private readonly uint m_localID; 44 private readonly uint m_localID;
@@ -638,5 +638,20 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
638 638
639 639
640 #endregion 640 #endregion
641
642
643 #region Implementation of IObjectSound
644
645 public IObjectSound Sound
646 {
647 get { return this; }
648 }
649
650 public void Play(UUID asset, double volume)
651 {
652 GetSOP().SendSound(asset.ToString(), volume, true, 0);
653 }
654
655 #endregion
641 } 656 }
642} 657}