BuiltIn_Commands_BaseClass.cs 73 KB

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