LSL_BaseClass.cs 66 KB

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