BuiltIn_Commands_BaseClass.cs 71 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366
  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 OpenSim 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.Collections.Generic;
  29. using System.Runtime.Remoting.Lifetime;
  30. using System.Threading;
  31. using OpenSim.Region.ScriptEngine.Common;
  32. using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase;
  33. using integer = System.Int32;
  34. using key = System.String;
  35. using vector = OpenSim.Region.ScriptEngine.Common.LSL_Types.Vector3;
  36. using rotation = OpenSim.Region.ScriptEngine.Common.LSL_Types.Quaternion;
  37. namespace OpenSim.Region.ScriptEngine.Common
  38. {
  39. public class BuiltIn_Commands_BaseClass : MarshalByRefObject, LSL_BuiltIn_Commands_Interface, IScript
  40. {
  41. //
  42. // Included as base for any LSL-script that is compiled.
  43. // Any function added here will be accessible to the LSL script. But it must also be added to "LSL_BuiltIn_Commands_Interface" in "OpenSim.Region.ScriptEngine.Common" class.
  44. //
  45. // Security note: This script will be running inside an restricted AppDomain. Currently AppDomain is not very restricted.
  46. //
  47. //private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
  48. // Object never expires
  49. public override Object InitializeLifetimeService()
  50. {
  51. //Console.WriteLine("LSL_BaseClass: InitializeLifetimeService()");
  52. // return null;
  53. ILease lease = (ILease)base.InitializeLifetimeService();
  54. if (lease.CurrentState == LeaseState.Initial)
  55. {
  56. lease.InitialLeaseTime = TimeSpan.Zero; // TimeSpan.FromMinutes(1);
  57. //lease.SponsorshipTimeout = TimeSpan.FromMinutes(2);
  58. //lease.RenewOnCallTime = TimeSpan.FromSeconds(2);
  59. }
  60. return lease;
  61. }
  62. public EventQueueManager.Queue_llDetectParams_Struct _llDetectParams;
  63. EventQueueManager.Queue_llDetectParams_Struct IScript.llDetectParams
  64. {
  65. get { return _llDetectParams; }
  66. set { _llDetectParams = value; }
  67. }
  68. private Executor m_Exec;
  69. ExecutorBase IScript.Exec
  70. {
  71. get
  72. {
  73. if (m_Exec == null)
  74. m_Exec = new Executor(this);
  75. return m_Exec;
  76. }
  77. }
  78. public BuilIn_Commands m_LSL_Functions;
  79. private string _Source = String.Empty;
  80. public string Source
  81. {
  82. get
  83. {
  84. return _Source;
  85. }
  86. set { _Source = value; }
  87. }
  88. public BuiltIn_Commands_BaseClass()
  89. {
  90. }
  91. public string State
  92. {
  93. get { return m_LSL_Functions.State; }
  94. set { m_LSL_Functions.State = value; }
  95. }
  96. public void Start(BuilIn_Commands LSL_Functions)
  97. {
  98. m_LSL_Functions = LSL_Functions;
  99. //m_log.Info(ScriptEngineName, "LSL_BaseClass.Start() called.");
  100. // Get this AppDomain's settings and display some of them.
  101. AppDomainSetup ads = AppDomain.CurrentDomain.SetupInformation;
  102. Console.WriteLine("AppName={0}, AppBase={1}, ConfigFile={2}",
  103. ads.ApplicationName,
  104. ads.ApplicationBase,
  105. ads.ConfigurationFile
  106. );
  107. // Display the name of the calling AppDomain and the name
  108. // of the second domain.
  109. // NOTE: The application's thread has transitioned between
  110. // AppDomains.
  111. Console.WriteLine("Calling to '{0}'.",
  112. Thread.GetDomain().FriendlyName
  113. );
  114. return;
  115. }
  116. public OSSL_BuilIn_Commands.OSSLPrim Prim {
  117. get { return m_LSL_Functions.Prim; }
  118. }
  119. //
  120. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  121. //
  122. // They are only forwarders to LSL_BuiltIn_Commands.cs
  123. //
  124. public OpenSim.Region.Environment.Interfaces.ICommander GetCommander(string name)
  125. {
  126. return m_LSL_Functions.GetCommander(name);
  127. }
  128. public double llSin(double f)
  129. {
  130. return m_LSL_Functions.llSin(f);
  131. }
  132. public double llCos(double f)
  133. {
  134. return m_LSL_Functions.llCos(f);
  135. }
  136. public double llTan(double f)
  137. {
  138. return m_LSL_Functions.llTan(f);
  139. }
  140. public double llAtan2(double x, double y)
  141. {
  142. return m_LSL_Functions.llAtan2(x, y);
  143. }
  144. public double llSqrt(double f)
  145. {
  146. return m_LSL_Functions.llSqrt(f);
  147. }
  148. public double llPow(double fbase, double fexponent)
  149. {
  150. return m_LSL_Functions.llPow(fbase, fexponent);
  151. }
  152. public int llAbs(int i)
  153. {
  154. return m_LSL_Functions.llAbs(i);
  155. }
  156. public double llFabs(double f)
  157. {
  158. return m_LSL_Functions.llFabs(f);
  159. }
  160. public double llFrand(double mag)
  161. {
  162. return m_LSL_Functions.llFrand(mag);
  163. }
  164. public int llFloor(double f)
  165. {
  166. return m_LSL_Functions.llFloor(f);
  167. }
  168. public int llCeil(double f)
  169. {
  170. return m_LSL_Functions.llCeil(f);
  171. }
  172. public int llRound(double f)
  173. {
  174. return m_LSL_Functions.llRound(f);
  175. }
  176. public double llVecMag(vector v)
  177. {
  178. return m_LSL_Functions.llVecMag(v);
  179. }
  180. public vector llVecNorm(vector v)
  181. {
  182. return m_LSL_Functions.llVecNorm(v);
  183. }
  184. public double llVecDist(vector a, vector b)
  185. {
  186. return m_LSL_Functions.llVecDist(a, b);
  187. }
  188. public vector llRot2Euler(rotation r)
  189. {
  190. return m_LSL_Functions.llRot2Euler(r);
  191. }
  192. public rotation llEuler2Rot(vector v)
  193. {
  194. return m_LSL_Functions.llEuler2Rot(v);
  195. }
  196. public rotation llAxes2Rot(vector fwd, vector left, vector up)
  197. {
  198. return m_LSL_Functions.llAxes2Rot(fwd, left, up);
  199. }
  200. public vector llRot2Fwd(rotation r)
  201. {
  202. return m_LSL_Functions.llRot2Fwd(r);
  203. }
  204. public vector llRot2Left(rotation r)
  205. {
  206. return m_LSL_Functions.llRot2Left(r);
  207. }
  208. public vector llRot2Up(rotation r)
  209. {
  210. return m_LSL_Functions.llRot2Up(r);
  211. }
  212. public rotation llRotBetween(vector start, vector end)
  213. {
  214. return m_LSL_Functions.llRotBetween(start, end);
  215. }
  216. public void llWhisper(int channelID, string text)
  217. {
  218. m_LSL_Functions.llWhisper(channelID, text);
  219. }
  220. public void llSay(int channelID, string text)
  221. {
  222. m_LSL_Functions.llSay(channelID, text);
  223. }
  224. //
  225. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  226. //
  227. public void llShout(int channelID, string text)
  228. {
  229. m_LSL_Functions.llShout(channelID, text);
  230. }
  231. public int llListen(int channelID, string name, string ID, string msg)
  232. {
  233. return m_LSL_Functions.llListen(channelID, name, ID, msg);
  234. }
  235. public void llListenControl(int number, int active)
  236. {
  237. m_LSL_Functions.llListenControl(number, active);
  238. }
  239. public void llListenRemove(int number)
  240. {
  241. m_LSL_Functions.llListenRemove(number);
  242. }
  243. public void llSensor(string name, string id, int type, double range, double arc)
  244. {
  245. m_LSL_Functions.llSensor(name, id, type, range, arc);
  246. }
  247. public void llSensorRepeat(string name, string id, int type, double range, double arc, double rate)
  248. {
  249. m_LSL_Functions.llSensorRepeat(name, id, type, range, arc, rate);
  250. }
  251. public void llSensorRemove()
  252. {
  253. m_LSL_Functions.llSensorRemove();
  254. }
  255. public string llDetectedName(int number)
  256. {
  257. return m_LSL_Functions.llDetectedName(number);
  258. }
  259. public string llDetectedKey(int number)
  260. {
  261. return m_LSL_Functions.llDetectedKey(number);
  262. }
  263. public string llDetectedOwner(int number)
  264. {
  265. return m_LSL_Functions.llDetectedOwner(number);
  266. }
  267. public int llDetectedType(int number)
  268. {
  269. return m_LSL_Functions.llDetectedType(number);
  270. }
  271. public vector llDetectedPos(int number)
  272. {
  273. return m_LSL_Functions.llDetectedPos(number);
  274. }
  275. public vector llDetectedVel(int number)
  276. {
  277. return m_LSL_Functions.llDetectedVel(number);
  278. }
  279. public vector llDetectedGrab(int number)
  280. {
  281. return m_LSL_Functions.llDetectedGrab(number);
  282. }
  283. public rotation llDetectedRot(int number)
  284. {
  285. return m_LSL_Functions.llDetectedRot(number);
  286. }
  287. public int llDetectedGroup(int number)
  288. {
  289. return m_LSL_Functions.llDetectedGroup(number);
  290. }
  291. public int llDetectedLinkNumber(int number)
  292. {
  293. return m_LSL_Functions.llDetectedLinkNumber(number);
  294. }
  295. //
  296. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  297. //
  298. public void llDie()
  299. {
  300. m_LSL_Functions.llDie();
  301. }
  302. public double llGround(vector offset)
  303. {
  304. return m_LSL_Functions.llGround(offset);
  305. }
  306. public double llCloud(vector offset)
  307. {
  308. return m_LSL_Functions.llCloud(offset);
  309. }
  310. public vector llWind(vector offset)
  311. {
  312. return m_LSL_Functions.llWind(offset);
  313. }
  314. public void llSetStatus(int status, int value)
  315. {
  316. m_LSL_Functions.llSetStatus(status, value);
  317. }
  318. public int llGetStatus(int status)
  319. {
  320. return m_LSL_Functions.llGetStatus(status);
  321. }
  322. public void llSetScale(vector scale)
  323. {
  324. m_LSL_Functions.llSetScale(scale);
  325. }
  326. public vector llGetScale()
  327. {
  328. return m_LSL_Functions.llGetScale();
  329. }
  330. public void llSetColor(vector color, int face)
  331. {
  332. m_LSL_Functions.llSetColor(color, face);
  333. }
  334. public double llGetAlpha(int face)
  335. {
  336. return m_LSL_Functions.llGetAlpha(face);
  337. }
  338. public void llSetAlpha(double alpha, int face)
  339. {
  340. m_LSL_Functions.llSetAlpha(alpha, face);
  341. }
  342. public vector llGetColor(int face)
  343. {
  344. return m_LSL_Functions.llGetColor(face);
  345. }
  346. public void llSetTexture(string texture, int face)
  347. {
  348. m_LSL_Functions.llSetTexture(texture, face);
  349. }
  350. public void llScaleTexture(double u, double v, int face)
  351. {
  352. m_LSL_Functions.llScaleTexture(u, v, face);
  353. }
  354. public void llOffsetTexture(double u, double v, int face)
  355. {
  356. m_LSL_Functions.llOffsetTexture(u, v, face);
  357. }
  358. public void llRotateTexture(double rotation, int face)
  359. {
  360. m_LSL_Functions.llRotateTexture(rotation, face);
  361. }
  362. public string llGetTexture(int face)
  363. {
  364. return m_LSL_Functions.llGetTexture(face);
  365. }
  366. //
  367. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  368. //
  369. public void llSetPos(vector pos)
  370. {
  371. m_LSL_Functions.llSetPos(pos);
  372. }
  373. public vector llGetPos()
  374. {
  375. return m_LSL_Functions.llGetPos();
  376. }
  377. public vector llGetLocalPos()
  378. {
  379. return m_LSL_Functions.llGetLocalPos();
  380. }
  381. public void llSetRot(rotation rot)
  382. {
  383. m_LSL_Functions.llSetRot(rot);
  384. }
  385. public rotation llGetRot()
  386. {
  387. return m_LSL_Functions.llGetRot();
  388. }
  389. public rotation llGetLocalRot()
  390. {
  391. return m_LSL_Functions.llGetLocalRot();
  392. }
  393. public void llSetForce(vector force, int local)
  394. {
  395. m_LSL_Functions.llSetForce(force, local);
  396. }
  397. public vector llGetForce()
  398. {
  399. return m_LSL_Functions.llGetForce();
  400. }
  401. public int llTarget(vector position, double range)
  402. {
  403. return m_LSL_Functions.llTarget(position, range);
  404. }
  405. public void llTargetRemove(int number)
  406. {
  407. m_LSL_Functions.llTargetRemove(number);
  408. }
  409. public int llRotTarget(rotation rot, double error)
  410. {
  411. return m_LSL_Functions.llRotTarget(rot, error);
  412. }
  413. public void llRotTargetRemove(int number)
  414. {
  415. m_LSL_Functions.llRotTargetRemove(number);
  416. }
  417. public void llMoveToTarget(vector target, double tau)
  418. {
  419. m_LSL_Functions.llMoveToTarget(target, tau);
  420. }
  421. public void llStopMoveToTarget()
  422. {
  423. m_LSL_Functions.llStopMoveToTarget();
  424. }
  425. public void llApplyImpulse(vector force, int local)
  426. {
  427. m_LSL_Functions.llApplyImpulse(force, local);
  428. }
  429. //
  430. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  431. //
  432. public void llApplyRotationalImpulse(vector force, int local)
  433. {
  434. m_LSL_Functions.llApplyRotationalImpulse(force, local);
  435. }
  436. public void llSetTorque(vector torque, int local)
  437. {
  438. m_LSL_Functions.llSetTorque(torque, local);
  439. }
  440. public vector llGetTorque()
  441. {
  442. return m_LSL_Functions.llGetTorque();
  443. }
  444. public void llSetForceAndTorque(vector force, vector torque, int local)
  445. {
  446. m_LSL_Functions.llSetForceAndTorque(force, torque, local);
  447. }
  448. public vector llGetVel()
  449. {
  450. return m_LSL_Functions.llGetVel();
  451. }
  452. public vector llGetAccel()
  453. {
  454. return m_LSL_Functions.llGetAccel();
  455. }
  456. public vector llGetOmega()
  457. {
  458. return m_LSL_Functions.llGetOmega();
  459. }
  460. public double llGetTimeOfDay()
  461. {
  462. return m_LSL_Functions.llGetTimeOfDay();
  463. }
  464. public double llGetWallclock()
  465. {
  466. return m_LSL_Functions.llGetWallclock();
  467. }
  468. public double llGetTime()
  469. {
  470. return m_LSL_Functions.llGetTime();
  471. }
  472. public void llResetTime()
  473. {
  474. m_LSL_Functions.llResetTime();
  475. }
  476. public double llGetAndResetTime()
  477. {
  478. return m_LSL_Functions.llGetAndResetTime();
  479. }
  480. public void llSound()
  481. {
  482. m_LSL_Functions.llSound();
  483. }
  484. public void llPlaySound(string sound, double volume)
  485. {
  486. m_LSL_Functions.llPlaySound(sound, volume);
  487. }
  488. public void llLoopSound(string sound, double volume)
  489. {
  490. m_LSL_Functions.llLoopSound(sound, volume);
  491. }
  492. public void llLoopSoundMaster(string sound, double volume)
  493. {
  494. m_LSL_Functions.llLoopSoundMaster(sound, volume);
  495. }
  496. public void llLoopSoundSlave(string sound, double volume)
  497. {
  498. m_LSL_Functions.llLoopSoundSlave(sound, volume);
  499. }
  500. public void llPlaySoundSlave(string sound, double volume)
  501. {
  502. m_LSL_Functions.llPlaySoundSlave(sound, volume);
  503. }
  504. //
  505. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  506. //
  507. public void llTriggerSound(string sound, double volume)
  508. {
  509. m_LSL_Functions.llTriggerSound(sound, volume);
  510. }
  511. public void llStopSound()
  512. {
  513. m_LSL_Functions.llStopSound();
  514. }
  515. public void llPreloadSound(string sound)
  516. {
  517. m_LSL_Functions.llPreloadSound(sound);
  518. }
  519. public string llGetSubString(string src, int start, int end)
  520. {
  521. return m_LSL_Functions.llGetSubString(src, start, end);
  522. }
  523. public string llDeleteSubString(string src, int start, int end)
  524. {
  525. return m_LSL_Functions.llDeleteSubString(src, start, end);
  526. }
  527. public string llInsertString(string dst, int position, string src)
  528. {
  529. return m_LSL_Functions.llInsertString(dst, position, src);
  530. }
  531. public string llToUpper(string source)
  532. {
  533. return m_LSL_Functions.llToUpper(source);
  534. }
  535. public string llToLower(string source)
  536. {
  537. return m_LSL_Functions.llToLower(source);
  538. }
  539. public int llGiveMoney(string destination, int amount)
  540. {
  541. return m_LSL_Functions.llGiveMoney(destination, amount);
  542. }
  543. public void llMakeExplosion()
  544. {
  545. m_LSL_Functions.llMakeExplosion();
  546. }
  547. public void llMakeFountain()
  548. {
  549. m_LSL_Functions.llMakeFountain();
  550. }
  551. public void llMakeSmoke()
  552. {
  553. m_LSL_Functions.llMakeSmoke();
  554. }
  555. public void llMakeFire()
  556. {
  557. m_LSL_Functions.llMakeFire();
  558. }
  559. public void llRezObject(string inventory, vector pos, rotation rot, int param)
  560. {
  561. m_LSL_Functions.llRezObject(inventory, pos, rot, param);
  562. }
  563. public void llLookAt(vector target, double strength, double damping)
  564. {
  565. m_LSL_Functions.llLookAt(target, strength, damping);
  566. }
  567. public void llStopLookAt()
  568. {
  569. m_LSL_Functions.llStopLookAt();
  570. }
  571. public void llSetTimerEvent(double sec)
  572. {
  573. m_LSL_Functions.llSetTimerEvent(sec);
  574. }
  575. public void llSleep(double sec)
  576. {
  577. m_LSL_Functions.llSleep(sec);
  578. }
  579. //
  580. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  581. //
  582. public double llGetMass()
  583. {
  584. return m_LSL_Functions.llGetMass();
  585. }
  586. public void llCollisionFilter(string name, string id, int accept)
  587. {
  588. m_LSL_Functions.llCollisionFilter(name, id, accept);
  589. }
  590. public void llTakeControls(int controls, int accept, int pass_on)
  591. {
  592. m_LSL_Functions.llTakeControls(controls, accept, pass_on);
  593. }
  594. public void llReleaseControls()
  595. {
  596. m_LSL_Functions.llReleaseControls();
  597. }
  598. public void llAttachToAvatar(int attachment)
  599. {
  600. m_LSL_Functions.llAttachToAvatar(attachment);
  601. }
  602. public void llDetachFromAvatar()
  603. {
  604. m_LSL_Functions.llDetachFromAvatar();
  605. }
  606. public void llTakeCamera()
  607. {
  608. m_LSL_Functions.llTakeCamera();
  609. }
  610. public void llReleaseCamera()
  611. {
  612. m_LSL_Functions.llReleaseCamera();
  613. }
  614. public string llGetOwner()
  615. {
  616. return m_LSL_Functions.llGetOwner();
  617. }
  618. public void llInstantMessage(string user, string message)
  619. {
  620. m_LSL_Functions.llInstantMessage(user, message);
  621. }
  622. public void llEmail(string address, string subject, string message)
  623. {
  624. m_LSL_Functions.llEmail(address, subject, message);
  625. }
  626. public void llGetNextEmail(string address, string subject)
  627. {
  628. m_LSL_Functions.llGetNextEmail(address, subject);
  629. }
  630. public string llGetKey()
  631. {
  632. return m_LSL_Functions.llGetKey();
  633. }
  634. public void llSetBuoyancy(double buoyancy)
  635. {
  636. m_LSL_Functions.llSetBuoyancy(buoyancy);
  637. }
  638. public void llSetHoverHeight(double height, int water, double tau)
  639. {
  640. m_LSL_Functions.llSetHoverHeight(height, water, tau);
  641. }
  642. public void llStopHover()
  643. {
  644. m_LSL_Functions.llStopHover();
  645. }
  646. public void llMinEventDelay(double delay)
  647. {
  648. m_LSL_Functions.llMinEventDelay(delay);
  649. }
  650. public void llSoundPreload()
  651. {
  652. m_LSL_Functions.llSoundPreload();
  653. }
  654. public void llRotLookAt(rotation target, double strength, double damping)
  655. {
  656. m_LSL_Functions.llRotLookAt(target, strength, damping);
  657. }
  658. //
  659. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  660. //
  661. public int llStringLength(string str)
  662. {
  663. return m_LSL_Functions.llStringLength(str);
  664. }
  665. public void llStartAnimation(string anim)
  666. {
  667. m_LSL_Functions.llStartAnimation(anim);
  668. }
  669. public void llStopAnimation(string anim)
  670. {
  671. m_LSL_Functions.llStopAnimation(anim);
  672. }
  673. public void llPointAt()
  674. {
  675. m_LSL_Functions.llPointAt();
  676. }
  677. public void llStopPointAt()
  678. {
  679. m_LSL_Functions.llStopPointAt();
  680. }
  681. public void llTargetOmega(vector axis, double spinrate, double gain)
  682. {
  683. m_LSL_Functions.llTargetOmega(axis, spinrate, gain);
  684. }
  685. public int llGetStartParameter()
  686. {
  687. return m_LSL_Functions.llGetStartParameter();
  688. }
  689. public void llGodLikeRezObject(string inventory, vector pos)
  690. {
  691. m_LSL_Functions.llGodLikeRezObject(inventory, pos);
  692. }
  693. public void llRequestPermissions(string agent, int perm)
  694. {
  695. m_LSL_Functions.llRequestPermissions(agent, perm);
  696. }
  697. public string llGetPermissionsKey()
  698. {
  699. return m_LSL_Functions.llGetPermissionsKey();
  700. }
  701. public int llGetPermissions()
  702. {
  703. return m_LSL_Functions.llGetPermissions();
  704. }
  705. public int llGetLinkNumber()
  706. {
  707. return m_LSL_Functions.llGetLinkNumber();
  708. }
  709. public void llSetLinkColor(int linknumber, vector color, int face)
  710. {
  711. m_LSL_Functions.llSetLinkColor(linknumber, color, face);
  712. }
  713. public void llCreateLink(string target, int parent)
  714. {
  715. m_LSL_Functions.llCreateLink(target, parent);
  716. }
  717. public void llBreakLink(int linknum)
  718. {
  719. m_LSL_Functions.llBreakLink(linknum);
  720. }
  721. public void llBreakAllLinks()
  722. {
  723. m_LSL_Functions.llBreakAllLinks();
  724. }
  725. public string llGetLinkKey(int linknum)
  726. {
  727. return m_LSL_Functions.llGetLinkKey(linknum);
  728. }
  729. public string llGetLinkName(int linknum)
  730. {
  731. return m_LSL_Functions.llGetLinkName(linknum);
  732. }
  733. public int llGetInventoryNumber(int type)
  734. {
  735. return m_LSL_Functions.llGetInventoryNumber(type);
  736. }
  737. public string llGetInventoryName(int type, int number)
  738. {
  739. return m_LSL_Functions.llGetInventoryName(type, number);
  740. }
  741. //
  742. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  743. //
  744. public void llSetScriptState(string name, int run)
  745. {
  746. m_LSL_Functions.llSetScriptState(name, run);
  747. }
  748. public double llGetEnergy()
  749. {
  750. return m_LSL_Functions.llGetEnergy();
  751. }
  752. public void llGiveInventory(string destination, string inventory)
  753. {
  754. m_LSL_Functions.llGiveInventory(destination, inventory);
  755. }
  756. public void llRemoveInventory(string item)
  757. {
  758. m_LSL_Functions.llRemoveInventory(item);
  759. }
  760. public void llSetText(string text, vector color, double alpha)
  761. {
  762. m_LSL_Functions.llSetText(text, color, alpha);
  763. }
  764. public double llWater(vector offset)
  765. {
  766. return m_LSL_Functions.llWater(offset);
  767. }
  768. public void llPassTouches(int pass)
  769. {
  770. m_LSL_Functions.llPassTouches(pass);
  771. }
  772. public string llRequestAgentData(string id, int data)
  773. {
  774. return m_LSL_Functions.llRequestAgentData(id, data);
  775. }
  776. public string llRequestInventoryData(string name)
  777. {
  778. return m_LSL_Functions.llRequestInventoryData(name);
  779. }
  780. public void llSetDamage(double damage)
  781. {
  782. m_LSL_Functions.llSetDamage(damage);
  783. }
  784. public void llTeleportAgentHome(string agent)
  785. {
  786. m_LSL_Functions.llTeleportAgentHome(agent);
  787. }
  788. public void llModifyLand(int action, int brush)
  789. {
  790. m_LSL_Functions.llModifyLand(action, brush);
  791. }
  792. public void llCollisionSound(string impact_sound, double impact_volume)
  793. {
  794. m_LSL_Functions.llCollisionSound(impact_sound, impact_volume);
  795. }
  796. public void llCollisionSprite(string impact_sprite)
  797. {
  798. m_LSL_Functions.llCollisionSprite(impact_sprite);
  799. }
  800. public string llGetAnimation(string id)
  801. {
  802. return m_LSL_Functions.llGetAnimation(id);
  803. }
  804. public void llResetScript()
  805. {
  806. m_LSL_Functions.llResetScript();
  807. }
  808. public void llMessageLinked(int linknum, int num, string str, string id)
  809. {
  810. m_LSL_Functions.llMessageLinked(linknum, num, str, id);
  811. }
  812. public void llPushObject(string target, vector impulse, vector ang_impulse, int local)
  813. {
  814. m_LSL_Functions.llPushObject(target, impulse, ang_impulse, local);
  815. }
  816. public void llPassCollisions(int pass)
  817. {
  818. m_LSL_Functions.llPassCollisions(pass);
  819. }
  820. public string llGetScriptName()
  821. {
  822. return m_LSL_Functions.llGetScriptName();
  823. }
  824. public int llGetNumberOfSides()
  825. {
  826. return m_LSL_Functions.llGetNumberOfSides();
  827. }
  828. //
  829. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  830. //
  831. public rotation llAxisAngle2Rot(vector axis, double angle)
  832. {
  833. return m_LSL_Functions.llAxisAngle2Rot(axis, angle);
  834. }
  835. public vector llRot2Axis(rotation rot)
  836. {
  837. return m_LSL_Functions.llRot2Axis(rot);
  838. }
  839. public void llRot2Angle()
  840. {
  841. m_LSL_Functions.llRot2Angle();
  842. }
  843. public double llAcos(double val)
  844. {
  845. return m_LSL_Functions.llAcos(val);
  846. }
  847. public double llAsin(double val)
  848. {
  849. return m_LSL_Functions.llAsin(val);
  850. }
  851. public double llAngleBetween(rotation a, rotation b)
  852. {
  853. return m_LSL_Functions.llAngleBetween(a, b);
  854. }
  855. public string llGetInventoryKey(string name)
  856. {
  857. return m_LSL_Functions.llGetInventoryKey(name);
  858. }
  859. public void llAllowInventoryDrop(int add)
  860. {
  861. m_LSL_Functions.llAllowInventoryDrop(add);
  862. }
  863. public vector llGetSunDirection()
  864. {
  865. return m_LSL_Functions.llGetSunDirection();
  866. }
  867. public vector llGetTextureOffset(int face)
  868. {
  869. return m_LSL_Functions.llGetTextureOffset(face);
  870. }
  871. public vector llGetTextureScale(int side)
  872. {
  873. return m_LSL_Functions.llGetTextureScale(side);
  874. }
  875. public double llGetTextureRot(int side)
  876. {
  877. return m_LSL_Functions.llGetTextureRot(side);
  878. }
  879. public int llSubStringIndex(string source, string pattern)
  880. {
  881. return m_LSL_Functions.llSubStringIndex(source, pattern);
  882. }
  883. public string llGetOwnerKey(string id)
  884. {
  885. return m_LSL_Functions.llGetOwnerKey(id);
  886. }
  887. public vector llGetCenterOfMass()
  888. {
  889. return m_LSL_Functions.llGetCenterOfMass();
  890. }
  891. public LSL_Types.list llListSort(LSL_Types.list src, int stride, int ascending)
  892. {
  893. return m_LSL_Functions.llListSort(src, stride, ascending);
  894. }
  895. public int llGetListLength(LSL_Types.list src)
  896. {
  897. return m_LSL_Functions.llGetListLength(src);
  898. }
  899. //
  900. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  901. //
  902. public int llList2Integer(LSL_Types.list src, int index)
  903. {
  904. return m_LSL_Functions.llList2Integer(src, index);
  905. }
  906. public double osList2Double(LSL_Types.list src, int index)
  907. {
  908. return m_LSL_Functions.osList2Double(src, index);
  909. }
  910. public string llList2String(LSL_Types.list src, int index)
  911. {
  912. return m_LSL_Functions.llList2String(src, index);
  913. }
  914. public string llList2Key(LSL_Types.list src, int index)
  915. {
  916. return m_LSL_Functions.llList2Key(src, index);
  917. }
  918. public vector llList2Vector(LSL_Types.list src, int index)
  919. {
  920. return m_LSL_Functions.llList2Vector(src, index);
  921. }
  922. public rotation llList2Rot(LSL_Types.list src, int index)
  923. {
  924. return m_LSL_Functions.llList2Rot(src, index);
  925. }
  926. public LSL_Types.list llList2List(LSL_Types.list src, int start, int end)
  927. {
  928. return m_LSL_Functions.llList2List(src, start, end);
  929. }
  930. public LSL_Types.list llDeleteSubList(LSL_Types.list src, int start, int end)
  931. {
  932. return m_LSL_Functions.llDeleteSubList(src, start, end);
  933. }
  934. public int llGetListEntryType(LSL_Types.list src, int index)
  935. {
  936. return m_LSL_Functions.llGetListEntryType(src, index);
  937. }
  938. public string llList2CSV(LSL_Types.list src)
  939. {
  940. return m_LSL_Functions.llList2CSV(src);
  941. }
  942. public LSL_Types.list llCSV2List(string src)
  943. {
  944. return m_LSL_Functions.llCSV2List(src);
  945. }
  946. public LSL_Types.list llListRandomize(LSL_Types.list src, int stride)
  947. {
  948. return m_LSL_Functions.llListRandomize(src, stride);
  949. }
  950. public LSL_Types.list llList2ListStrided(LSL_Types.list src, int start, int end, int stride)
  951. {
  952. return m_LSL_Functions.llList2ListStrided(src, start, end, stride);
  953. }
  954. public vector llGetRegionCorner()
  955. {
  956. return m_LSL_Functions.llGetRegionCorner();
  957. }
  958. public LSL_Types.list llListInsertList(LSL_Types.list dest, LSL_Types.list src, int start)
  959. {
  960. return m_LSL_Functions.llListInsertList(dest, src, start);
  961. }
  962. public int llListFindList(LSL_Types.list src, LSL_Types.list test)
  963. {
  964. return m_LSL_Functions.llListFindList(src, test);
  965. }
  966. public string llGetObjectName()
  967. {
  968. return m_LSL_Functions.llGetObjectName();
  969. }
  970. public void llSetObjectName(string name)
  971. {
  972. m_LSL_Functions.llSetObjectName(name);
  973. }
  974. public string llGetDate()
  975. {
  976. return m_LSL_Functions.llGetDate();
  977. }
  978. public int llEdgeOfWorld(vector pos, vector dir)
  979. {
  980. return m_LSL_Functions.llEdgeOfWorld(pos, dir);
  981. }
  982. public int llGetAgentInfo(string id)
  983. {
  984. return m_LSL_Functions.llGetAgentInfo(id);
  985. }
  986. //
  987. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  988. //
  989. public void llAdjustSoundVolume(double volume)
  990. {
  991. m_LSL_Functions.llAdjustSoundVolume(volume);
  992. }
  993. public void llSetSoundQueueing(int queue)
  994. {
  995. m_LSL_Functions.llSetSoundQueueing(queue);
  996. }
  997. public void llSetSoundRadius(double radius)
  998. {
  999. m_LSL_Functions.llSetSoundRadius(radius);
  1000. }
  1001. public string llKey2Name(string id)
  1002. {
  1003. return m_LSL_Functions.llKey2Name(id);
  1004. }
  1005. public void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate)
  1006. {
  1007. m_LSL_Functions.llSetTextureAnim(mode, face, sizex, sizey, start, length, rate);
  1008. }
  1009. public void llTriggerSoundLimited(string sound, double volume, vector top_north_east, vector bottom_south_west)
  1010. {
  1011. m_LSL_Functions.llTriggerSoundLimited(sound, volume, top_north_east, bottom_south_west);
  1012. }
  1013. public void llEjectFromLand(string pest)
  1014. {
  1015. m_LSL_Functions.llEjectFromLand(pest);
  1016. }
  1017. public LSL_Types.list llParseString2List(string str, LSL_Types.list separators, LSL_Types.list spacers)
  1018. {
  1019. return m_LSL_Functions.llParseString2List(str,separators,spacers);
  1020. }
  1021. public int llOverMyLand(string id)
  1022. {
  1023. return m_LSL_Functions.llOverMyLand(id);
  1024. }
  1025. public string llGetLandOwnerAt(vector pos)
  1026. {
  1027. return m_LSL_Functions.llGetLandOwnerAt(pos);
  1028. }
  1029. public string llGetNotecardLine(string name, int line)
  1030. {
  1031. return m_LSL_Functions.llGetNotecardLine(name, line);
  1032. }
  1033. public vector llGetAgentSize(string id)
  1034. {
  1035. return m_LSL_Functions.llGetAgentSize(id);
  1036. }
  1037. public int llSameGroup(string agent)
  1038. {
  1039. return m_LSL_Functions.llSameGroup(agent);
  1040. }
  1041. public void llUnSit(string id)
  1042. {
  1043. m_LSL_Functions.llUnSit(id);
  1044. }
  1045. public vector llGroundSlope(vector offset)
  1046. {
  1047. return m_LSL_Functions.llGroundSlope(offset);
  1048. }
  1049. public vector llGroundNormal(vector offset)
  1050. {
  1051. return m_LSL_Functions.llGroundNormal(offset);
  1052. }
  1053. public vector llGroundContour(vector offset)
  1054. {
  1055. return m_LSL_Functions.llGroundContour(offset);
  1056. }
  1057. public int llGetAttached()
  1058. {
  1059. return m_LSL_Functions.llGetAttached();
  1060. }
  1061. public int llGetFreeMemory()
  1062. {
  1063. return m_LSL_Functions.llGetFreeMemory();
  1064. }
  1065. public string llGetRegionName()
  1066. {
  1067. return m_LSL_Functions.llGetRegionName();
  1068. }
  1069. public double llGetRegionTimeDilation()
  1070. {
  1071. return m_LSL_Functions.llGetRegionTimeDilation();
  1072. }
  1073. public double llGetRegionFPS()
  1074. {
  1075. return m_LSL_Functions.llGetRegionFPS();
  1076. }
  1077. //
  1078. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  1079. //
  1080. public void llParticleSystem(LSL_Types.list rules)
  1081. {
  1082. m_LSL_Functions.llParticleSystem(rules);
  1083. }
  1084. public void llGroundRepel(double height, int water, double tau)
  1085. {
  1086. m_LSL_Functions.llGroundRepel(height, water, tau);
  1087. }
  1088. public void llGiveInventoryList()
  1089. {
  1090. m_LSL_Functions.llGiveInventoryList();
  1091. }
  1092. public void llSetVehicleType(int type)
  1093. {
  1094. m_LSL_Functions.llSetVehicleType(type);
  1095. }
  1096. public void llSetVehicledoubleParam(int param, double value)
  1097. {
  1098. m_LSL_Functions.llSetVehicledoubleParam(param, value);
  1099. }
  1100. public void llSetVehicleVectorParam(int param, vector vec)
  1101. {
  1102. m_LSL_Functions.llSetVehicleVectorParam(param, vec);
  1103. }
  1104. public void llSetVehicleRotationParam(int param, rotation rot)
  1105. {
  1106. m_LSL_Functions.llSetVehicleRotationParam(param, rot);
  1107. }
  1108. public void llSetVehicleFlags(int flags)
  1109. {
  1110. m_LSL_Functions.llSetVehicleFlags(flags);
  1111. }
  1112. public void llRemoveVehicleFlags(int flags)
  1113. {
  1114. m_LSL_Functions.llRemoveVehicleFlags(flags);
  1115. }
  1116. public void llSitTarget(vector offset, rotation rot)
  1117. {
  1118. m_LSL_Functions.llSitTarget(offset, rot);
  1119. }
  1120. public string llAvatarOnSitTarget()
  1121. {
  1122. return m_LSL_Functions.llAvatarOnSitTarget();
  1123. }
  1124. public void llAddToLandPassList(string avatar, double hours)
  1125. {
  1126. m_LSL_Functions.llAddToLandPassList(avatar, hours);
  1127. }
  1128. public void llSetTouchText(string text)
  1129. {
  1130. m_LSL_Functions.llSetTouchText(text);
  1131. }
  1132. public void llSetSitText(string text)
  1133. {
  1134. m_LSL_Functions.llSetSitText(text);
  1135. }
  1136. public void llSetCameraEyeOffset(vector offset)
  1137. {
  1138. m_LSL_Functions.llSetCameraEyeOffset(offset);
  1139. }
  1140. public void llSetCameraAtOffset(vector offset)
  1141. {
  1142. m_LSL_Functions.llSetCameraAtOffset(offset);
  1143. }
  1144. public string llDumpList2String(LSL_Types.list src, string seperator)
  1145. {
  1146. return m_LSL_Functions.llDumpList2String(src, seperator);
  1147. }
  1148. public void llScriptDanger(vector pos)
  1149. {
  1150. m_LSL_Functions.llScriptDanger(pos);
  1151. }
  1152. public void llDialog(string avatar, string message, LSL_Types.list buttons, int chat_channel)
  1153. {
  1154. m_LSL_Functions.llDialog(avatar, message, buttons, chat_channel);
  1155. }
  1156. public void llVolumeDetect(int detect)
  1157. {
  1158. m_LSL_Functions.llVolumeDetect(detect);
  1159. }
  1160. public void llResetOtherScript(string name)
  1161. {
  1162. m_LSL_Functions.llResetOtherScript(name);
  1163. }
  1164. public int llGetScriptState(string name)
  1165. {
  1166. return m_LSL_Functions.llGetScriptState(name);
  1167. }
  1168. public void llRemoteLoadScript()
  1169. {
  1170. m_LSL_Functions.llRemoteLoadScript();
  1171. }
  1172. public void llSetRemoteScriptAccessPin(int pin)
  1173. {
  1174. m_LSL_Functions.llSetRemoteScriptAccessPin(pin);
  1175. }
  1176. public void llRemoteLoadScriptPin(string target, string name, int pin, int running, int start_param)
  1177. {
  1178. m_LSL_Functions.llRemoteLoadScriptPin(target, name, pin, running, start_param);
  1179. }
  1180. //
  1181. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  1182. //
  1183. public void llOpenRemoteDataChannel()
  1184. {
  1185. m_LSL_Functions.llOpenRemoteDataChannel();
  1186. }
  1187. public string llSendRemoteData(string channel, string dest, int idata, string sdata)
  1188. {
  1189. return m_LSL_Functions.llSendRemoteData(channel, dest, idata, sdata);
  1190. }
  1191. public void llRemoteDataReply(string channel, string message_id, string sdata, int idata)
  1192. {
  1193. m_LSL_Functions.llRemoteDataReply(channel, message_id, sdata, idata);
  1194. }
  1195. public void llCloseRemoteDataChannel(string channel)
  1196. {
  1197. m_LSL_Functions.llCloseRemoteDataChannel(channel);
  1198. }
  1199. public string llMD5String(string src, int nonce)
  1200. {
  1201. return m_LSL_Functions.llMD5String(src, nonce);
  1202. }
  1203. public void llSetPrimitiveParams(LSL_Types.list rules)
  1204. {
  1205. m_LSL_Functions.llSetPrimitiveParams(rules);
  1206. }
  1207. public void llSetLinkPrimitiveParams(int linknumber, LSL_Types.list rules)
  1208. {
  1209. m_LSL_Functions.llSetLinkPrimitiveParams(linknumber, rules);
  1210. }
  1211. public string llStringToBase64(string str)
  1212. {
  1213. return m_LSL_Functions.llStringToBase64(str);
  1214. }
  1215. public string llBase64ToString(string str)
  1216. {
  1217. return m_LSL_Functions.llBase64ToString(str);
  1218. }
  1219. public void llXorBase64Strings()
  1220. {
  1221. m_LSL_Functions.llXorBase64Strings();
  1222. }
  1223. public void llRemoteDataSetRegion()
  1224. {
  1225. m_LSL_Functions.llRemoteDataSetRegion();
  1226. }
  1227. public double llLog10(double val)
  1228. {
  1229. return m_LSL_Functions.llLog10(val);
  1230. }
  1231. public double llLog(double val)
  1232. {
  1233. return m_LSL_Functions.llLog(val);
  1234. }
  1235. public LSL_Types.list llGetAnimationList(string id)
  1236. {
  1237. return m_LSL_Functions.llGetAnimationList(id);
  1238. }
  1239. public void llSetParcelMusicURL(string url)
  1240. {
  1241. m_LSL_Functions.llSetParcelMusicURL(url);
  1242. }
  1243. public vector llGetRootPosition()
  1244. {
  1245. return m_LSL_Functions.llGetRootPosition();
  1246. }
  1247. public rotation llGetRootRotation()
  1248. {
  1249. return m_LSL_Functions.llGetRootRotation();
  1250. }
  1251. public string llGetObjectDesc()
  1252. {
  1253. return m_LSL_Functions.llGetObjectDesc();
  1254. }
  1255. public void llSetObjectDesc(string desc)
  1256. {
  1257. m_LSL_Functions.llSetObjectDesc(desc);
  1258. }
  1259. public string llGetCreator()
  1260. {
  1261. return m_LSL_Functions.llGetCreator();
  1262. }
  1263. public string llGetTimestamp()
  1264. {
  1265. return m_LSL_Functions.llGetTimestamp();
  1266. }
  1267. public void llSetLinkAlpha(int linknumber, double alpha, int face)
  1268. {
  1269. m_LSL_Functions.llSetLinkAlpha(linknumber, alpha, face);
  1270. }
  1271. public int llGetNumberOfPrims()
  1272. {
  1273. return m_LSL_Functions.llGetNumberOfPrims();
  1274. }
  1275. public string llGetNumberOfNotecardLines(string name)
  1276. {
  1277. return m_LSL_Functions.llGetNumberOfNotecardLines(name);
  1278. }
  1279. public LSL_Types.list llGetBoundingBox(string obj)
  1280. {
  1281. return m_LSL_Functions.llGetBoundingBox(obj);
  1282. }
  1283. public vector llGetGeometricCenter()
  1284. {
  1285. return m_LSL_Functions.llGetGeometricCenter();
  1286. }
  1287. public void llGetPrimitiveParams()
  1288. {
  1289. m_LSL_Functions.llGetPrimitiveParams();
  1290. }
  1291. //
  1292. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  1293. //
  1294. public string llIntegerToBase64(int number)
  1295. {
  1296. return m_LSL_Functions.llIntegerToBase64(number);
  1297. }
  1298. public int llBase64ToInteger(string str)
  1299. {
  1300. return m_LSL_Functions.llBase64ToInteger(str);
  1301. }
  1302. public double llGetGMTclock()
  1303. {
  1304. return m_LSL_Functions.llGetGMTclock();
  1305. }
  1306. public string llGetSimulatorHostname()
  1307. {
  1308. return m_LSL_Functions.llGetSimulatorHostname();
  1309. }
  1310. public void llSetLocalRot(rotation rot)
  1311. {
  1312. m_LSL_Functions.llSetLocalRot(rot);
  1313. }
  1314. public LSL_Types.list llParseStringKeepNulls(string src, LSL_Types.list seperators, LSL_Types.list spacers)
  1315. {
  1316. return m_LSL_Functions.llParseStringKeepNulls(src, seperators, spacers);
  1317. }
  1318. public void llRezAtRoot(string inventory, vector position, vector velocity, rotation rot, int param)
  1319. {
  1320. m_LSL_Functions.llRezAtRoot(inventory, position, velocity, rot, param);
  1321. }
  1322. public int llGetObjectPermMask(int mask)
  1323. {
  1324. return m_LSL_Functions.llGetObjectPermMask(mask);
  1325. }
  1326. public void llSetObjectPermMask(int mask, int value)
  1327. {
  1328. m_LSL_Functions.llSetObjectPermMask(mask, value);
  1329. }
  1330. public int llGetInventoryPermMask(string item, int mask)
  1331. {
  1332. return m_LSL_Functions.llGetInventoryPermMask(item, mask);
  1333. }
  1334. public void llSetInventoryPermMask(string item, int mask, int value)
  1335. {
  1336. m_LSL_Functions.llSetInventoryPermMask(item, mask, value);
  1337. }
  1338. public string llGetInventoryCreator(string item)
  1339. {
  1340. return m_LSL_Functions.llGetInventoryCreator(item);
  1341. }
  1342. public void llOwnerSay(string msg)
  1343. {
  1344. m_LSL_Functions.llOwnerSay(msg);
  1345. }
  1346. public void llRequestSimulatorData(string simulator, int data)
  1347. {
  1348. m_LSL_Functions.llRequestSimulatorData(simulator, data);
  1349. }
  1350. public void llForceMouselook(int mouselook)
  1351. {
  1352. m_LSL_Functions.llForceMouselook(mouselook);
  1353. }
  1354. public double llGetObjectMass(string id)
  1355. {
  1356. return m_LSL_Functions.llGetObjectMass(id);
  1357. }
  1358. public LSL_Types.list llListReplaceList(LSL_Types.list dest, LSL_Types.list src, int start, int end)
  1359. {
  1360. return m_LSL_Functions.llListReplaceList(dest, src, start, end);
  1361. }
  1362. public void llLoadURL(string avatar_id, string message, string url)
  1363. {
  1364. m_LSL_Functions.llLoadURL(avatar_id, message, url);
  1365. }
  1366. public void llParcelMediaCommandList(LSL_Types.list commandList)
  1367. {
  1368. m_LSL_Functions.llParcelMediaCommandList(commandList);
  1369. }
  1370. public void llParcelMediaQuery()
  1371. {
  1372. m_LSL_Functions.llParcelMediaQuery();
  1373. }
  1374. public int llModPow(int a, int b, int c)
  1375. {
  1376. return m_LSL_Functions.llModPow(a, b, c);
  1377. }
  1378. //
  1379. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  1380. //
  1381. public int llGetInventoryType(string name)
  1382. {
  1383. return m_LSL_Functions.llGetInventoryType(name);
  1384. }
  1385. public void llSetPayPrice(int price, LSL_Types.list quick_pay_buttons)
  1386. {
  1387. m_LSL_Functions.llSetPayPrice(price, quick_pay_buttons);
  1388. }
  1389. public vector llGetCameraPos()
  1390. {
  1391. return m_LSL_Functions.llGetCameraPos();
  1392. }
  1393. public rotation llGetCameraRot()
  1394. {
  1395. return m_LSL_Functions.llGetCameraRot();
  1396. }
  1397. public void llSetPrimURL()
  1398. {
  1399. m_LSL_Functions.llSetPrimURL();
  1400. }
  1401. public void llRefreshPrimURL()
  1402. {
  1403. m_LSL_Functions.llRefreshPrimURL();
  1404. }
  1405. public string llEscapeURL(string url)
  1406. {
  1407. return m_LSL_Functions.llEscapeURL(url);
  1408. }
  1409. public string llUnescapeURL(string url)
  1410. {
  1411. return m_LSL_Functions.llUnescapeURL(url);
  1412. }
  1413. public void llMapDestination(string simname, vector pos, vector look_at)
  1414. {
  1415. m_LSL_Functions.llMapDestination(simname, pos, look_at);
  1416. }
  1417. public void llAddToLandBanList(string avatar, double hours)
  1418. {
  1419. m_LSL_Functions.llAddToLandBanList(avatar, hours);
  1420. }
  1421. public void llRemoveFromLandPassList(string avatar)
  1422. {
  1423. m_LSL_Functions.llRemoveFromLandPassList(avatar);
  1424. }
  1425. public void llRemoveFromLandBanList(string avatar)
  1426. {
  1427. m_LSL_Functions.llRemoveFromLandBanList(avatar);
  1428. }
  1429. public void llSetCameraParams(LSL_Types.list rules)
  1430. {
  1431. m_LSL_Functions.llSetCameraParams(rules);
  1432. }
  1433. public void llClearCameraParams()
  1434. {
  1435. m_LSL_Functions.llClearCameraParams();
  1436. }
  1437. public double llListStatistics(int operation, LSL_Types.list src)
  1438. {
  1439. return m_LSL_Functions.llListStatistics(operation, src);
  1440. }
  1441. public int llGetUnixTime()
  1442. {
  1443. return m_LSL_Functions.llGetUnixTime();
  1444. }
  1445. public int llGetParcelFlags(vector pos)
  1446. {
  1447. return m_LSL_Functions.llGetParcelFlags(pos);
  1448. }
  1449. public int llGetRegionFlags()
  1450. {
  1451. return m_LSL_Functions.llGetRegionFlags();
  1452. }
  1453. public string llXorBase64StringsCorrect(string str1, string str2)
  1454. {
  1455. return m_LSL_Functions.llXorBase64StringsCorrect(str1, str2);
  1456. }
  1457. public string llHTTPRequest(string url, LSL_Types.list parameters, string body)
  1458. {
  1459. return m_LSL_Functions.llHTTPRequest(url, parameters, body);
  1460. }
  1461. public void llResetLandBanList()
  1462. {
  1463. m_LSL_Functions.llResetLandBanList();
  1464. }
  1465. public void llResetLandPassList()
  1466. {
  1467. m_LSL_Functions.llResetLandPassList();
  1468. }
  1469. public int llGetParcelPrimCount(vector pos, int category, int sim_wide)
  1470. {
  1471. return m_LSL_Functions.llGetParcelPrimCount(pos, category, sim_wide);
  1472. }
  1473. public LSL_Types.list llGetParcelPrimOwners(vector pos)
  1474. {
  1475. return m_LSL_Functions.llGetParcelPrimOwners(pos);
  1476. }
  1477. public int llGetObjectPrimCount(string object_id)
  1478. {
  1479. return m_LSL_Functions.llGetObjectPrimCount(object_id);
  1480. }
  1481. //
  1482. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  1483. //
  1484. public int llGetParcelMaxPrims(vector pos, int sim_wide)
  1485. {
  1486. return m_LSL_Functions.llGetParcelMaxPrims(pos, sim_wide);
  1487. }
  1488. public LSL_Types.list llGetParcelDetails(vector pos, LSL_Types.list param)
  1489. {
  1490. return m_LSL_Functions.llGetParcelDetails(pos, param);
  1491. }
  1492. public string llStringTrim(string src, int type)
  1493. {
  1494. return m_LSL_Functions.llStringTrim(src, type);
  1495. }
  1496. public LSL_Types.list llGetObjectDetails(string id, LSL_Types.list args)
  1497. {
  1498. return m_LSL_Functions.llGetObjectDetails(id, args);
  1499. }
  1500. //
  1501. // OpenSim Functions
  1502. //
  1503. public string osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams,
  1504. int timer)
  1505. {
  1506. return m_LSL_Functions.osSetDynamicTextureURL(dynamicID, contentType, url, extraParams, timer);
  1507. }
  1508. public string osSetDynamicTextureData(string dynamicID, string contentType, string data, string extraParams,
  1509. int timer)
  1510. {
  1511. return m_LSL_Functions.osSetDynamicTextureData(dynamicID, contentType, data, extraParams, timer);
  1512. }
  1513. public string osSetDynamicTextureURLBlend(string dynamicID, string contentType, string url, string extraParams,
  1514. int timer, int alpha)
  1515. {
  1516. return m_LSL_Functions.osSetDynamicTextureURLBlend(dynamicID, contentType, url, extraParams, timer, alpha);
  1517. }
  1518. public string osSetDynamicTextureDataBlend(string dynamicID, string contentType, string data, string extraParams,
  1519. int timer, int alpha)
  1520. {
  1521. return m_LSL_Functions.osSetDynamicTextureDataBlend(dynamicID, contentType, data, extraParams, timer, alpha);
  1522. }
  1523. public double osTerrainGetHeight(int x, int y)
  1524. {
  1525. return m_LSL_Functions.osTerrainGetHeight(x, y);
  1526. }
  1527. public int osTerrainSetHeight(int x, int y, double val)
  1528. {
  1529. return m_LSL_Functions.osTerrainSetHeight(x, y, val);
  1530. }
  1531. public int osRegionRestart(double seconds)
  1532. {
  1533. return m_LSL_Functions.osRegionRestart(seconds);
  1534. }
  1535. public void osRegionNotice(string msg)
  1536. {
  1537. m_LSL_Functions.osRegionNotice(msg);
  1538. }
  1539. public bool osConsoleCommand(string Command)
  1540. {
  1541. return m_LSL_Functions.osConsoleCommand(Command);
  1542. }
  1543. public void osSetParcelMediaURL(string url)
  1544. {
  1545. m_LSL_Functions.osSetParcelMediaURL(url);
  1546. }
  1547. public void osSetPrimFloatOnWater(int floatYN)
  1548. {
  1549. m_LSL_Functions.osSetPrimFloatOnWater(floatYN);
  1550. }
  1551. //Texture Draw functions
  1552. public string osMovePen(string drawList, int x, int y)
  1553. {
  1554. return m_LSL_Functions.osMovePen(drawList, x, y);
  1555. }
  1556. public string osDrawLine(string drawList, int startX, int startY, int endX, int endY)
  1557. {
  1558. return m_LSL_Functions.osDrawLine(drawList, startX, startY, endX, endY);
  1559. }
  1560. public string osDrawLine(string drawList, int endX, int endY)
  1561. {
  1562. return m_LSL_Functions.osDrawLine(drawList, endX, endY);
  1563. }
  1564. public string osDrawText(string drawList, string text)
  1565. {
  1566. return m_LSL_Functions.osDrawText(drawList, text);
  1567. }
  1568. public string osDrawEllipse(string drawList, int width, int height)
  1569. {
  1570. return m_LSL_Functions.osDrawEllipse(drawList, width, height);
  1571. }
  1572. public string osDrawRectangle(string drawList, int width, int height)
  1573. {
  1574. return m_LSL_Functions.osDrawRectangle(drawList, width, height);
  1575. }
  1576. public string osDrawFilledRectangle(string drawList, int width, int height)
  1577. {
  1578. return m_LSL_Functions.osDrawFilledRectangle(drawList, width, height);
  1579. }
  1580. public string osSetFontSize(string drawList, int fontSize)
  1581. {
  1582. return m_LSL_Functions.osSetFontSize(drawList, fontSize);
  1583. }
  1584. public string osSetPenSize(string drawList, int penSize)
  1585. {
  1586. return m_LSL_Functions.osSetPenSize(drawList, penSize);
  1587. }
  1588. public string osSetPenColour(string drawList, string colour)
  1589. {
  1590. return m_LSL_Functions.osSetPenColour(drawList, colour);
  1591. }
  1592. public string osDrawImage(string drawList, int width, int height, string imageUrl)
  1593. {
  1594. return m_LSL_Functions.osDrawImage(drawList, width, height, imageUrl);
  1595. }
  1596. //
  1597. public double llList2Float(LSL_Types.list src, int index)
  1598. {
  1599. return m_LSL_Functions.llList2Float(src, index);
  1600. }
  1601. // LSL CONSTANTS
  1602. public const int TRUE = 1;
  1603. public const int FALSE = 0;
  1604. public const int STATUS_PHYSICS = 1;
  1605. public const int STATUS_ROTATE_X = 2;
  1606. public const int STATUS_ROTATE_Y = 4;
  1607. public const int STATUS_ROTATE_Z = 8;
  1608. public const int STATUS_PHANTOM = 16;
  1609. public const int STATUS_SANDBOX = 32;
  1610. public const int STATUS_BLOCK_GRAB = 64;
  1611. public const int STATUS_DIE_AT_EDGE = 128;
  1612. public const int STATUS_RETURN_AT_EDGE = 256;
  1613. public const int STATUS_CAST_SHADOWS = 512;
  1614. public const int AGENT = 1;
  1615. public const int ACTIVE = 2;
  1616. public const int PASSIVE = 4;
  1617. public const int SCRIPTED = 8;
  1618. public const int CONTROL_FWD = 1;
  1619. public const int CONTROL_BACK = 2;
  1620. public const int CONTROL_LEFT = 4;
  1621. public const int CONTROL_RIGHT = 8;
  1622. public const int CONTROL_UP = 16;
  1623. public const int CONTROL_DOWN = 32;
  1624. public const int CONTROL_ROT_LEFT = 256;
  1625. public const int CONTROL_ROT_RIGHT = 512;
  1626. public const int CONTROL_LBUTTON = 268435456;
  1627. public const int CONTROL_ML_LBUTTON = 1073741824;
  1628. //Permissions
  1629. public const int PERMISSION_DEBIT = 2;
  1630. public const int PERMISSION_TAKE_CONTROLS = 4;
  1631. public const int PERMISSION_REMAP_CONTROLS = 8;
  1632. public const int PERMISSION_TRIGGER_ANIMATION = 16;
  1633. public const int PERMISSION_ATTACH = 32;
  1634. public const int PERMISSION_RELEASE_OWNERSHIP = 64;
  1635. public const int PERMISSION_CHANGE_LINKS = 128;
  1636. public const int PERMISSION_CHANGE_JOINTS = 256;
  1637. public const int PERMISSION_CHANGE_PERMISSIONS = 512;
  1638. public const int PERMISSION_TRACK_CAMERA = 1024;
  1639. public const int AGENT_FLYING = 1;
  1640. public const int AGENT_ATTACHMENTS = 2;
  1641. public const int AGENT_SCRIPTED = 4;
  1642. public const int AGENT_MOUSELOOK = 8;
  1643. public const int AGENT_SITTING = 16;
  1644. public const int AGENT_ON_OBJECT = 32;
  1645. public const int AGENT_AWAY = 64;
  1646. public const int AGENT_WALKING = 128;
  1647. public const int AGENT_IN_AIR = 256;
  1648. public const int AGENT_TYPING = 512;
  1649. public const int AGENT_CROUCHING = 1024;
  1650. public const int AGENT_BUSY = 2048;
  1651. public const int AGENT_ALWAYS_RUN = 4096;
  1652. //Particle Systems
  1653. public const int PSYS_PART_INTERP_COLOR_MASK = 1;
  1654. public const int PSYS_PART_INTERP_SCALE_MASK = 2;
  1655. public const int PSYS_PART_BOUNCE_MASK = 4;
  1656. public const int PSYS_PART_WIND_MASK = 8;
  1657. public const int PSYS_PART_FOLLOW_SRC_MASK = 16;
  1658. public const int PSYS_PART_FOLLOW_VELOCITY_MASK = 32;
  1659. public const int PSYS_PART_TARGET_POS_MASK = 64;
  1660. public const int PSYS_PART_TARGET_LINEAR_MASK = 128;
  1661. public const int PSYS_PART_EMISSIVE_MASK = 256;
  1662. public const int PSYS_PART_FLAGS = 0;
  1663. public const int PSYS_PART_START_COLOR = 1;
  1664. public const int PSYS_PART_START_ALPHA = 2;
  1665. public const int PSYS_PART_END_COLOR = 3;
  1666. public const int PSYS_PART_END_ALPHA = 4;
  1667. public const int PSYS_PART_START_SCALE = 5;
  1668. public const int PSYS_PART_END_SCALE = 6;
  1669. public const int PSYS_PART_MAX_AGE = 7;
  1670. public const int PSYS_SRC_ACCEL = 8;
  1671. public const int PSYS_SRC_PATTERN = 9;
  1672. public const int PSYS_SRC_INNERANGLE = 10;
  1673. public const int PSYS_SRC_OUTERANGLE = 11;
  1674. public const int PSYS_SRC_TEXTURE = 12;
  1675. public const int PSYS_SRC_BURST_RATE = 13;
  1676. public const int PSYS_SRC_BURST_PART_COUNT = 15;
  1677. public const int PSYS_SRC_BURST_RADIUS = 16;
  1678. public const int PSYS_SRC_BURST_SPEED_MIN = 17;
  1679. public const int PSYS_SRC_BURST_SPEED_MAX = 18;
  1680. public const int PSYS_SRC_MAX_AGE = 19;
  1681. public const int PSYS_SRC_TARGET_KEY = 20;
  1682. public const int PSYS_SRC_OMEGA = 21;
  1683. public const int PSYS_SRC_ANGLE_BEGIN = 22;
  1684. public const int PSYS_SRC_ANGLE_END = 23;
  1685. public const int PSYS_SRC_PATTERN_DROP = 1;
  1686. public const int PSYS_SRC_PATTERN_EXPLODE = 2;
  1687. public const int PSYS_SRC_PATTERN_ANGLE = 4;
  1688. public const int PSYS_SRC_PATTERN_ANGLE_CONE = 8;
  1689. public const int PSYS_SRC_PATTERN_ANGLE_CONE_EMPTY = 16;
  1690. public const int VEHICLE_TYPE_NONE = 0;
  1691. public const int VEHICLE_TYPE_SLED = 1;
  1692. public const int VEHICLE_TYPE_CAR = 2;
  1693. public const int VEHICLE_TYPE_BOAT = 3;
  1694. public const int VEHICLE_TYPE_AIRPLANE = 4;
  1695. public const int VEHICLE_TYPE_BALLOON = 5;
  1696. public const int VEHICLE_LINEAR_FRICTION_TIMESCALE = 16;
  1697. public const int VEHICLE_ANGULAR_FRICTION_TIMESCALE = 17;
  1698. public const int VEHICLE_LINEAR_MOTOR_DIRECTION = 18;
  1699. public const int VEHICLE_LINEAR_MOTOR_OFFSET = 20;
  1700. public const int VEHICLE_ANGULAR_MOTOR_DIRECTION = 19;
  1701. public const int VEHICLE_HOVER_HEIGHT = 24;
  1702. public const int VEHICLE_HOVER_EFFICIENCY = 25;
  1703. public const int VEHICLE_HOVER_TIMESCALE = 26;
  1704. public const int VEHICLE_BUOYANCY = 27;
  1705. public const int VEHICLE_LINEAR_DEFLECTION_EFFICIENCY = 28;
  1706. public const int VEHICLE_LINEAR_DEFLECTION_TIMESCALE = 29;
  1707. public const int VEHICLE_LINEAR_MOTOR_TIMESCALE = 30;
  1708. public const int VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE = 31;
  1709. public const int VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY = 32;
  1710. public const int VEHICLE_ANGULAR_DEFLECTION_TIMESCALE = 33;
  1711. public const int VEHICLE_ANGULAR_MOTOR_TIMESCALE = 34;
  1712. public const int VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE = 35;
  1713. public const int VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY = 36;
  1714. public const int VEHICLE_VERTICAL_ATTRACTION_TIMESCALE = 37;
  1715. public const int VEHICLE_BANKING_EFFICIENCY = 38;
  1716. public const int VEHICLE_BANKING_MIX = 39;
  1717. public const int VEHICLE_BANKING_TIMESCALE = 40;
  1718. public const int VEHICLE_REFERENCE_FRAME = 44;
  1719. public const int VEHICLE_FLAG_NO_DEFLECTION_UP = 1;
  1720. public const int VEHICLE_FLAG_LIMIT_ROLL_ONLY = 2;
  1721. public const int VEHICLE_FLAG_HOVER_WATER_ONLY = 4;
  1722. public const int VEHICLE_FLAG_HOVER_TERRAIN_ONLY = 8;
  1723. public const int VEHICLE_FLAG_HOVER_GLOBAL_HEIGHT = 16;
  1724. public const int VEHICLE_FLAG_HOVER_UP_ONLY = 32;
  1725. public const int VEHICLE_FLAG_LIMIT_MOTOR_UP = 64;
  1726. public const int VEHICLE_FLAG_MOUSELOOK_STEER = 128;
  1727. public const int VEHICLE_FLAG_MOUSELOOK_BANK = 256;
  1728. public const int VEHICLE_FLAG_CAMERA_DECOUPLED = 512;
  1729. public const int INVENTORY_ALL = -1;
  1730. public const int INVENTORY_NONE = -1;
  1731. public const int INVENTORY_TEXTURE = 0;
  1732. public const int INVENTORY_SOUND = 1;
  1733. public const int INVENTORY_LANDMARK = 3;
  1734. public const int INVENTORY_CLOTHING = 5;
  1735. public const int INVENTORY_OBJECT = 6;
  1736. public const int INVENTORY_NOTECARD = 7;
  1737. public const int INVENTORY_SCRIPT = 10;
  1738. public const int INVENTORY_BODYPART = 13;
  1739. public const int INVENTORY_ANIMATION = 20;
  1740. public const int INVENTORY_GESTURE = 21;
  1741. public const int ATTACH_CHEST = 1;
  1742. public const int ATTACH_HEAD = 2;
  1743. public const int ATTACH_LSHOULDER = 3;
  1744. public const int ATTACH_RSHOULDER = 4;
  1745. public const int ATTACH_LHAND = 5;
  1746. public const int ATTACH_RHAND = 6;
  1747. public const int ATTACH_LFOOT = 7;
  1748. public const int ATTACH_RFOOT = 8;
  1749. public const int ATTACH_BACK = 9;
  1750. public const int ATTACH_PELVIS = 10;
  1751. public const int ATTACH_MOUTH = 11;
  1752. public const int ATTACH_CHIN = 12;
  1753. public const int ATTACH_LEAR = 13;
  1754. public const int ATTACH_REAR = 14;
  1755. public const int ATTACH_LEYE = 15;
  1756. public const int ATTACH_REYE = 16;
  1757. public const int ATTACH_NOSE = 17;
  1758. public const int ATTACH_RUARM = 18;
  1759. public const int ATTACH_RLARM = 19;
  1760. public const int ATTACH_LUARM = 20;
  1761. public const int ATTACH_LLARM = 21;
  1762. public const int ATTACH_RHIP = 22;
  1763. public const int ATTACH_RULEG = 23;
  1764. public const int ATTACH_RLLEG = 24;
  1765. public const int ATTACH_LHIP = 25;
  1766. public const int ATTACH_LULEG = 26;
  1767. public const int ATTACH_LLLEG = 27;
  1768. public const int ATTACH_BELLY = 28;
  1769. public const int ATTACH_RPEC = 29;
  1770. public const int ATTACH_LPEC = 30;
  1771. public const int LAND_LEVEL = 0;
  1772. public const int LAND_RAISE = 1;
  1773. public const int LAND_LOWER = 2;
  1774. public const int LAND_SMOOTH = 3;
  1775. public const int LAND_NOISE = 4;
  1776. public const int LAND_REVERT = 5;
  1777. public const int LAND_SMALL_BRUSH = 1;
  1778. public const int LAND_MEDIUM_BRUSH = 2;
  1779. public const int LAND_LARGE_BRUSH = 3;
  1780. //Agent Dataserver
  1781. public const int DATA_ONLINE = 1;
  1782. public const int DATA_NAME = 2;
  1783. public const int DATA_BORN = 3;
  1784. public const int DATA_RATING = 4;
  1785. public const int DATA_SIM_POS = 5;
  1786. public const int DATA_SIM_STATUS = 6;
  1787. public const int DATA_SIM_RATING = 7;
  1788. public const int ANIM_ON = 1;
  1789. public const int LOOP = 2;
  1790. public const int REVERSE = 4;
  1791. public const int PING_PONG = 8;
  1792. public const int SMOOTH = 16;
  1793. public const int ROTATE = 32;
  1794. public const int SCALE = 64;
  1795. public const int ALL_SIDES = -1;
  1796. public const int LINK_SET = -1;
  1797. public const int LINK_ROOT = 1;
  1798. public const int LINK_ALL_OTHERS = -2;
  1799. public const int LINK_ALL_CHILDREN = -3;
  1800. public const int LINK_THIS = -4;
  1801. public const int CHANGED_INVENTORY = 1;
  1802. public const int CHANGED_COLOR = 2;
  1803. public const int CHANGED_SHAPE = 4;
  1804. public const int CHANGED_SCALE = 8;
  1805. public const int CHANGED_TEXTURE = 16;
  1806. public const int CHANGED_LINK = 32;
  1807. public const int CHANGED_ALLOWED_DROP = 64;
  1808. public const int CHANGED_OWNER = 128;
  1809. public const int TYPE_INVALID = 0;
  1810. public const int TYPE_INTEGER = 1;
  1811. public const int TYPE_double = 2;
  1812. public const int TYPE_STRING = 3;
  1813. public const int TYPE_KEY = 4;
  1814. public const int TYPE_VECTOR = 5;
  1815. public const int TYPE_ROTATION = 6;
  1816. //XML RPC Remote Data Channel
  1817. public const int REMOTE_DATA_CHANNEL = 1;
  1818. public const int REMOTE_DATA_REQUEST = 2;
  1819. public const int REMOTE_DATA_REPLY = 3;
  1820. //llHTTPRequest
  1821. public const int HTTP_METHOD = 0;
  1822. public const int HTTP_MIMETYPE = 1;
  1823. public const int HTTP_BODY_MAXLENGTH = 2;
  1824. public const int HTTP_VERIFY_CERT = 3;
  1825. public const int PRIM_MATERIAL = 2;
  1826. public const int PRIM_PHYSICS = 3;
  1827. public const int PRIM_TEMP_ON_REZ = 4;
  1828. public const int PRIM_PHANTOM = 5;
  1829. public const int PRIM_POSITION = 6;
  1830. public const int PRIM_SIZE = 7;
  1831. public const int PRIM_ROTATION = 8;
  1832. public const int PRIM_TYPE = 9;
  1833. public const int PRIM_TEXTURE = 17;
  1834. public const int PRIM_COLOR = 18;
  1835. public const int PRIM_BUMP_SHINY = 19;
  1836. public const int PRIM_FULLBRIGHT = 20;
  1837. public const int PRIM_FLEXIBLE = 21;
  1838. public const int PRIM_TEXGEN = 22;
  1839. public const int PRIM_CAST_SHADOWS = 24; // Not implemented, here for completeness sake
  1840. public const int PRIM_POINT_LIGHT = 23; // Huh?
  1841. public const int PRIM_TEXGEN_DEFAULT = 0;
  1842. public const int PRIM_TEXGEN_PLANAR = 1;
  1843. public const int PRIM_TYPE_BOX = 0;
  1844. public const int PRIM_TYPE_CYLINDER = 1;
  1845. public const int PRIM_TYPE_PRISM = 2;
  1846. public const int PRIM_TYPE_SPHERE = 3;
  1847. public const int PRIM_TYPE_TORUS = 4;
  1848. public const int PRIM_TYPE_TUBE = 5;
  1849. public const int PRIM_TYPE_RING = 6;
  1850. public const int PRIM_TYPE_SCULPT = 7;
  1851. public const int PRIM_HOLE_DEFAULT = 0;
  1852. public const int PRIM_HOLE_CIRCLE = 16;
  1853. public const int PRIM_HOLE_SQUARE = 32;
  1854. public const int PRIM_HOLE_TRIANGLE = 48;
  1855. public const int PRIM_MATERIAL_STONE = 0;
  1856. public const int PRIM_MATERIAL_METAL = 1;
  1857. public const int PRIM_MATERIAL_GLASS = 2;
  1858. public const int PRIM_MATERIAL_WOOD = 3;
  1859. public const int PRIM_MATERIAL_FLESH = 4;
  1860. public const int PRIM_MATERIAL_PLASTIC = 5;
  1861. public const int PRIM_MATERIAL_RUBBER = 6;
  1862. public const int PRIM_MATERIAL_LIGHT = 7;
  1863. public const int PRIM_SHINY_NONE = 0;
  1864. public const int PRIM_SHINY_LOW = 1;
  1865. public const int PRIM_SHINY_MEDIUM = 2;
  1866. public const int PRIM_SHINY_HIGH = 3;
  1867. public const int PRIM_BUMP_NONE = 0;
  1868. public const int PRIM_BUMP_BRIGHT = 1;
  1869. public const int PRIM_BUMP_DARK = 2;
  1870. public const int PRIM_BUMP_WOOD = 3;
  1871. public const int PRIM_BUMP_BARK = 4;
  1872. public const int PRIM_BUMP_BRICKS = 5;
  1873. public const int PRIM_BUMP_CHECKER = 6;
  1874. public const int PRIM_BUMP_CONCRETE = 7;
  1875. public const int PRIM_BUMP_TILE = 8;
  1876. public const int PRIM_BUMP_STONE = 9;
  1877. public const int PRIM_BUMP_DISKS = 10;
  1878. public const int PRIM_BUMP_GRAVEL = 11;
  1879. public const int PRIM_BUMP_BLOBS = 12;
  1880. public const int PRIM_BUMP_SIDING = 13;
  1881. public const int PRIM_BUMP_LARGETILE = 14;
  1882. public const int PRIM_BUMP_STUCCO = 15;
  1883. public const int PRIM_BUMP_SUCTION = 16;
  1884. public const int PRIM_BUMP_WEAVE = 17;
  1885. public const int PRIM_SCULPT_TYPE_SPHERE = 1;
  1886. public const int PRIM_SCULPT_TYPE_TORUS = 2;
  1887. public const int PRIM_SCULPT_TYPE_PLANE = 3;
  1888. public const int PRIM_SCULPT_TYPE_CYLINDER = 4;
  1889. public const int MASK_BASE = 0;
  1890. public const int MASK_OWNER = 1;
  1891. public const int MASK_GROUP = 2;
  1892. public const int MASK_EVERYONE = 3;
  1893. public const int MASK_NEXT = 4;
  1894. public const int PERM_TRANSFER = 8192;
  1895. public const int PERM_MODIFY = 16384;
  1896. public const int PERM_COPY = 32768;
  1897. public const int PERM_MOVE = 524288;
  1898. public const int PERM_ALL = 2147483647;
  1899. public const int PARCEL_MEDIA_COMMAND_STOP = 0;
  1900. public const int PARCEL_MEDIA_COMMAND_PAUSE = 1;
  1901. public const int PARCEL_MEDIA_COMMAND_PLAY = 2;
  1902. public const int PARCEL_MEDIA_COMMAND_LOOP = 3;
  1903. public const int PARCEL_MEDIA_COMMAND_TEXTURE = 4;
  1904. public const int PARCEL_MEDIA_COMMAND_URL = 5;
  1905. public const int PARCEL_MEDIA_COMMAND_TIME = 6;
  1906. public const int PARCEL_MEDIA_COMMAND_AGENT = 7;
  1907. public const int PARCEL_MEDIA_COMMAND_UNLOAD = 8;
  1908. public const int PARCEL_MEDIA_COMMAND_AUTO_ALIGN = 9;
  1909. public const int PAY_HIDE = -1;
  1910. public const int PAY_DEFAULT = -2;
  1911. public const string NULL_KEY = "00000000-0000-0000-0000-000000000000";
  1912. public const string EOF = "\n\n\n";
  1913. public const double PI = 3.14159274f;
  1914. public const double TWO_PI = 6.28318548f;
  1915. public const double PI_BY_TWO = 1.57079637f;
  1916. public const double DEG_TO_RAD = 0.01745329238f;
  1917. public const double RAD_TO_DEG = 57.29578f;
  1918. public const double SQRT2 = 1.414213538f;
  1919. public const int STRING_TRIM_HEAD = 1;
  1920. public const int STRING_TRIM_TAIL = 2;
  1921. public const int STRING_TRIM = 3;
  1922. public const int LIST_STAT_RANGE = 0;
  1923. public const int LIST_STAT_MIN = 1;
  1924. public const int LIST_STAT_MAX = 2;
  1925. public const int LIST_STAT_MEAN = 3;
  1926. public const int LIST_STAT_MEDIAN = 4;
  1927. public const int LIST_STAT_STD_DEV = 5;
  1928. public const int LIST_STAT_SUM = 6;
  1929. public const int LIST_STAT_SUM_SQUARES = 7;
  1930. public const int LIST_STAT_NUM_COUNT = 8;
  1931. public const int LIST_STAT_GEOMETRIC_MEAN = 9;
  1932. public const int LIST_STAT_HARMONIC_MEAN = 100;
  1933. //ParcelPrim Categories
  1934. public const int PARCEL_COUNT_TOTAL = 0;
  1935. public const int PARCEL_COUNT_OWNER = 1;
  1936. public const int PARCEL_COUNT_GROUP = 2;
  1937. public const int PARCEL_COUNT_OTHER = 3;
  1938. public const int PARCEL_COUNT_SELECTED = 4;
  1939. public const int PARCEL_COUNT_TEMP = 5;
  1940. public const int DEBUG_CHANNEL = 0x7FFFFFFF;
  1941. public const int PUBLIC_CHANNEL = 0x00000000;
  1942. public const int OBJECT_NAME = 1;
  1943. public const int OBJECT_DESC = 2;
  1944. public const int OBJECT_POS = 3;
  1945. public const int OBJECT_ROT = 4;
  1946. public const int OBJECT_VELOCITY = 5;
  1947. public const int OBJECT_OWNER = 6;
  1948. public const int OBJECT_GROUP = 7;
  1949. public const int OBJECT_CREATOR = 8;
  1950. // Can not be public const?
  1951. public vector ZERO_VECTOR = new vector(0.0, 0.0, 0.0);
  1952. public rotation ZERO_ROTATION = new rotation(0.0, 0, 0.0, 1.0);
  1953. }
  1954. }