diff options
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs | 17 |
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 | ||
39 | namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | 39 | namespace 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 | } |