BuiltIn_Commands_BaseClass.cs 73 KB

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