osSetParcelMusicURL

Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
This commit is contained in:
Vincent Sylvester
2020-08-08 07:43:57 +02:00
committed by UbitUmarov
parent eeef096e94
commit 4eee476423
4 changed files with 18 additions and 2 deletions

View File

@@ -1979,7 +1979,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
}
}
public void osSetParcelMediaURL(string url)
public void osSetParcelMusicURL(string url)
{
CheckThreatLevel(ThreatLevel.VeryLow, "osSetParcelMusicURL");
ILandObject land = World.LandChannel.GetLandObject(m_host.AbsolutePosition);
land.SetMusicUrl(url);
}
public void osSetParcelMediaURL(string url)
{
// What actually is the difference to the LL function?
//
@@ -6096,4 +6105,4 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return 1;
}
}
}
}

View File

@@ -142,6 +142,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
void osRegionNotice(string msg);
void osRegionNotice(LSL_Key agentID, string msg);
bool osConsoleCommand(string Command);
void osSetParcelMusicURL(string url);
void osSetParcelMediaURL(string url);
void osSetPrimFloatOnWater(int floatYN);
void osSetParcelSIPAddress(string SIPAddress);

View File

@@ -235,6 +235,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
return m_OSSL_Functions.osConsoleCommand(Command);
}
public void osSetParcelMusicURL(string url)
{
m_OSSL_Functions.osSetParcelMusicURL(url);
}
public void osSetParcelMediaURL(string url)
{
m_OSSL_Functions.osSetParcelMediaURL(url);