LSL_BaseClass.cs 63 KB

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