LSL_BaseClass.cs 63 KB

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