BuiltIn_Commands_BaseClass.cs 73 KB

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