Implement llGetLinKNumberOfSides().

Based on code in http://opensimulator.org/mantis/view.php?id=5489  Thanks onesong.
bulletsim
Justin Clark-Casey (justincc) 2011-05-20 20:19:32 +01:00
parent 6e7b588235
commit 9fc29e1595
1 changed files with 12 additions and 2 deletions

View File

@ -4458,10 +4458,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return result;
}
public void llGetLinkNumberOfSides(int link)
public LSL_Integer llGetLinkNumberOfSides(int link)
{
m_host.AddScriptLPS(1);
NotImplemented("llGetLinkNumberOfSides");
SceneObjectPart linkedPart;
if (link == ScriptBaseClass.LINK_ROOT)
linkedPart = m_host.ParentGroup.RootPart;
else if (link == ScriptBaseClass.LINK_THIS)
linkedPart = m_host;
else
linkedPart = m_host.ParentGroup.GetLinkNumPart(link);
return GetNumberOfSides(linkedPart);
}
public LSL_Integer llGetNumberOfSides()