LSL_BaseClass.cs 65 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121
  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. // 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. //MainLog.Instance.Notice("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 int llListen(int channelID, string name, string ID, string msg)
  204. {
  205. return m_LSL_Functions.llListen(channelID, name, ID, msg);
  206. }
  207. public void llListenControl(int number, int active)
  208. {
  209. m_LSL_Functions.llListenControl(number, active);
  210. }
  211. public void llListenRemove(int number)
  212. {
  213. m_LSL_Functions.llListenRemove(number);
  214. }
  215. public void llSensor(string name, string id, int type, double range, double arc)
  216. {
  217. m_LSL_Functions.llSensor(name, id, type, range, arc);
  218. }
  219. public void llSensorRepeat(string name, string id, int type, double range, double arc, double rate)
  220. {
  221. m_LSL_Functions.llSensorRepeat(name, id, type, range, arc, rate);
  222. }
  223. public void llSensorRemove()
  224. {
  225. m_LSL_Functions.llSensorRemove();
  226. }
  227. public string llDetectedName(int number)
  228. {
  229. return m_LSL_Functions.llDetectedName(number);
  230. }
  231. public string llDetectedKey(int number)
  232. {
  233. return m_LSL_Functions.llDetectedKey(number);
  234. }
  235. public string llDetectedOwner(int number)
  236. {
  237. return m_LSL_Functions.llDetectedOwner(number);
  238. }
  239. public int llDetectedType(int number)
  240. {
  241. return m_LSL_Functions.llDetectedType(number);
  242. }
  243. public vector llDetectedPos(int number)
  244. {
  245. return m_LSL_Functions.llDetectedPos(number);
  246. }
  247. public vector llDetectedVel(int number)
  248. {
  249. return m_LSL_Functions.llDetectedVel(number);
  250. }
  251. public vector llDetectedGrab(int number)
  252. {
  253. return m_LSL_Functions.llDetectedGrab(number);
  254. }
  255. public rotation llDetectedRot(int number)
  256. {
  257. return m_LSL_Functions.llDetectedRot(number);
  258. }
  259. public int llDetectedGroup(int number)
  260. {
  261. return m_LSL_Functions.llDetectedGroup(number);
  262. }
  263. public int llDetectedLinkNumber(int number)
  264. {
  265. return m_LSL_Functions.llDetectedLinkNumber(number);
  266. }
  267. //
  268. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  269. //
  270. public void llDie()
  271. {
  272. m_LSL_Functions.llDie();
  273. }
  274. public double llGround(vector offset)
  275. {
  276. return m_LSL_Functions.llGround(offset);
  277. }
  278. public double llCloud(vector offset)
  279. {
  280. return m_LSL_Functions.llCloud(offset);
  281. }
  282. public vector llWind(vector offset)
  283. {
  284. return m_LSL_Functions.llWind(offset);
  285. }
  286. public void llSetStatus(int status, int value)
  287. {
  288. m_LSL_Functions.llSetStatus(status, value);
  289. }
  290. public int llGetStatus(int status)
  291. {
  292. return m_LSL_Functions.llGetStatus(status);
  293. }
  294. public void llSetScale(vector scale)
  295. {
  296. m_LSL_Functions.llSetScale(scale);
  297. }
  298. public vector llGetScale()
  299. {
  300. return m_LSL_Functions.llGetScale();
  301. }
  302. public void llSetColor(vector color, int face)
  303. {
  304. m_LSL_Functions.llSetColor(color, face);
  305. }
  306. public double llGetAlpha(int face)
  307. {
  308. return m_LSL_Functions.llGetAlpha(face);
  309. }
  310. public void llSetAlpha(double alpha, int face)
  311. {
  312. m_LSL_Functions.llSetAlpha(alpha, face);
  313. }
  314. public vector llGetColor(int face)
  315. {
  316. return m_LSL_Functions.llGetColor(face);
  317. }
  318. public void llSetTexture(string texture, int face)
  319. {
  320. m_LSL_Functions.llSetTexture(texture, face);
  321. }
  322. public void llScaleTexture(double u, double v, int face)
  323. {
  324. m_LSL_Functions.llScaleTexture(u, v, face);
  325. }
  326. public void llOffsetTexture(double u, double v, int face)
  327. {
  328. m_LSL_Functions.llOffsetTexture(u, v, face);
  329. }
  330. public void llRotateTexture(double rotation, int face)
  331. {
  332. m_LSL_Functions.llRotateTexture(rotation, face);
  333. }
  334. public string llGetTexture(int face)
  335. {
  336. return m_LSL_Functions.llGetTexture(face);
  337. }
  338. //
  339. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  340. //
  341. public void llSetPos(vector pos)
  342. {
  343. m_LSL_Functions.llSetPos(pos);
  344. }
  345. public vector llGetPos()
  346. {
  347. return m_LSL_Functions.llGetPos();
  348. }
  349. public vector llGetLocalPos()
  350. {
  351. return m_LSL_Functions.llGetLocalPos();
  352. }
  353. public void llSetRot(rotation rot)
  354. {
  355. m_LSL_Functions.llSetRot(rot);
  356. }
  357. public rotation llGetRot()
  358. {
  359. return m_LSL_Functions.llGetRot();
  360. }
  361. public rotation llGetLocalRot()
  362. {
  363. return m_LSL_Functions.llGetLocalRot();
  364. }
  365. public void llSetForce(vector force, int local)
  366. {
  367. m_LSL_Functions.llSetForce(force, local);
  368. }
  369. public vector llGetForce()
  370. {
  371. return m_LSL_Functions.llGetForce();
  372. }
  373. public int llTarget(vector position, double range)
  374. {
  375. return m_LSL_Functions.llTarget(position, range);
  376. }
  377. public void llTargetRemove(int number)
  378. {
  379. m_LSL_Functions.llTargetRemove(number);
  380. }
  381. public int llRotTarget(rotation rot, double error)
  382. {
  383. return m_LSL_Functions.llRotTarget(rot, error);
  384. }
  385. public void llRotTargetRemove(int number)
  386. {
  387. m_LSL_Functions.llRotTargetRemove(number);
  388. }
  389. public void llMoveToTarget(vector target, double tau)
  390. {
  391. m_LSL_Functions.llMoveToTarget(target, tau);
  392. }
  393. public void llStopMoveToTarget()
  394. {
  395. m_LSL_Functions.llStopMoveToTarget();
  396. }
  397. public void llApplyImpulse(vector force, int local)
  398. {
  399. m_LSL_Functions.llApplyImpulse(force, local);
  400. }
  401. //
  402. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  403. //
  404. public void llApplyRotationalImpulse(vector force, int local)
  405. {
  406. m_LSL_Functions.llApplyRotationalImpulse(force, local);
  407. }
  408. public void llSetTorque(vector torque, int local)
  409. {
  410. m_LSL_Functions.llSetTorque(torque, local);
  411. }
  412. public vector llGetTorque()
  413. {
  414. return m_LSL_Functions.llGetTorque();
  415. }
  416. public void llSetForceAndTorque(vector force, vector torque, int local)
  417. {
  418. m_LSL_Functions.llSetForceAndTorque(force, torque, local);
  419. }
  420. public vector llGetVel()
  421. {
  422. return m_LSL_Functions.llGetVel();
  423. }
  424. public vector llGetAccel()
  425. {
  426. return m_LSL_Functions.llGetAccel();
  427. }
  428. public vector llGetOmega()
  429. {
  430. return m_LSL_Functions.llGetOmega();
  431. }
  432. public double llGetTimeOfDay()
  433. {
  434. return m_LSL_Functions.llGetTimeOfDay();
  435. }
  436. public double llGetWallclock()
  437. {
  438. return m_LSL_Functions.llGetWallclock();
  439. }
  440. public double llGetTime()
  441. {
  442. return m_LSL_Functions.llGetTime();
  443. }
  444. public void llResetTime()
  445. {
  446. m_LSL_Functions.llResetTime();
  447. }
  448. public double llGetAndResetTime()
  449. {
  450. return m_LSL_Functions.llGetAndResetTime();
  451. }
  452. public void llSound()
  453. {
  454. m_LSL_Functions.llSound();
  455. }
  456. public void llPlaySound(string sound, double volume)
  457. {
  458. m_LSL_Functions.llPlaySound(sound, volume);
  459. }
  460. public void llLoopSound(string sound, double volume)
  461. {
  462. m_LSL_Functions.llLoopSound(sound, volume);
  463. }
  464. public void llLoopSoundMaster(string sound, double volume)
  465. {
  466. m_LSL_Functions.llLoopSoundMaster(sound, volume);
  467. }
  468. public void llLoopSoundSlave(string sound, double volume)
  469. {
  470. m_LSL_Functions.llLoopSoundSlave(sound, volume);
  471. }
  472. public void llPlaySoundSlave(string sound, double volume)
  473. {
  474. m_LSL_Functions.llPlaySoundSlave(sound, volume);
  475. }
  476. //
  477. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  478. //
  479. public void llTriggerSound(string sound, double volume)
  480. {
  481. m_LSL_Functions.llTriggerSound(sound, volume);
  482. }
  483. public void llStopSound()
  484. {
  485. m_LSL_Functions.llStopSound();
  486. }
  487. public void llPreloadSound(string sound)
  488. {
  489. m_LSL_Functions.llPreloadSound(sound);
  490. }
  491. public string llGetSubString(string src, int start, int end)
  492. {
  493. return m_LSL_Functions.llGetSubString(src, start, end);
  494. }
  495. public string llDeleteSubString(string src, int start, int end)
  496. {
  497. return m_LSL_Functions.llDeleteSubString(src, start, end);
  498. }
  499. public string llInsertString(string dst, int position, string src)
  500. {
  501. return m_LSL_Functions.llInsertString(dst, position, src);
  502. }
  503. public string llToUpper(string source)
  504. {
  505. return m_LSL_Functions.llToUpper(source);
  506. }
  507. public string llToLower(string source)
  508. {
  509. return m_LSL_Functions.llToLower(source);
  510. }
  511. public int llGiveMoney(string destination, int amount)
  512. {
  513. return m_LSL_Functions.llGiveMoney(destination, amount);
  514. }
  515. public void llMakeExplosion()
  516. {
  517. m_LSL_Functions.llMakeExplosion();
  518. }
  519. public void llMakeFountain()
  520. {
  521. m_LSL_Functions.llMakeFountain();
  522. }
  523. public void llMakeSmoke()
  524. {
  525. m_LSL_Functions.llMakeSmoke();
  526. }
  527. public void llMakeFire()
  528. {
  529. m_LSL_Functions.llMakeFire();
  530. }
  531. public void llRezObject(string inventory, vector pos, rotation rot, int param)
  532. {
  533. m_LSL_Functions.llRezObject(inventory, pos, rot, param);
  534. }
  535. public void llLookAt(vector target, double strength, double damping)
  536. {
  537. m_LSL_Functions.llLookAt(target, strength, damping);
  538. }
  539. public void llStopLookAt()
  540. {
  541. m_LSL_Functions.llStopLookAt();
  542. }
  543. public void llSetTimerEvent(double sec)
  544. {
  545. m_LSL_Functions.llSetTimerEvent(sec);
  546. }
  547. public void llSleep(double sec)
  548. {
  549. m_LSL_Functions.llSleep(sec);
  550. }
  551. //
  552. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  553. //
  554. public double llGetMass()
  555. {
  556. return m_LSL_Functions.llGetMass();
  557. }
  558. public void llCollisionFilter(string name, string id, int accept)
  559. {
  560. m_LSL_Functions.llCollisionFilter(name, id, accept);
  561. }
  562. public void llTakeControls(int controls, int accept, int pass_on)
  563. {
  564. m_LSL_Functions.llTakeControls(controls, accept, pass_on);
  565. }
  566. public void llReleaseControls()
  567. {
  568. m_LSL_Functions.llReleaseControls();
  569. }
  570. public void llAttachToAvatar(int attachment)
  571. {
  572. m_LSL_Functions.llAttachToAvatar(attachment);
  573. }
  574. public void llDetachFromAvatar()
  575. {
  576. m_LSL_Functions.llDetachFromAvatar();
  577. }
  578. public void llTakeCamera()
  579. {
  580. m_LSL_Functions.llTakeCamera();
  581. }
  582. public void llReleaseCamera()
  583. {
  584. m_LSL_Functions.llReleaseCamera();
  585. }
  586. public string llGetOwner()
  587. {
  588. return m_LSL_Functions.llGetOwner();
  589. }
  590. public void llInstantMessage(string user, string message)
  591. {
  592. m_LSL_Functions.llInstantMessage(user, message);
  593. }
  594. public void llEmail(string address, string subject, string message)
  595. {
  596. m_LSL_Functions.llEmail(address, subject, message);
  597. }
  598. public void llGetNextEmail(string address, string subject)
  599. {
  600. m_LSL_Functions.llGetNextEmail(address, subject);
  601. }
  602. public string llGetKey()
  603. {
  604. return m_LSL_Functions.llGetKey();
  605. }
  606. public void llSetBuoyancy(double buoyancy)
  607. {
  608. m_LSL_Functions.llSetBuoyancy(buoyancy);
  609. }
  610. public void llSetHoverHeight(double height, int water, double tau)
  611. {
  612. m_LSL_Functions.llSetHoverHeight(height, water, tau);
  613. }
  614. public void llStopHover()
  615. {
  616. m_LSL_Functions.llStopHover();
  617. }
  618. public void llMinEventDelay(double delay)
  619. {
  620. m_LSL_Functions.llMinEventDelay(delay);
  621. }
  622. public void llSoundPreload()
  623. {
  624. m_LSL_Functions.llSoundPreload();
  625. }
  626. public void llRotLookAt(rotation target, double strength, double damping)
  627. {
  628. m_LSL_Functions.llRotLookAt(target, strength, damping);
  629. }
  630. //
  631. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  632. //
  633. public int llStringLength(string str)
  634. {
  635. return m_LSL_Functions.llStringLength(str);
  636. }
  637. public void llStartAnimation(string anim)
  638. {
  639. m_LSL_Functions.llStartAnimation(anim);
  640. }
  641. public void llStopAnimation(string anim)
  642. {
  643. m_LSL_Functions.llStopAnimation(anim);
  644. }
  645. public void llPointAt()
  646. {
  647. m_LSL_Functions.llPointAt();
  648. }
  649. public void llStopPointAt()
  650. {
  651. m_LSL_Functions.llStopPointAt();
  652. }
  653. public void llTargetOmega(vector axis, double spinrate, double gain)
  654. {
  655. m_LSL_Functions.llTargetOmega(axis, spinrate, gain);
  656. }
  657. public int llGetStartParameter()
  658. {
  659. return m_LSL_Functions.llGetStartParameter();
  660. }
  661. public void llGodLikeRezObject(string inventory, vector pos)
  662. {
  663. m_LSL_Functions.llGodLikeRezObject(inventory, pos);
  664. }
  665. public void llRequestPermissions(string agent, int perm)
  666. {
  667. m_LSL_Functions.llRequestPermissions(agent, perm);
  668. }
  669. public string llGetPermissionsKey()
  670. {
  671. return m_LSL_Functions.llGetPermissionsKey();
  672. }
  673. public int llGetPermissions()
  674. {
  675. return m_LSL_Functions.llGetPermissions();
  676. }
  677. public int llGetLinkNumber()
  678. {
  679. return m_LSL_Functions.llGetLinkNumber();
  680. }
  681. public void llSetLinkColor(int linknumber, vector color, int face)
  682. {
  683. m_LSL_Functions.llSetLinkColor(linknumber, color, face);
  684. }
  685. public void llCreateLink(string target, int parent)
  686. {
  687. m_LSL_Functions.llCreateLink(target, parent);
  688. }
  689. public void llBreakLink(int linknum)
  690. {
  691. m_LSL_Functions.llBreakLink(linknum);
  692. }
  693. public void llBreakAllLinks()
  694. {
  695. m_LSL_Functions.llBreakAllLinks();
  696. }
  697. public string llGetLinkKey(int linknum)
  698. {
  699. return m_LSL_Functions.llGetLinkKey(linknum);
  700. }
  701. public void llGetLinkName(int linknum)
  702. {
  703. m_LSL_Functions.llGetLinkName(linknum);
  704. }
  705. public int llGetInventoryNumber(int type)
  706. {
  707. return m_LSL_Functions.llGetInventoryNumber(type);
  708. }
  709. public string llGetInventoryName(int type, int number)
  710. {
  711. return m_LSL_Functions.llGetInventoryName(type, number);
  712. }
  713. //
  714. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  715. //
  716. public void llSetScriptState(string name, int run)
  717. {
  718. m_LSL_Functions.llSetScriptState(name, run);
  719. }
  720. public double llGetEnergy()
  721. {
  722. return m_LSL_Functions.llGetEnergy();
  723. }
  724. public void llGiveInventory(string destination, string inventory)
  725. {
  726. m_LSL_Functions.llGiveInventory(destination, inventory);
  727. }
  728. public void llRemoveInventory(string item)
  729. {
  730. m_LSL_Functions.llRemoveInventory(item);
  731. }
  732. public void llSetText(string text, vector color, double alpha)
  733. {
  734. m_LSL_Functions.llSetText(text, color, alpha);
  735. }
  736. public double llWater(vector offset)
  737. {
  738. return m_LSL_Functions.llWater(offset);
  739. }
  740. public void llPassTouches(int pass)
  741. {
  742. m_LSL_Functions.llPassTouches(pass);
  743. }
  744. public string llRequestAgentData(string id, int data)
  745. {
  746. return m_LSL_Functions.llRequestAgentData(id, data);
  747. }
  748. public string llRequestInventoryData(string name)
  749. {
  750. return m_LSL_Functions.llRequestInventoryData(name);
  751. }
  752. public void llSetDamage(double damage)
  753. {
  754. m_LSL_Functions.llSetDamage(damage);
  755. }
  756. public void llTeleportAgentHome(string agent)
  757. {
  758. m_LSL_Functions.llTeleportAgentHome(agent);
  759. }
  760. public void llModifyLand(int action, int brush)
  761. {
  762. m_LSL_Functions.llModifyLand(action, brush);
  763. }
  764. public void llCollisionSound(string impact_sound, double impact_volume)
  765. {
  766. m_LSL_Functions.llCollisionSound(impact_sound, impact_volume);
  767. }
  768. public void llCollisionSprite(string impact_sprite)
  769. {
  770. m_LSL_Functions.llCollisionSprite(impact_sprite);
  771. }
  772. public string llGetAnimation(string id)
  773. {
  774. return m_LSL_Functions.llGetAnimation(id);
  775. }
  776. public void llResetScript()
  777. {
  778. m_LSL_Functions.llResetScript();
  779. }
  780. public void llMessageLinked(int linknum, int num, string str, string id)
  781. {
  782. m_LSL_Functions.llMessageLinked(linknum, num, str, id);
  783. }
  784. public void llPushObject(string target, vector impulse, vector ang_impulse, int local)
  785. {
  786. m_LSL_Functions.llPushObject(target, impulse, ang_impulse, local);
  787. }
  788. public void llPassCollisions(int pass)
  789. {
  790. m_LSL_Functions.llPassCollisions(pass);
  791. }
  792. public string llGetScriptName()
  793. {
  794. return m_LSL_Functions.llGetScriptName();
  795. }
  796. public int llGetNumberOfSides()
  797. {
  798. return m_LSL_Functions.llGetNumberOfSides();
  799. }
  800. //
  801. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  802. //
  803. public rotation llAxisAngle2Rot(vector axis, double angle)
  804. {
  805. return m_LSL_Functions.llAxisAngle2Rot(axis, angle);
  806. }
  807. public vector llRot2Axis(rotation rot)
  808. {
  809. return m_LSL_Functions.llRot2Axis(rot);
  810. }
  811. public void llRot2Angle()
  812. {
  813. m_LSL_Functions.llRot2Angle();
  814. }
  815. public double llAcos(double val)
  816. {
  817. return m_LSL_Functions.llAcos(val);
  818. }
  819. public double llAsin(double val)
  820. {
  821. return m_LSL_Functions.llAsin(val);
  822. }
  823. public double llAngleBetween(rotation a, rotation b)
  824. {
  825. return m_LSL_Functions.llAngleBetween(a, b);
  826. }
  827. public string llGetInventoryKey(string name)
  828. {
  829. return m_LSL_Functions.llGetInventoryKey(name);
  830. }
  831. public void llAllowInventoryDrop(int add)
  832. {
  833. m_LSL_Functions.llAllowInventoryDrop(add);
  834. }
  835. public vector llGetSunDirection()
  836. {
  837. return m_LSL_Functions.llGetSunDirection();
  838. }
  839. public vector llGetTextureOffset(int face)
  840. {
  841. return m_LSL_Functions.llGetTextureOffset(face);
  842. }
  843. public vector llGetTextureScale(int side)
  844. {
  845. return m_LSL_Functions.llGetTextureScale(side);
  846. }
  847. public double llGetTextureRot(int side)
  848. {
  849. return m_LSL_Functions.llGetTextureRot(side);
  850. }
  851. public int llSubStringIndex(string source, string pattern)
  852. {
  853. return m_LSL_Functions.llSubStringIndex(source, pattern);
  854. }
  855. public string llGetOwnerKey(string id)
  856. {
  857. return m_LSL_Functions.llGetOwnerKey(id);
  858. }
  859. public vector llGetCenterOfMass()
  860. {
  861. return m_LSL_Functions.llGetCenterOfMass();
  862. }
  863. public List<string> llListSort(List<string> src, int stride, int ascending)
  864. {
  865. return m_LSL_Functions.llListSort(src, stride, ascending);
  866. }
  867. public int llGetListLength(List<string> src)
  868. {
  869. return m_LSL_Functions.llGetListLength(src);
  870. }
  871. //
  872. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  873. //
  874. public int llList2Integer(List<string> src, int index)
  875. {
  876. return m_LSL_Functions.llList2Integer(src, index);
  877. }
  878. public double llList2double(List<string> src, int index)
  879. {
  880. return m_LSL_Functions.llList2double(src, index);
  881. }
  882. public string llList2String(List<string> src, int index)
  883. {
  884. return m_LSL_Functions.llList2String(src, index);
  885. }
  886. public string llList2Key(List<string> src, int index)
  887. {
  888. return m_LSL_Functions.llList2Key(src, index);
  889. }
  890. public vector llList2Vector(List<string> src, int index)
  891. {
  892. return m_LSL_Functions.llList2Vector(src, index);
  893. }
  894. public rotation llList2Rot(List<string> src, int index)
  895. {
  896. return m_LSL_Functions.llList2Rot(src, index);
  897. }
  898. public List<string> llList2List(List<string> src, int start, int end)
  899. {
  900. return m_LSL_Functions.llList2List(src, start, end);
  901. }
  902. public List<string> llDeleteSubList(List<string> src, int start, int end)
  903. {
  904. return m_LSL_Functions.llDeleteSubList(src, start, end);
  905. }
  906. public int llGetListEntryType(List<string> src, int index)
  907. {
  908. return m_LSL_Functions.llGetListEntryType(src, index);
  909. }
  910. public string llList2CSV(List<string> src)
  911. {
  912. return m_LSL_Functions.llList2CSV(src);
  913. }
  914. public List<string> llCSV2List(string src)
  915. {
  916. return m_LSL_Functions.llCSV2List(src);
  917. }
  918. public List<string> llListRandomize(List<string> src, int stride)
  919. {
  920. return m_LSL_Functions.llListRandomize(src, stride);
  921. }
  922. public List<string> llList2ListStrided(List<string> src, int start, int end, int stride)
  923. {
  924. return m_LSL_Functions.llList2ListStrided(src, start, end, stride);
  925. }
  926. public vector llGetRegionCorner()
  927. {
  928. return m_LSL_Functions.llGetRegionCorner();
  929. }
  930. public List<string> llListInsertList(List<string> dest, List<string> src, int start)
  931. {
  932. return m_LSL_Functions.llListInsertList(dest, src, start);
  933. }
  934. public int llListFindList(List<string> src, List<string> test)
  935. {
  936. return m_LSL_Functions.llListFindList(src, test);
  937. }
  938. public string llGetObjectName()
  939. {
  940. return m_LSL_Functions.llGetObjectName();
  941. }
  942. public void llSetObjectName(string name)
  943. {
  944. m_LSL_Functions.llSetObjectName(name);
  945. }
  946. public string llGetDate()
  947. {
  948. return m_LSL_Functions.llGetDate();
  949. }
  950. public int llEdgeOfWorld(vector pos, vector dir)
  951. {
  952. return m_LSL_Functions.llEdgeOfWorld(pos, dir);
  953. }
  954. public int llGetAgentInfo(string id)
  955. {
  956. return m_LSL_Functions.llGetAgentInfo(id);
  957. }
  958. //
  959. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  960. //
  961. public void llAdjustSoundVolume(double volume)
  962. {
  963. m_LSL_Functions.llAdjustSoundVolume(volume);
  964. }
  965. public void llSetSoundQueueing(int queue)
  966. {
  967. m_LSL_Functions.llSetSoundQueueing(queue);
  968. }
  969. public void llSetSoundRadius(double radius)
  970. {
  971. m_LSL_Functions.llSetSoundRadius(radius);
  972. }
  973. public string llKey2Name(string id)
  974. {
  975. return m_LSL_Functions.llKey2Name(id);
  976. }
  977. public void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate)
  978. {
  979. m_LSL_Functions.llSetTextureAnim(mode, face, sizex, sizey, start, length, rate);
  980. }
  981. public void llTriggerSoundLimited(string sound, double volume, vector top_north_east, vector bottom_south_west)
  982. {
  983. m_LSL_Functions.llTriggerSoundLimited(sound, volume, top_north_east, bottom_south_west);
  984. }
  985. public void llEjectFromLand(string pest)
  986. {
  987. m_LSL_Functions.llEjectFromLand(pest);
  988. }
  989. public void llParseString2List()
  990. {
  991. m_LSL_Functions.llParseString2List();
  992. }
  993. public int llOverMyLand(string id)
  994. {
  995. return m_LSL_Functions.llOverMyLand(id);
  996. }
  997. public string llGetLandOwnerAt(vector pos)
  998. {
  999. return m_LSL_Functions.llGetLandOwnerAt(pos);
  1000. }
  1001. public string llGetNotecardLine(string name, int line)
  1002. {
  1003. return m_LSL_Functions.llGetNotecardLine(name, line);
  1004. }
  1005. public vector llGetAgentSize(string id)
  1006. {
  1007. return m_LSL_Functions.llGetAgentSize(id);
  1008. }
  1009. public int llSameGroup(string agent)
  1010. {
  1011. return m_LSL_Functions.llSameGroup(agent);
  1012. }
  1013. public void llUnSit(string id)
  1014. {
  1015. m_LSL_Functions.llUnSit(id);
  1016. }
  1017. public vector llGroundSlope(vector offset)
  1018. {
  1019. return m_LSL_Functions.llGroundSlope(offset);
  1020. }
  1021. public vector llGroundNormal(vector offset)
  1022. {
  1023. return m_LSL_Functions.llGroundNormal(offset);
  1024. }
  1025. public vector llGroundContour(vector offset)
  1026. {
  1027. return m_LSL_Functions.llGroundContour(offset);
  1028. }
  1029. public int llGetAttached()
  1030. {
  1031. return m_LSL_Functions.llGetAttached();
  1032. }
  1033. public int llGetFreeMemory()
  1034. {
  1035. return m_LSL_Functions.llGetFreeMemory();
  1036. }
  1037. public string llGetRegionName()
  1038. {
  1039. return m_LSL_Functions.llGetRegionName();
  1040. }
  1041. public double llGetRegionTimeDilation()
  1042. {
  1043. return m_LSL_Functions.llGetRegionTimeDilation();
  1044. }
  1045. public double llGetRegionFPS()
  1046. {
  1047. return m_LSL_Functions.llGetRegionFPS();
  1048. }
  1049. //
  1050. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  1051. //
  1052. public void llParticleSystem(List<Object> rules)
  1053. {
  1054. m_LSL_Functions.llParticleSystem(rules);
  1055. }
  1056. public void llGroundRepel(double height, int water, double tau)
  1057. {
  1058. m_LSL_Functions.llGroundRepel(height, water, tau);
  1059. }
  1060. public void llGiveInventoryList()
  1061. {
  1062. m_LSL_Functions.llGiveInventoryList();
  1063. }
  1064. public void llSetVehicleType(int type)
  1065. {
  1066. m_LSL_Functions.llSetVehicleType(type);
  1067. }
  1068. public void llSetVehicledoubleParam(int param, double value)
  1069. {
  1070. m_LSL_Functions.llSetVehicledoubleParam(param, value);
  1071. }
  1072. public void llSetVehicleVectorParam(int param, vector vec)
  1073. {
  1074. m_LSL_Functions.llSetVehicleVectorParam(param, vec);
  1075. }
  1076. public void llSetVehicleRotationParam(int param, rotation rot)
  1077. {
  1078. m_LSL_Functions.llSetVehicleRotationParam(param, rot);
  1079. }
  1080. public void llSetVehicleFlags(int flags)
  1081. {
  1082. m_LSL_Functions.llSetVehicleFlags(flags);
  1083. }
  1084. public void llRemoveVehicleFlags(int flags)
  1085. {
  1086. m_LSL_Functions.llRemoveVehicleFlags(flags);
  1087. }
  1088. public void llSitTarget(vector offset, rotation rot)
  1089. {
  1090. m_LSL_Functions.llSitTarget(offset, rot);
  1091. }
  1092. public string llAvatarOnSitTarget()
  1093. {
  1094. return m_LSL_Functions.llAvatarOnSitTarget();
  1095. }
  1096. public void llAddToLandPassList(string avatar, double hours)
  1097. {
  1098. m_LSL_Functions.llAddToLandPassList(avatar, hours);
  1099. }
  1100. public void llSetTouchText(string text)
  1101. {
  1102. m_LSL_Functions.llSetTouchText(text);
  1103. }
  1104. public void llSetSitText(string text)
  1105. {
  1106. m_LSL_Functions.llSetSitText(text);
  1107. }
  1108. public void llSetCameraEyeOffset(vector offset)
  1109. {
  1110. m_LSL_Functions.llSetCameraEyeOffset(offset);
  1111. }
  1112. public void llSetCameraAtOffset(vector offset)
  1113. {
  1114. m_LSL_Functions.llSetCameraAtOffset(offset);
  1115. }
  1116. public void llDumpList2String()
  1117. {
  1118. m_LSL_Functions.llDumpList2String();
  1119. }
  1120. public void llScriptDanger(vector pos)
  1121. {
  1122. m_LSL_Functions.llScriptDanger(pos);
  1123. }
  1124. public void llDialog(string avatar, string message, List<string> buttons, int chat_channel)
  1125. {
  1126. m_LSL_Functions.llDialog(avatar, message, buttons, chat_channel);
  1127. }
  1128. public void llVolumeDetect(int detect)
  1129. {
  1130. m_LSL_Functions.llVolumeDetect(detect);
  1131. }
  1132. public void llResetOtherScript(string name)
  1133. {
  1134. m_LSL_Functions.llResetOtherScript(name);
  1135. }
  1136. public int llGetScriptState(string name)
  1137. {
  1138. return m_LSL_Functions.llGetScriptState(name);
  1139. }
  1140. public void llRemoteLoadScript()
  1141. {
  1142. m_LSL_Functions.llRemoteLoadScript();
  1143. }
  1144. public void llSetRemoteScriptAccessPin(int pin)
  1145. {
  1146. m_LSL_Functions.llSetRemoteScriptAccessPin(pin);
  1147. }
  1148. public void llRemoteLoadScriptPin(string target, string name, int pin, int running, int start_param)
  1149. {
  1150. m_LSL_Functions.llRemoteLoadScriptPin(target, name, pin, running, start_param);
  1151. }
  1152. //
  1153. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  1154. //
  1155. public void llOpenRemoteDataChannel()
  1156. {
  1157. m_LSL_Functions.llOpenRemoteDataChannel();
  1158. }
  1159. public string llSendRemoteData(string channel, string dest, int idata, string sdata)
  1160. {
  1161. return m_LSL_Functions.llSendRemoteData(channel, dest, idata, sdata);
  1162. }
  1163. public void llRemoteDataReply(string channel, string message_id, string sdata, int idata)
  1164. {
  1165. m_LSL_Functions.llRemoteDataReply(channel, message_id, sdata, idata);
  1166. }
  1167. public void llCloseRemoteDataChannel(string channel)
  1168. {
  1169. m_LSL_Functions.llCloseRemoteDataChannel(channel);
  1170. }
  1171. public string llMD5String(string src, int nonce)
  1172. {
  1173. return m_LSL_Functions.llMD5String(src, nonce);
  1174. }
  1175. public void llSetPrimitiveParams(List<string> rules)
  1176. {
  1177. m_LSL_Functions.llSetPrimitiveParams(rules);
  1178. }
  1179. public string llStringToBase64(string str)
  1180. {
  1181. return m_LSL_Functions.llStringToBase64(str);
  1182. }
  1183. public string llBase64ToString(string str)
  1184. {
  1185. return m_LSL_Functions.llBase64ToString(str);
  1186. }
  1187. public void llXorBase64Strings()
  1188. {
  1189. m_LSL_Functions.llXorBase64Strings();
  1190. }
  1191. public void llRemoteDataSetRegion()
  1192. {
  1193. m_LSL_Functions.llRemoteDataSetRegion();
  1194. }
  1195. public double llLog10(double val)
  1196. {
  1197. return m_LSL_Functions.llLog10(val);
  1198. }
  1199. public double llLog(double val)
  1200. {
  1201. return m_LSL_Functions.llLog(val);
  1202. }
  1203. public List<string> llGetAnimationList(string id)
  1204. {
  1205. return m_LSL_Functions.llGetAnimationList(id);
  1206. }
  1207. public void llSetParcelMusicURL(string url)
  1208. {
  1209. m_LSL_Functions.llSetParcelMusicURL(url);
  1210. }
  1211. public vector llGetRootPosition()
  1212. {
  1213. return m_LSL_Functions.llGetRootPosition();
  1214. }
  1215. public rotation llGetRootRotation()
  1216. {
  1217. return m_LSL_Functions.llGetRootRotation();
  1218. }
  1219. public string llGetObjectDesc()
  1220. {
  1221. return m_LSL_Functions.llGetObjectDesc();
  1222. }
  1223. public void llSetObjectDesc(string desc)
  1224. {
  1225. m_LSL_Functions.llSetObjectDesc(desc);
  1226. }
  1227. public string llGetCreator()
  1228. {
  1229. return m_LSL_Functions.llGetCreator();
  1230. }
  1231. public string llGetTimestamp()
  1232. {
  1233. return m_LSL_Functions.llGetTimestamp();
  1234. }
  1235. public void llSetLinkAlpha(int linknumber, double alpha, int face)
  1236. {
  1237. m_LSL_Functions.llSetLinkAlpha(linknumber, alpha, face);
  1238. }
  1239. public int llGetNumberOfPrims()
  1240. {
  1241. return m_LSL_Functions.llGetNumberOfPrims();
  1242. }
  1243. public string llGetNumberOfNotecardLines(string name)
  1244. {
  1245. return m_LSL_Functions.llGetNumberOfNotecardLines(name);
  1246. }
  1247. public List<string> llGetBoundingBox(string obj)
  1248. {
  1249. return m_LSL_Functions.llGetBoundingBox(obj);
  1250. }
  1251. public vector llGetGeometricCenter()
  1252. {
  1253. return m_LSL_Functions.llGetGeometricCenter();
  1254. }
  1255. public void llGetPrimitiveParams()
  1256. {
  1257. m_LSL_Functions.llGetPrimitiveParams();
  1258. }
  1259. //
  1260. // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
  1261. //
  1262. public string llIntegerToBase64(int number)
  1263. {
  1264. return m_LSL_Functions.llIntegerToBase64(number);
  1265. }
  1266. public int llBase64ToInteger(string str)
  1267. {
  1268. return m_LSL_Functions.llBase64ToInteger(str);
  1269. }
  1270. public double llGetGMTclock()
  1271. {
  1272. return m_LSL_Functions.llGetGMTclock();
  1273. }
  1274. public string llGetSimulatorHostname()
  1275. {
  1276. return m_LSL_Functions.llGetSimulatorHostname();
  1277. }
  1278. public void llSetLocalRot(rotation rot)
  1279. {
  1280. m_LSL_Functions.llSetLocalRot(rot);
  1281. }
  1282. public List<string> llParseStringKeepNulls(string src, List<string> seperators, List<string> spacers)
  1283. {
  1284. return m_LSL_Functions.llParseStringKeepNulls(src, seperators, spacers);
  1285. }
  1286. public void llRezAtRoot(string inventory, vector position, vector velocity, rotation rot, int param)
  1287. {
  1288. m_LSL_Functions.llRezAtRoot(inventory, position, velocity, rot, param);
  1289. }
  1290. public int llGetObjectPermMask(int mask)
  1291. {
  1292. return m_LSL_Functions.llGetObjectPermMask(mask);
  1293. }
  1294. public void llSetObjectPermMask(int mask, int value)
  1295. {
  1296. m_LSL_Functions.llSetObjectPermMask(mask, value);
  1297. }
  1298. public void llGetInventoryPermMask(string item, int mask)
  1299. {
  1300. m_LSL_Functions.llGetInventoryPermMask(item, mask);
  1301. }
  1302. public void llSetInventoryPermMask(string item, int mask, int value)
  1303. {
  1304. m_LSL_Functions.llSetInventoryPermMask(item, mask, value);
  1305. }
  1306. public string llGetInventoryCreator(string item)
  1307. {
  1308. return m_LSL_Functions.llGetInventoryCreator(item);
  1309. }
  1310. public void llOwnerSay(string msg)
  1311. {
  1312. m_LSL_Functions.llOwnerSay(msg);
  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. // Can not be public const?
  1771. public vector ZERO_VECTOR = new vector(0, 0, 0);
  1772. public rotation ZERO_ROTATION = new rotation(0, 0, 0, 0);
  1773. }
  1774. }