OSSL_Stub.cs 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385
  1. /*
  2. * Copyright (c) Contributors, http://opensimulator.org/
  3. * See CONTRIBUTORS.TXT for a full list of copyright holders.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions are met:
  7. * * Redistributions of source code must retain the above copyright
  8. * notice, this list of conditions and the following disclaimer.
  9. * * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * * Neither the name of the OpenSimulator Project nor the
  13. * names of its contributors may be used to endorse or promote products
  14. * derived from this software without specific prior written permission.
  15. *
  16. * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
  17. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  18. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  19. * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
  20. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  21. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  22. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  23. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  24. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  25. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26. */
  27. using System;
  28. using System.Runtime.Remoting.Lifetime;
  29. using System.Threading;
  30. using System.Reflection;
  31. using System.Collections;
  32. using System.Collections.Generic;
  33. using OpenSim.Framework;
  34. using OpenSim.Region.Framework.Interfaces;
  35. using OpenSim.Region.ScriptEngine.Interfaces;
  36. using OpenSim.Region.ScriptEngine.Shared.Api.Interfaces;
  37. using integer = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger;
  38. using vector = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3;
  39. using rotation = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Quaternion;
  40. using key = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString;
  41. using LSL_List = OpenSim.Region.ScriptEngine.Shared.LSL_Types.list;
  42. using LSL_String = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString;
  43. using LSL_Key = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString;
  44. using LSL_Float = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLFloat;
  45. using LSL_Integer = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger;
  46. namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
  47. {
  48. public partial class ScriptBaseClass : MarshalByRefObject
  49. {
  50. public IOSSL_Api m_OSSL_Functions;
  51. public void ApiTypeOSSL(IScriptApi api)
  52. {
  53. if (!(api is IOSSL_Api))
  54. return;
  55. m_OSSL_Functions = (IOSSL_Api)api;
  56. Prim = new OSSLPrim(this);
  57. }
  58. public void osSetRegionWaterHeight(double height)
  59. {
  60. m_OSSL_Functions.osSetRegionWaterHeight(height);
  61. }
  62. public void osSetRegionSunSettings(bool useEstateSun, bool sunFixed, double sunHour)
  63. {
  64. m_OSSL_Functions.osSetRegionSunSettings(useEstateSun, sunFixed, sunHour);
  65. }
  66. public void osSetEstateSunSettings(bool sunFixed, double sunHour)
  67. {
  68. m_OSSL_Functions.osSetEstateSunSettings(sunFixed, sunHour);
  69. }
  70. public double osGetCurrentSunHour()
  71. {
  72. return m_OSSL_Functions.osGetCurrentSunHour();
  73. }
  74. public double osGetSunParam(string param)
  75. {
  76. return m_OSSL_Functions.osGetSunParam(param);
  77. }
  78. // Deprecated
  79. public double osSunGetParam(string param)
  80. {
  81. return m_OSSL_Functions.osSunGetParam(param);
  82. }
  83. public void osSetSunParam(string param, double value)
  84. {
  85. m_OSSL_Functions.osSetSunParam(param, value);
  86. }
  87. // Deprecated
  88. public void osSunSetParam(string param, double value)
  89. {
  90. m_OSSL_Functions.osSunSetParam(param, value);
  91. }
  92. public string osWindActiveModelPluginName()
  93. {
  94. return m_OSSL_Functions.osWindActiveModelPluginName();
  95. }
  96. public void osSetWindParam(string plugin, string param, LSL_Float value)
  97. {
  98. m_OSSL_Functions.osSetWindParam(plugin, param, value);
  99. }
  100. public LSL_Float osGetWindParam(string plugin, string param)
  101. {
  102. return m_OSSL_Functions.osGetWindParam(plugin, param);
  103. }
  104. public void osParcelJoin(vector pos1, vector pos2)
  105. {
  106. m_OSSL_Functions.osParcelJoin(pos1,pos2);
  107. }
  108. public void osParcelSubdivide(vector pos1, vector pos2)
  109. {
  110. m_OSSL_Functions.osParcelSubdivide(pos1, pos2);
  111. }
  112. public void osSetParcelDetails(vector pos, LSL_List rules)
  113. {
  114. m_OSSL_Functions.osSetParcelDetails(pos, rules);
  115. }
  116. // Deprecated
  117. public void osParcelSetDetails(vector pos, LSL_List rules)
  118. {
  119. m_OSSL_Functions.osParcelSetDetails(pos,rules);
  120. }
  121. public string osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams,
  122. int timer)
  123. {
  124. return m_OSSL_Functions.osSetDynamicTextureURL(dynamicID, contentType, url, extraParams, timer);
  125. }
  126. public string osSetDynamicTextureData(string dynamicID, string contentType, string data, string extraParams,
  127. int timer)
  128. {
  129. return m_OSSL_Functions.osSetDynamicTextureData(dynamicID, contentType, data, extraParams, timer);
  130. }
  131. public string osSetDynamicTextureDataFace(string dynamicID, string contentType, string data, string extraParams,
  132. int timer, int face)
  133. {
  134. return m_OSSL_Functions.osSetDynamicTextureDataFace(dynamicID, contentType, data, extraParams, timer, face);
  135. }
  136. public string osSetDynamicTextureURLBlend(string dynamicID, string contentType, string url, string extraParams,
  137. int timer, int alpha)
  138. {
  139. return m_OSSL_Functions.osSetDynamicTextureURLBlend(dynamicID, contentType, url, extraParams, timer, alpha);
  140. }
  141. public string osSetDynamicTextureDataBlend(string dynamicID, string contentType, string data, string extraParams,
  142. int timer, int alpha)
  143. {
  144. return m_OSSL_Functions.osSetDynamicTextureDataBlend(dynamicID, contentType, data, extraParams, timer, alpha);
  145. }
  146. public string osSetDynamicTextureURLBlendFace(string dynamicID, string contentType, string url, string extraParams,
  147. bool blend, int disp, int timer, int alpha, int face)
  148. {
  149. return m_OSSL_Functions.osSetDynamicTextureURLBlendFace(dynamicID, contentType, url, extraParams,
  150. blend, disp, timer, alpha, face);
  151. }
  152. public string osSetDynamicTextureDataBlendFace(string dynamicID, string contentType, string data, string extraParams,
  153. bool blend, int disp, int timer, int alpha, int face)
  154. {
  155. return m_OSSL_Functions.osSetDynamicTextureDataBlendFace(dynamicID, contentType, data, extraParams,
  156. blend, disp, timer, alpha, face);
  157. }
  158. public LSL_Float osGetTerrainHeight(int x, int y)
  159. {
  160. return m_OSSL_Functions.osGetTerrainHeight(x, y);
  161. }
  162. // Deprecated
  163. public LSL_Float osTerrainGetHeight(int x, int y)
  164. {
  165. return m_OSSL_Functions.osTerrainGetHeight(x, y);
  166. }
  167. public LSL_Integer osSetTerrainHeight(int x, int y, double val)
  168. {
  169. return m_OSSL_Functions.osSetTerrainHeight(x, y, val);
  170. }
  171. // Deprecated
  172. public LSL_Integer osTerrainSetHeight(int x, int y, double val)
  173. {
  174. return m_OSSL_Functions.osTerrainSetHeight(x, y, val);
  175. }
  176. public void osTerrainFlush()
  177. {
  178. m_OSSL_Functions.osTerrainFlush();
  179. }
  180. public int osRegionRestart(double seconds)
  181. {
  182. return m_OSSL_Functions.osRegionRestart(seconds);
  183. }
  184. public int osRegionRestart(double seconds, string msg)
  185. {
  186. return m_OSSL_Functions.osRegionRestart(seconds, msg);
  187. }
  188. public void osRegionNotice(string msg)
  189. {
  190. m_OSSL_Functions.osRegionNotice(msg);
  191. }
  192. public void osRegionNotice(LSL_Key agentID, string msg)
  193. {
  194. m_OSSL_Functions.osRegionNotice(agentID, msg);
  195. }
  196. public bool osConsoleCommand(string Command)
  197. {
  198. return m_OSSL_Functions.osConsoleCommand(Command);
  199. }
  200. public void osSetParcelMediaURL(string url)
  201. {
  202. m_OSSL_Functions.osSetParcelMediaURL(url);
  203. }
  204. public void osSetParcelSIPAddress(string SIPAddress)
  205. {
  206. m_OSSL_Functions.osSetParcelSIPAddress(SIPAddress);
  207. }
  208. public void osSetPrimFloatOnWater(int floatYN)
  209. {
  210. m_OSSL_Functions.osSetPrimFloatOnWater(floatYN);
  211. }
  212. // Teleport Functions
  213. public void osTeleportAgent(string agent, string regionName, vector position, vector lookat)
  214. {
  215. m_OSSL_Functions.osTeleportAgent(agent, regionName, position, lookat);
  216. }
  217. public void osTeleportAgent(string agent, int regionX, int regionY, vector position, vector lookat)
  218. {
  219. m_OSSL_Functions.osTeleportAgent(agent, regionX, regionY, position, lookat);
  220. }
  221. public void osTeleportAgent(string agent, vector position, vector lookat)
  222. {
  223. m_OSSL_Functions.osTeleportAgent(agent, position, lookat);
  224. }
  225. public void osTeleportOwner(string regionName, vector position, vector lookat)
  226. {
  227. m_OSSL_Functions.osTeleportOwner(regionName, position, lookat);
  228. }
  229. public void osTeleportOwner(int regionX, int regionY, vector position, vector lookat)
  230. {
  231. m_OSSL_Functions.osTeleportOwner(regionX, regionY, position, lookat);
  232. }
  233. public void osTeleportOwner(vector position, vector lookat)
  234. {
  235. m_OSSL_Functions.osTeleportOwner(position, lookat);
  236. }
  237. public LSL_List osGetAgents()
  238. {
  239. return m_OSSL_Functions.osGetAgents();
  240. }
  241. public string osGetAgentIP(string agent)
  242. {
  243. return m_OSSL_Functions.osGetAgentIP(agent);
  244. }
  245. // Animation Functions
  246. public void osAvatarPlayAnimation(LSL_Key avatar, string animation)
  247. {
  248. m_OSSL_Functions.osAvatarPlayAnimation(avatar, animation);
  249. }
  250. public void osAvatarStopAnimation(LSL_Key avatar, string animation)
  251. {
  252. m_OSSL_Functions.osAvatarStopAnimation(avatar, animation);
  253. }
  254. #region Attachment commands
  255. public void osForceAttachToAvatar(int attachmentPoint)
  256. {
  257. m_OSSL_Functions.osForceAttachToAvatar(attachmentPoint);
  258. }
  259. public void osForceAttachToAvatarFromInventory(string itemName, int attachmentPoint)
  260. {
  261. m_OSSL_Functions.osForceAttachToAvatarFromInventory(itemName, attachmentPoint);
  262. }
  263. public void osForceAttachToOtherAvatarFromInventory(string rawAvatarId, string itemName, int attachmentPoint)
  264. {
  265. m_OSSL_Functions.osForceAttachToOtherAvatarFromInventory(rawAvatarId, itemName, attachmentPoint);
  266. }
  267. public void osForceDetachFromAvatar()
  268. {
  269. m_OSSL_Functions.osForceDetachFromAvatar();
  270. }
  271. public LSL_List osGetNumberOfAttachments(LSL_Key avatar, LSL_List attachmentPoints)
  272. {
  273. return m_OSSL_Functions.osGetNumberOfAttachments(avatar, attachmentPoints);
  274. }
  275. public void osMessageAttachments(LSL_Key avatar, string message, LSL_List attachmentPoints, int flags)
  276. {
  277. m_OSSL_Functions.osMessageAttachments(avatar, message, attachmentPoints, flags);
  278. }
  279. #endregion
  280. // Texture Draw functions
  281. public string osMovePen(string drawList, int x, int y)
  282. {
  283. return m_OSSL_Functions.osMovePen(drawList, x, y);
  284. }
  285. public string osDrawLine(string drawList, int startX, int startY, int endX, int endY)
  286. {
  287. return m_OSSL_Functions.osDrawLine(drawList, startX, startY, endX, endY);
  288. }
  289. public string osDrawLine(string drawList, int endX, int endY)
  290. {
  291. return m_OSSL_Functions.osDrawLine(drawList, endX, endY);
  292. }
  293. public string osDrawText(string drawList, string text)
  294. {
  295. return m_OSSL_Functions.osDrawText(drawList, text);
  296. }
  297. public string osDrawEllipse(string drawList, int width, int height)
  298. {
  299. return m_OSSL_Functions.osDrawEllipse(drawList, width, height);
  300. }
  301. public string osDrawFilledEllipse(string drawList, int width, int height)
  302. {
  303. return m_OSSL_Functions.osDrawFilledEllipse(drawList, width, height);
  304. }
  305. public string osDrawRectangle(string drawList, int width, int height)
  306. {
  307. return m_OSSL_Functions.osDrawRectangle(drawList, width, height);
  308. }
  309. public string osDrawFilledRectangle(string drawList, int width, int height)
  310. {
  311. return m_OSSL_Functions.osDrawFilledRectangle(drawList, width, height);
  312. }
  313. public string osDrawPolygon(string drawList, LSL_List x, LSL_List y)
  314. {
  315. return m_OSSL_Functions.osDrawPolygon(drawList, x, y);
  316. }
  317. public string osDrawFilledPolygon(string drawList, LSL_List x, LSL_List y)
  318. {
  319. return m_OSSL_Functions.osDrawFilledPolygon(drawList, x, y);
  320. }
  321. public string osDrawResetTransform(string drawList)
  322. {
  323. return m_OSSL_Functions.osDrawResetTransform(drawList);
  324. }
  325. public string osDrawRotationTransform(string drawList, LSL_Float x)
  326. {
  327. return m_OSSL_Functions.osDrawRotationTransform(drawList, x);
  328. }
  329. public string osDrawScaleTransform(string drawList, LSL_Float x, LSL_Float y)
  330. {
  331. return m_OSSL_Functions.osDrawScaleTransform(drawList, x, y);
  332. }
  333. public string osDrawTranslationTransform(string drawList, LSL_Float x, LSL_Float y)
  334. {
  335. return m_OSSL_Functions.osDrawTranslationTransform(drawList, x, y);
  336. }
  337. public string osSetFontSize(string drawList, int fontSize)
  338. {
  339. return m_OSSL_Functions.osSetFontSize(drawList, fontSize);
  340. }
  341. public string osSetFontName(string drawList, string fontName)
  342. {
  343. return m_OSSL_Functions.osSetFontName(drawList, fontName);
  344. }
  345. public string osSetPenSize(string drawList, int penSize)
  346. {
  347. return m_OSSL_Functions.osSetPenSize(drawList, penSize);
  348. }
  349. public string osSetPenCap(string drawList, string direction, string type)
  350. {
  351. return m_OSSL_Functions.osSetPenCap(drawList, direction, type);
  352. }
  353. public string osSetPenColor(string drawList, string color)
  354. {
  355. return m_OSSL_Functions.osSetPenColor(drawList, color);
  356. }
  357. // Deprecated
  358. public string osSetPenColour(string drawList, string colour)
  359. {
  360. return m_OSSL_Functions.osSetPenColour(drawList, colour);
  361. }
  362. public string osDrawImage(string drawList, int width, int height, string imageUrl)
  363. {
  364. return m_OSSL_Functions.osDrawImage(drawList, width, height, imageUrl);
  365. }
  366. public vector osGetDrawStringSize(string contentType, string text, string fontName, int fontSize)
  367. {
  368. return m_OSSL_Functions.osGetDrawStringSize(contentType, text, fontName, fontSize);
  369. }
  370. public void osSetStateEvents(int events)
  371. {
  372. m_OSSL_Functions.osSetStateEvents(events);
  373. }
  374. public string osGetScriptEngineName()
  375. {
  376. return m_OSSL_Functions.osGetScriptEngineName();
  377. }
  378. public LSL_Integer osCheckODE()
  379. {
  380. return m_OSSL_Functions.osCheckODE();
  381. }
  382. public string osGetPhysicsEngineType()
  383. {
  384. return m_OSSL_Functions.osGetPhysicsEngineType();
  385. }
  386. public string osGetPhysicsEngineName()
  387. {
  388. return m_OSSL_Functions.osGetPhysicsEngineName();
  389. }
  390. public string osGetSimulatorVersion()
  391. {
  392. return m_OSSL_Functions.osGetSimulatorVersion();
  393. }
  394. public void osMessageObject(key objectUUID,string message)
  395. {
  396. m_OSSL_Functions.osMessageObject(objectUUID,message);
  397. }
  398. public void osMakeNotecard(string notecardName, LSL_Types.list contents)
  399. {
  400. m_OSSL_Functions.osMakeNotecard(notecardName, contents);
  401. }
  402. public string osGetNotecardLine(string name, int line)
  403. {
  404. return m_OSSL_Functions.osGetNotecardLine(name, line);
  405. }
  406. public string osGetNotecard(string name)
  407. {
  408. return m_OSSL_Functions.osGetNotecard(name);
  409. }
  410. public int osGetNumberOfNotecardLines(string name)
  411. {
  412. return m_OSSL_Functions.osGetNumberOfNotecardLines(name);
  413. }
  414. public string osAvatarName2Key(string firstname, string lastname)
  415. {
  416. return m_OSSL_Functions.osAvatarName2Key(firstname, lastname);
  417. }
  418. public string osKey2Name(string id)
  419. {
  420. return m_OSSL_Functions.osKey2Name(id);
  421. }
  422. public string osGetGridNick()
  423. {
  424. return m_OSSL_Functions.osGetGridNick();
  425. }
  426. public string osGetGridName()
  427. {
  428. return m_OSSL_Functions.osGetGridName();
  429. }
  430. public string osGetGridLoginURI()
  431. {
  432. return m_OSSL_Functions.osGetGridLoginURI();
  433. }
  434. public string osGetGridHomeURI()
  435. {
  436. return m_OSSL_Functions.osGetGridHomeURI();
  437. }
  438. public string osGetGridGatekeeperURI()
  439. {
  440. return m_OSSL_Functions.osGetGridGatekeeperURI();
  441. }
  442. public string osGetGridCustom(string key)
  443. {
  444. return m_OSSL_Functions.osGetGridCustom(key);
  445. }
  446. public string osGetAvatarHomeURI(string uuid)
  447. {
  448. return m_OSSL_Functions.osGetAvatarHomeURI(uuid);
  449. }
  450. public LSL_String osFormatString(string str, LSL_List strings)
  451. {
  452. return m_OSSL_Functions.osFormatString(str, strings);
  453. }
  454. public LSL_List osMatchString(string src, string pattern, int start)
  455. {
  456. return m_OSSL_Functions.osMatchString(src, pattern, start);
  457. }
  458. public LSL_String osReplaceString(string src, string pattern, string replace, int count, int start)
  459. {
  460. return m_OSSL_Functions.osReplaceString(src,pattern,replace,count,start);
  461. }
  462. // Information about data loaded into the region
  463. public string osLoadedCreationDate()
  464. {
  465. return m_OSSL_Functions.osLoadedCreationDate();
  466. }
  467. public string osLoadedCreationTime()
  468. {
  469. return m_OSSL_Functions.osLoadedCreationTime();
  470. }
  471. public string osLoadedCreationID()
  472. {
  473. return m_OSSL_Functions.osLoadedCreationID();
  474. }
  475. public LSL_List osGetLinkPrimitiveParams(int linknumber, LSL_List rules)
  476. {
  477. return m_OSSL_Functions.osGetLinkPrimitiveParams(linknumber, rules);
  478. }
  479. public void osForceCreateLink(string target, int parent)
  480. {
  481. m_OSSL_Functions.osForceCreateLink(target, parent);
  482. }
  483. public void osForceBreakLink(int linknum)
  484. {
  485. m_OSSL_Functions.osForceBreakLink(linknum);
  486. }
  487. public void osForceBreakAllLinks()
  488. {
  489. m_OSSL_Functions.osForceBreakAllLinks();
  490. }
  491. public void osDie(LSL_Key objectUUID)
  492. {
  493. m_OSSL_Functions.osDie(objectUUID);
  494. }
  495. public LSL_Integer osIsNpc(LSL_Key npc)
  496. {
  497. return m_OSSL_Functions.osIsNpc(npc);
  498. }
  499. public key osNpcCreate(string user, string name, vector position, key cloneFrom)
  500. {
  501. return m_OSSL_Functions.osNpcCreate(user, name, position, cloneFrom);
  502. }
  503. public key osNpcCreate(string user, string name, vector position, key cloneFrom, int options)
  504. {
  505. return m_OSSL_Functions.osNpcCreate(user, name, position, cloneFrom, options);
  506. }
  507. public key osNpcSaveAppearance(key npc, string notecard)
  508. {
  509. return m_OSSL_Functions.osNpcSaveAppearance(npc, notecard);
  510. }
  511. public void osNpcLoadAppearance(key npc, string notecard)
  512. {
  513. m_OSSL_Functions.osNpcLoadAppearance(npc, notecard);
  514. }
  515. public LSL_Key osNpcGetOwner(LSL_Key npc)
  516. {
  517. return m_OSSL_Functions.osNpcGetOwner(npc);
  518. }
  519. public vector osNpcGetPos(LSL_Key npc)
  520. {
  521. return m_OSSL_Functions.osNpcGetPos(npc);
  522. }
  523. public void osNpcMoveTo(key npc, vector position)
  524. {
  525. m_OSSL_Functions.osNpcMoveTo(npc, position);
  526. }
  527. public void osNpcMoveToTarget(key npc, vector target, int options)
  528. {
  529. m_OSSL_Functions.osNpcMoveToTarget(npc, target, options);
  530. }
  531. public rotation osNpcGetRot(key npc)
  532. {
  533. return m_OSSL_Functions.osNpcGetRot(npc);
  534. }
  535. public void osNpcSetRot(key npc, rotation rot)
  536. {
  537. m_OSSL_Functions.osNpcSetRot(npc, rot);
  538. }
  539. public void osNpcStopMoveToTarget(LSL_Key npc)
  540. {
  541. m_OSSL_Functions.osNpcStopMoveToTarget(npc);
  542. }
  543. public void osNpcSetProfileAbout(LSL_Key npc, string about)
  544. {
  545. m_OSSL_Functions.osNpcSetProfileAbout(npc, about);
  546. }
  547. public void osNpcSetProfileImage(LSL_Key npc, string image)
  548. {
  549. m_OSSL_Functions.osNpcSetProfileImage(npc, image);
  550. }
  551. public void osNpcSay(key npc, string message)
  552. {
  553. m_OSSL_Functions.osNpcSay(npc, message);
  554. }
  555. public void osNpcSay(key npc, int channel, string message)
  556. {
  557. m_OSSL_Functions.osNpcSay(npc, channel, message);
  558. }
  559. public void osNpcSayTo(LSL_Key npc, LSL_Key target, int channel, string msg)
  560. {
  561. m_OSSL_Functions.osNpcSayTo(npc, target, channel, msg);
  562. }
  563. public void osNpcShout(key npc, int channel, string message)
  564. {
  565. m_OSSL_Functions.osNpcShout(npc, channel, message);
  566. }
  567. public void osNpcSit(LSL_Key npc, LSL_Key target, int options)
  568. {
  569. m_OSSL_Functions.osNpcSit(npc, target, options);
  570. }
  571. public void osNpcStand(LSL_Key npc)
  572. {
  573. m_OSSL_Functions.osNpcStand(npc);
  574. }
  575. public void osNpcRemove(key npc)
  576. {
  577. m_OSSL_Functions.osNpcRemove(npc);
  578. }
  579. public void osNpcPlayAnimation(LSL_Key npc, string animation)
  580. {
  581. m_OSSL_Functions.osNpcPlayAnimation(npc, animation);
  582. }
  583. public void osNpcStopAnimation(LSL_Key npc, string animation)
  584. {
  585. m_OSSL_Functions.osNpcStopAnimation(npc, animation);
  586. }
  587. public void osNpcWhisper(key npc, int channel, string message)
  588. {
  589. m_OSSL_Functions.osNpcWhisper(npc, channel, message);
  590. }
  591. public void osNpcTouch(LSL_Key npcLSL_Key, LSL_Key object_key, LSL_Integer link_num)
  592. {
  593. m_OSSL_Functions.osNpcTouch(npcLSL_Key, object_key, link_num);
  594. }
  595. public LSL_Key osOwnerSaveAppearance(string notecard)
  596. {
  597. return m_OSSL_Functions.osOwnerSaveAppearance(notecard);
  598. }
  599. public LSL_Key osAgentSaveAppearance(LSL_Key agentId, string notecard)
  600. {
  601. return m_OSSL_Functions.osAgentSaveAppearance(agentId, notecard);
  602. }
  603. public OSSLPrim Prim;
  604. [Serializable]
  605. public class OSSLPrim
  606. {
  607. internal ScriptBaseClass OSSL;
  608. public OSSLPrim(ScriptBaseClass bc)
  609. {
  610. OSSL = bc;
  611. Position = new OSSLPrim_Position(this);
  612. Rotation = new OSSLPrim_Rotation(this);
  613. }
  614. public OSSLPrim_Position Position;
  615. public OSSLPrim_Rotation Rotation;
  616. private TextStruct _text;
  617. public TextStruct Text
  618. {
  619. get { return _text; }
  620. set
  621. {
  622. _text = value;
  623. OSSL.llSetText(_text.Text, _text.color, _text.alpha);
  624. }
  625. }
  626. [Serializable]
  627. public struct TextStruct
  628. {
  629. public string Text;
  630. public LSL_Types.Vector3 color;
  631. public double alpha;
  632. }
  633. }
  634. [Serializable]
  635. public class OSSLPrim_Position
  636. {
  637. private OSSLPrim prim;
  638. private LSL_Types.Vector3 Position;
  639. public OSSLPrim_Position(OSSLPrim _prim)
  640. {
  641. prim = _prim;
  642. }
  643. private void Load()
  644. {
  645. Position = prim.OSSL.llGetPos();
  646. }
  647. private void Save()
  648. {
  649. /* Remove temporarily until we have a handle to the region size
  650. if (Position.x > ((int)Constants.RegionSize - 1))
  651. Position.x = ((int)Constants.RegionSize - 1);
  652. if (Position.y > ((int)Constants.RegionSize - 1))
  653. Position.y = ((int)Constants.RegionSize - 1);
  654. */
  655. if (Position.x < 0)
  656. Position.x = 0;
  657. if (Position.y < 0)
  658. Position.y = 0;
  659. if (Position.z < 0)
  660. Position.z = 0;
  661. if (Position.z > Constants.RegionHeight)
  662. Position.z = Constants.RegionHeight;
  663. prim.OSSL.llSetPos(Position);
  664. }
  665. public double x
  666. {
  667. get
  668. {
  669. Load();
  670. return Position.x;
  671. }
  672. set
  673. {
  674. Load();
  675. Position.x = value;
  676. Save();
  677. }
  678. }
  679. public double y
  680. {
  681. get
  682. {
  683. Load();
  684. return Position.y;
  685. }
  686. set
  687. {
  688. Load();
  689. Position.y = value;
  690. Save();
  691. }
  692. }
  693. public double z
  694. {
  695. get
  696. {
  697. Load();
  698. return Position.z;
  699. }
  700. set
  701. {
  702. Load();
  703. Position.z = value;
  704. Save();
  705. }
  706. }
  707. }
  708. [Serializable]
  709. public class OSSLPrim_Rotation
  710. {
  711. private OSSLPrim prim;
  712. private LSL_Types.Quaternion Rotation;
  713. public OSSLPrim_Rotation(OSSLPrim _prim)
  714. {
  715. prim = _prim;
  716. }
  717. private void Load()
  718. {
  719. Rotation = prim.OSSL.llGetRot();
  720. }
  721. private void Save()
  722. {
  723. prim.OSSL.llSetRot(Rotation);
  724. }
  725. public double x
  726. {
  727. get
  728. {
  729. Load();
  730. return Rotation.x;
  731. }
  732. set
  733. {
  734. Load();
  735. Rotation.x = value;
  736. Save();
  737. }
  738. }
  739. public double y
  740. {
  741. get
  742. {
  743. Load();
  744. return Rotation.y;
  745. }
  746. set
  747. {
  748. Load();
  749. Rotation.y = value;
  750. Save();
  751. }
  752. }
  753. public double z
  754. {
  755. get
  756. {
  757. Load();
  758. return Rotation.z;
  759. }
  760. set
  761. {
  762. Load();
  763. Rotation.z = value;
  764. Save();
  765. }
  766. }
  767. public double s
  768. {
  769. get
  770. {
  771. Load();
  772. return Rotation.s;
  773. }
  774. set
  775. {
  776. Load();
  777. Rotation.s = value;
  778. Save();
  779. }
  780. }
  781. }
  782. public string osGetGender(LSL_Key rawAvatarId)
  783. {
  784. return m_OSSL_Functions.osGetGender(rawAvatarId);
  785. }
  786. public key osGetMapTexture()
  787. {
  788. return m_OSSL_Functions.osGetMapTexture();
  789. }
  790. public key osGetRegionMapTexture(string regionName)
  791. {
  792. return m_OSSL_Functions.osGetRegionMapTexture(regionName);
  793. }
  794. public LSL_List osGetRegionStats()
  795. {
  796. return m_OSSL_Functions.osGetRegionStats();
  797. }
  798. public vector osGetRegionSize()
  799. {
  800. return m_OSSL_Functions.osGetRegionSize();
  801. }
  802. /// <summary>
  803. /// Returns the amount of memory in use by the Simulator Daemon.
  804. /// Amount in bytes - if >= 2GB, returns 2GB. (LSL is not 64-bit aware)
  805. /// </summary>
  806. /// <returns></returns>
  807. public LSL_Integer osGetSimulatorMemory()
  808. {
  809. return m_OSSL_Functions.osGetSimulatorMemory();
  810. }
  811. public LSL_Integer osGetSimulatorMemoryKB()
  812. {
  813. return m_OSSL_Functions.osGetSimulatorMemoryKB();
  814. }
  815. public void osKickAvatar(string FirstName, string SurName, string alert)
  816. {
  817. m_OSSL_Functions.osKickAvatar(FirstName, SurName, alert);
  818. }
  819. public void osKickAvatar(LSL_Key agentId, string alert)
  820. {
  821. m_OSSL_Functions.osKickAvatar(agentId, alert);
  822. }
  823. public void osSetSpeed(string UUID, LSL_Float SpeedModifier)
  824. {
  825. m_OSSL_Functions.osSetSpeed(UUID, SpeedModifier);
  826. }
  827. public void osSetOwnerSpeed(LSL_Float SpeedModifier)
  828. {
  829. m_OSSL_Functions.osSetOwnerSpeed(SpeedModifier);
  830. }
  831. public LSL_Float osGetHealth(key avatar)
  832. {
  833. return m_OSSL_Functions.osGetHealth(avatar);
  834. }
  835. public void osCauseDamage(key avatar, LSL_Float damage)
  836. {
  837. m_OSSL_Functions.osCauseDamage(avatar, damage);
  838. }
  839. public void osCauseHealing(key avatar, LSL_Float healing)
  840. {
  841. m_OSSL_Functions.osCauseHealing(avatar, healing);
  842. }
  843. public void osSetHealth(key avatar, LSL_Float health)
  844. {
  845. m_OSSL_Functions.osSetHealth(avatar, health);
  846. }
  847. public void osSetHealRate(key avatar, LSL_Float health)
  848. {
  849. m_OSSL_Functions.osSetHealRate(avatar, health);
  850. }
  851. public LSL_Float osGetHealRate(key avatar)
  852. {
  853. return m_OSSL_Functions.osGetHealRate(avatar);
  854. }
  855. public void osForceOtherSit(string avatar)
  856. {
  857. m_OSSL_Functions.osForceOtherSit(avatar);
  858. }
  859. public void osForceOtherSit(string avatar, string target)
  860. {
  861. m_OSSL_Functions.osForceOtherSit(avatar, target);
  862. }
  863. public LSL_List osGetPrimitiveParams(LSL_Key prim, LSL_List rules)
  864. {
  865. return m_OSSL_Functions.osGetPrimitiveParams(prim, rules);
  866. }
  867. public void osSetPrimitiveParams(LSL_Key prim, LSL_List rules)
  868. {
  869. m_OSSL_Functions.osSetPrimitiveParams(prim, rules);
  870. }
  871. public void osSetProjectionParams(bool projection, LSL_Key texture, double fov, double focus, double amb)
  872. {
  873. m_OSSL_Functions.osSetProjectionParams(projection, texture, fov, focus, amb);
  874. }
  875. public void osSetProjectionParams(LSL_Key prim, bool projection, LSL_Key texture, double fov, double focus, double amb)
  876. {
  877. m_OSSL_Functions.osSetProjectionParams(prim, projection, texture, fov, focus, amb);
  878. }
  879. public LSL_List osGetAvatarList()
  880. {
  881. return m_OSSL_Functions.osGetAvatarList();
  882. }
  883. public LSL_List osGetNPCList()
  884. {
  885. return m_OSSL_Functions.osGetNPCList();
  886. }
  887. public LSL_String osUnixTimeToTimestamp(LSL_Integer time)
  888. {
  889. return m_OSSL_Functions.osUnixTimeToTimestamp(time);
  890. }
  891. public LSL_Integer osInviteToGroup(LSL_Key agentId)
  892. {
  893. return m_OSSL_Functions.osInviteToGroup(agentId);
  894. }
  895. public LSL_Integer osEjectFromGroup(LSL_Key agentId)
  896. {
  897. return m_OSSL_Functions.osEjectFromGroup(agentId);
  898. }
  899. public void osSetTerrainTexture(int level, LSL_Key texture)
  900. {
  901. m_OSSL_Functions.osSetTerrainTexture(level, texture);
  902. }
  903. public void osSetTerrainTextureHeight(int corner, double low, double high)
  904. {
  905. m_OSSL_Functions.osSetTerrainTextureHeight(corner, low, high);
  906. }
  907. public LSL_Integer osIsUUID(string thing)
  908. {
  909. return m_OSSL_Functions.osIsUUID(thing);
  910. }
  911. public LSL_Float osMin(double a, double b)
  912. {
  913. return m_OSSL_Functions.osMin(a, b);
  914. }
  915. public LSL_Float osMax(double a, double b)
  916. {
  917. return m_OSSL_Functions.osMax(a, b);
  918. }
  919. public LSL_Key osGetRezzingObject()
  920. {
  921. return m_OSSL_Functions.osGetRezzingObject();
  922. }
  923. public void osSetContentType(LSL_Key id, string type)
  924. {
  925. m_OSSL_Functions.osSetContentType(id,type);
  926. }
  927. public void osDropAttachment()
  928. {
  929. m_OSSL_Functions.osDropAttachment();
  930. }
  931. public void osForceDropAttachment()
  932. {
  933. m_OSSL_Functions.osForceDropAttachment();
  934. }
  935. public void osDropAttachmentAt(vector pos, rotation rot)
  936. {
  937. m_OSSL_Functions.osDropAttachmentAt(pos, rot);
  938. }
  939. public void osForceDropAttachmentAt(vector pos, rotation rot)
  940. {
  941. m_OSSL_Functions.osForceDropAttachmentAt(pos, rot);
  942. }
  943. public LSL_Integer osListenRegex(int channelID, string name, string ID, string msg, int regexBitfield)
  944. {
  945. return m_OSSL_Functions.osListenRegex(channelID, name, ID, msg, regexBitfield);
  946. }
  947. public LSL_Integer osRegexIsMatch(string input, string pattern)
  948. {
  949. return m_OSSL_Functions.osRegexIsMatch(input, pattern);
  950. }
  951. public LSL_String osRequestURL(LSL_List options)
  952. {
  953. return m_OSSL_Functions.osRequestURL(options);
  954. }
  955. public LSL_String osRequestSecureURL(LSL_List options)
  956. {
  957. return m_OSSL_Functions.osRequestSecureURL(options);
  958. }
  959. public void osCollisionSound(string impact_sound, double impact_volume)
  960. {
  961. m_OSSL_Functions.osCollisionSound(impact_sound, impact_volume);
  962. }
  963. public void osVolumeDetect(int detect)
  964. {
  965. m_OSSL_Functions.osVolumeDetect(detect);
  966. }
  967. public LSL_List osGetInertiaData()
  968. {
  969. return m_OSSL_Functions.osGetInertiaData();
  970. }
  971. public void osSetInertia(LSL_Float mass, vector centerOfMass, vector principalInertiaScaled, rotation rot)
  972. {
  973. m_OSSL_Functions.osSetInertia(mass, centerOfMass, principalInertiaScaled, rot);
  974. }
  975. public void osSetInertiaAsBox(LSL_Float mass, vector boxSize, vector centerOfMass, rotation rot)
  976. {
  977. m_OSSL_Functions.osSetInertiaAsBox(mass, boxSize, centerOfMass, rot);
  978. }
  979. public void osSetInertiaAsSphere(LSL_Float mass, LSL_Float radius, vector centerOfMass)
  980. {
  981. m_OSSL_Functions.osSetInertiaAsSphere(mass, radius, centerOfMass);
  982. }
  983. public void osSetInertiaAsCylinder(LSL_Float mass, LSL_Float radius, LSL_Float lenght, vector centerOfMass,rotation lslrot)
  984. {
  985. m_OSSL_Functions.osSetInertiaAsCylinder( mass, radius, lenght, centerOfMass, lslrot);
  986. }
  987. public void osClearInertia()
  988. {
  989. m_OSSL_Functions.osClearInertia();
  990. }
  991. public LSL_Integer osTeleportObject(LSL_Key objectUUID, vector targetPos, rotation targetrotation, LSL_Integer flags)
  992. {
  993. return m_OSSL_Functions.osTeleportObject(objectUUID, targetPos, targetrotation, flags);
  994. }
  995. public LSL_Integer osGetLinkNumber(LSL_String name)
  996. {
  997. return m_OSSL_Functions.osGetLinkNumber(name);
  998. }
  999. public LSL_Float osRound(LSL_Float value, LSL_Integer digits)
  1000. {
  1001. return m_OSSL_Functions.osRound(value, digits);
  1002. }
  1003. public LSL_Float osVecMagSquare(vector a)
  1004. {
  1005. return m_OSSL_Functions.osVecMagSquare(a);
  1006. }
  1007. public LSL_Float osVecDistSquare(vector a, vector b)
  1008. {
  1009. return m_OSSL_Functions.osVecDistSquare(a, b);
  1010. }
  1011. public LSL_Float osAngleBetween(vector a, vector b)
  1012. {
  1013. return m_OSSL_Functions.osAngleBetween(a, b);
  1014. }
  1015. public void osAdjustSoundVolume(LSL_Integer linknum, LSL_Float volume)
  1016. {
  1017. m_OSSL_Functions.osAdjustSoundVolume(linknum, volume);
  1018. }
  1019. public void osSetSoundRadius(LSL_Integer linknum, LSL_Float radius)
  1020. {
  1021. m_OSSL_Functions.osSetSoundRadius(linknum, radius);
  1022. }
  1023. public void osPlaySound(LSL_Integer linknum, LSL_String sound, LSL_Float volume)
  1024. {
  1025. m_OSSL_Functions.osPlaySound(linknum, sound, volume);
  1026. }
  1027. public void osLoopSound(LSL_Integer linknum, LSL_String sound, LSL_Float volume)
  1028. {
  1029. m_OSSL_Functions.osLoopSound(linknum, sound, volume);
  1030. }
  1031. public void osLoopSoundMaster(LSL_Integer linknum, LSL_String sound, LSL_Float volume)
  1032. {
  1033. m_OSSL_Functions.osLoopSoundMaster(linknum, sound, volume);
  1034. }
  1035. public void osLoopSoundSlave(LSL_Integer linknum, LSL_String sound, LSL_Float volume)
  1036. {
  1037. m_OSSL_Functions.osLoopSoundSlave(linknum, sound, volume);
  1038. }
  1039. public void osPlaySoundSlave(LSL_Integer linknum, LSL_String sound, LSL_Float volume)
  1040. {
  1041. m_OSSL_Functions.osPlaySoundSlave(linknum, sound, volume);
  1042. }
  1043. public void osTriggerSound(LSL_Integer linknum, LSL_String sound, LSL_Float volume)
  1044. {
  1045. m_OSSL_Functions.osTriggerSound(linknum, sound, volume);
  1046. }
  1047. public void osTriggerSoundLimited(LSL_Integer linknum, LSL_String sound, LSL_Float volume,
  1048. vector top_north_east, vector bottom_south_west)
  1049. {
  1050. m_OSSL_Functions.osTriggerSoundLimited(linknum, sound, volume,
  1051. top_north_east, bottom_south_west);
  1052. }
  1053. public void osStopSound(LSL_Integer linknum)
  1054. {
  1055. m_OSSL_Functions.osStopSound(linknum);
  1056. }
  1057. public void osPreloadSound(LSL_Integer linknum, LSL_String sound)
  1058. {
  1059. m_OSSL_Functions.osPreloadSound(linknum, sound);
  1060. }
  1061. public LSL_String osDetectedCountry(LSL_Integer number)
  1062. {
  1063. return m_OSSL_Functions.osDetectedCountry(number);
  1064. }
  1065. public LSL_String osGetAgentCountry(LSL_Key agentId)
  1066. {
  1067. return m_OSSL_Functions.osGetAgentCountry(agentId);
  1068. }
  1069. public LSL_String osStringSubString(LSL_String src, LSL_Integer offset)
  1070. {
  1071. return m_OSSL_Functions.osStringSubString(src, offset);
  1072. }
  1073. public LSL_String osStringSubString(LSL_String src, LSL_Integer offset, LSL_Integer length)
  1074. {
  1075. return m_OSSL_Functions.osStringSubString(src, offset, length);
  1076. }
  1077. public LSL_Integer osStringStartsWith(LSL_String src, LSL_String value, LSL_Integer ignorecase)
  1078. {
  1079. return m_OSSL_Functions.osStringStartsWith(src, value, ignorecase);
  1080. }
  1081. public LSL_Integer osStringEndsWith(LSL_String src, LSL_String value, LSL_Integer ignorecase)
  1082. {
  1083. return m_OSSL_Functions.osStringEndsWith(src, value, ignorecase);
  1084. }
  1085. public LSL_Integer osStringIndexOf(LSL_String src, LSL_String value, LSL_Integer ignorecase)
  1086. {
  1087. return m_OSSL_Functions.osStringIndexOf(src, value, ignorecase);
  1088. }
  1089. public LSL_Integer osStringIndexOf(LSL_String src, LSL_String value, LSL_Integer offset, LSL_Integer count, LSL_Integer ignorecase)
  1090. {
  1091. return m_OSSL_Functions.osStringIndexOf(src, value, offset, count, ignorecase);
  1092. }
  1093. public LSL_Integer osStringLastIndexOf(LSL_String src, LSL_String value, LSL_Integer ignorecase)
  1094. {
  1095. return m_OSSL_Functions.osStringLastIndexOf(src, value, ignorecase);
  1096. }
  1097. public LSL_Integer osStringLastIndexOf(LSL_String src, LSL_String value, LSL_Integer offset, LSL_Integer count, LSL_Integer ignorecase)
  1098. {
  1099. return m_OSSL_Functions.osStringLastIndexOf(src, value, offset, count, ignorecase);
  1100. }
  1101. public LSL_String osStringRemove(LSL_String src, LSL_Integer offset, LSL_Integer count)
  1102. {
  1103. return m_OSSL_Functions.osStringRemove(src, offset, count);
  1104. }
  1105. public LSL_String osStringReplace(LSL_String src, LSL_String oldvalue, LSL_String newvalue)
  1106. {
  1107. return m_OSSL_Functions.osStringReplace(src, oldvalue, newvalue);
  1108. }
  1109. public LSL_Integer osApproxEquals(LSL_Float a, LSL_Float b)
  1110. {
  1111. return m_OSSL_Functions.osApproxEquals(a, b);
  1112. }
  1113. public LSL_Integer osApproxEquals(LSL_Float a, LSL_Float b, LSL_Float margin)
  1114. {
  1115. return m_OSSL_Functions.osApproxEquals(a, b, margin);
  1116. }
  1117. public LSL_Integer osApproxEquals(vector va, vector vb)
  1118. {
  1119. return m_OSSL_Functions.osApproxEquals(va, vb);
  1120. }
  1121. public LSL_Integer osApproxEquals(vector va, vector vb, LSL_Float margin)
  1122. {
  1123. return m_OSSL_Functions.osApproxEquals(va, vb, margin);
  1124. }
  1125. public LSL_Integer osApproxEquals(rotation ra, rotation rb)
  1126. {
  1127. return m_OSSL_Functions.osApproxEquals(ra, rb);
  1128. }
  1129. public LSL_Integer osApproxEquals(rotation ra, rotation rb, LSL_Float margin)
  1130. {
  1131. return m_OSSL_Functions.osApproxEquals(ra, rb, margin);
  1132. }
  1133. public LSL_Key osGetInventoryLastOwner(LSL_String itemNameOrId)
  1134. {
  1135. return m_OSSL_Functions.osGetInventoryLastOwner(itemNameOrId);
  1136. }
  1137. public LSL_String osGetInventoryName(LSL_Key itemId)
  1138. {
  1139. return m_OSSL_Functions.osGetInventoryName(itemId);
  1140. }
  1141. public LSL_String osGetInventoryDesc(LSL_String itemNameOrId)
  1142. {
  1143. return m_OSSL_Functions.osGetInventoryDesc(itemNameOrId);
  1144. }
  1145. public LSL_Key osGetLastChangedEventKey()
  1146. {
  1147. return m_OSSL_Functions.osGetLastChangedEventKey();
  1148. }
  1149. }
  1150. }