LSL_BuiltIn_Commands_Interface.cs 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654
  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 OpenSim.Region.Environment.Interfaces;
  28. namespace OpenSim.Region.ScriptEngine.Common
  29. {
  30. public interface LSL_BuiltIn_Commands_Interface
  31. {
  32. // Interface used for loading and executing scripts
  33. string State { get; set; }
  34. ICommander GetCommander(string name);
  35. double llSin(double f);
  36. double llCos(double f);
  37. double llTan(double f);
  38. double llAtan2(double x, double y);
  39. double llSqrt(double f);
  40. double llPow(double fbase, double fexponent);
  41. LSL_Types.LSLInteger llAbs(int i);
  42. double llFabs(double f);
  43. double llFrand(double mag);
  44. LSL_Types.LSLInteger llFloor(double f);
  45. LSL_Types.LSLInteger llCeil(double f);
  46. LSL_Types.LSLInteger llRound(double f);
  47. double llVecMag(LSL_Types.Vector3 v);
  48. LSL_Types.Vector3 llVecNorm(LSL_Types.Vector3 v);
  49. double llVecDist(LSL_Types.Vector3 a, LSL_Types.Vector3 b);
  50. LSL_Types.Vector3 llRot2Euler(LSL_Types.Quaternion r);
  51. LSL_Types.Quaternion llEuler2Rot(LSL_Types.Vector3 v);
  52. LSL_Types.Quaternion llAxes2Rot(LSL_Types.Vector3 fwd, LSL_Types.Vector3 left, LSL_Types.Vector3 up);
  53. LSL_Types.Vector3 llRot2Fwd(LSL_Types.Quaternion r);
  54. LSL_Types.Vector3 llRot2Left(LSL_Types.Quaternion r);
  55. LSL_Types.Vector3 llRot2Up(LSL_Types.Quaternion r);
  56. LSL_Types.Quaternion llRotBetween(LSL_Types.Vector3 start, LSL_Types.Vector3 end);
  57. void llWhisper(int channelID, string text);
  58. //void llSay(int channelID, string text);
  59. void llSay(int channelID, string text);
  60. void llShout(int channelID, string text);
  61. void llRegionSay(int channelID, string text);
  62. LSL_Types.LSLInteger llListen(int channelID, string name, string ID, string msg);
  63. void llListenControl(int number, int active);
  64. void llListenRemove(int number);
  65. void llSensor(string name, string id, int type, double range, double arc);
  66. void llSensorRepeat(string name, string id, int type, double range, double arc, double rate);
  67. void llSensorRemove();
  68. string llDetectedName(int number);
  69. string llDetectedKey(int number);
  70. string llDetectedOwner(int number);
  71. LSL_Types.LSLInteger llDetectedType(int number);
  72. LSL_Types.Vector3 llDetectedPos(int number);
  73. LSL_Types.Vector3 llDetectedVel(int number);
  74. LSL_Types.Vector3 llDetectedGrab(int number);
  75. LSL_Types.Quaternion llDetectedRot(int number);
  76. LSL_Types.LSLInteger llDetectedGroup(int number);
  77. LSL_Types.LSLInteger llDetectedLinkNumber(int number);
  78. void llDie();
  79. double llGround(LSL_Types.Vector3 offset);
  80. double llCloud(LSL_Types.Vector3 offset);
  81. LSL_Types.Vector3 llWind(LSL_Types.Vector3 offset);
  82. void llSetStatus(int status, int value);
  83. LSL_Types.LSLInteger llGetStatus(int status);
  84. void llSetScale(LSL_Types.Vector3 scale);
  85. LSL_Types.Vector3 llGetScale();
  86. void llSetColor(LSL_Types.Vector3 color, int face);
  87. double llGetAlpha(int face);
  88. void llSetAlpha(double alpha, int face);
  89. LSL_Types.Vector3 llGetColor(int face);
  90. void llSetTexture(string texture, int face);
  91. void llScaleTexture(double u, double v, int face);
  92. void llOffsetTexture(double u, double v, int face);
  93. void llRotateTexture(double rotation, int face);
  94. string llGetTexture(int face);
  95. void llSetPos(LSL_Types.Vector3 pos);
  96. //wiki: vector llGetPos()
  97. LSL_Types.Vector3 llGetPos();
  98. //wiki: vector llGetLocalPos()
  99. LSL_Types.Vector3 llGetLocalPos();
  100. //wiki: llSetRot(rotation rot)
  101. void llSetRot(LSL_Types.Quaternion rot);
  102. //wiki: rotation llGetRot()
  103. LSL_Types.Quaternion llGetRot();
  104. //wiki: rotation llGetLocalRot()
  105. LSL_Types.Quaternion llGetLocalRot();
  106. //wiki: llSetForce(vector force, integer local)
  107. void llSetForce(LSL_Types.Vector3 force, int local);
  108. //wiki: vector llGetForce()
  109. LSL_Types.Vector3 llGetForce();
  110. //wiki: integer llTarget(vector position, double range)
  111. LSL_Types.LSLInteger llTarget(LSL_Types.Vector3 position, double range);
  112. //wiki: llTargetRemove(integer number)
  113. void llTargetRemove(int number);
  114. //wiki: integer llRotTarget(rotation rot, double error)
  115. LSL_Types.LSLInteger llRotTarget(LSL_Types.Quaternion rot, double error);
  116. //wiki: integer llRotTargetRemove(integer number)
  117. void llRotTargetRemove(int number);
  118. //wiki: llMoveToTarget(vector target, double tau)
  119. void llMoveToTarget(LSL_Types.Vector3 target, double tau);
  120. //wiki: llStopMoveToTarget()
  121. void llStopMoveToTarget();
  122. //wiki: llApplyImpulse(vector force, integer local)
  123. void llApplyImpulse(LSL_Types.Vector3 force, int local);
  124. //wiki: llapplyRotationalImpulse(vector force, integer local)
  125. void llApplyRotationalImpulse(LSL_Types.Vector3 force, int local);
  126. //wiki: llSetTorque(vector torque, integer local)
  127. void llSetTorque(LSL_Types.Vector3 torque, int local);
  128. //wiki: vector llGetTorque()
  129. LSL_Types.Vector3 llGetTorque();
  130. //wiki: llSeForceAndTorque(vector force, vector torque, integer local)
  131. void llSetForceAndTorque(LSL_Types.Vector3 force, LSL_Types.Vector3 torque, int local);
  132. //wiki: vector llGetVel()
  133. LSL_Types.Vector3 llGetVel();
  134. //wiki: vector llGetAccel()
  135. LSL_Types.Vector3 llGetAccel();
  136. //wiki: vector llGetOmega()
  137. LSL_Types.Vector3 llGetOmega();
  138. //wiki: double llGetTimeOfDay()
  139. double llGetTimeOfDay();
  140. //wiki: double llGetWallclock()
  141. double llGetWallclock();
  142. //wiki: double llGetTime()
  143. double llGetTime();
  144. //wiki: llResetTime()
  145. void llResetTime();
  146. //wiki: double llGetAndResetTime()
  147. double llGetAndResetTime();
  148. //wiki (deprecated) llSound(string sound, double volume, integer queue, integer loop)
  149. void llSound();
  150. //wiki: llPlaySound(string sound, double volume)
  151. void llPlaySound(string sound, double volume);
  152. //wiki: llLoopSound(string sound, double volume)
  153. void llLoopSound(string sound, double volume);
  154. //wiki: llLoopSoundMaster(string sound, double volume)
  155. void llLoopSoundMaster(string sound, double volume);
  156. //wiki: llLoopSoundSlave(string sound, double volume)
  157. void llLoopSoundSlave(string sound, double volume);
  158. //wiki llPlaySoundSlave(string sound, double volume)
  159. void llPlaySoundSlave(string sound, double volume);
  160. //wiki: llTriggerSound(string sound, double volume)
  161. void llTriggerSound(string sound, double volume);
  162. //wiki: llStopSound()
  163. void llStopSound();
  164. //wiki: llPreloadSound(string sound)
  165. void llPreloadSound(string sound);
  166. //wiki: string llGetSubString(string src, integer start, integer end)
  167. string llGetSubString(string src, int start, int end);
  168. //wiki: string llDeleteSubString(string src, integer start, integer end)
  169. string llDeleteSubString(string src, int start, int end);
  170. //wiki string llInsertString(string dst, integer position, string src)
  171. string llInsertString(string dst, int position, string src);
  172. //wiki: string llToUpper(string source)
  173. string llToUpper(string source);
  174. //wiki: string llToLower(string source)
  175. string llToLower(string source);
  176. //wiki: integer llGiveMoney(key destination, integer amount)
  177. LSL_Types.LSLInteger llGiveMoney(string destination, int amount);
  178. //wiki: (deprecated)
  179. void llMakeExplosion();
  180. //wiki: (deprecated)
  181. void llMakeFountain();
  182. //wiki: (deprecated)
  183. void llMakeSmoke();
  184. //wiki: (deprecated)
  185. void llMakeFire();
  186. //wiki: llRezObject(string inventory, vector pos, vector rel, rotation rot, integer param)
  187. void llRezObject(string inventory, LSL_Types.Vector3 pos, LSL_Types.Vector3 vel, LSL_Types.Quaternion rot, int param);
  188. //wiki: llLookAt(vector target, double strength, double damping)
  189. void llLookAt(LSL_Types.Vector3 target, double strength, double damping);
  190. //wiki: llStopLookAt()
  191. void llStopLookAt();
  192. //wiki: llSetTimerEvent(double sec)
  193. void llSetTimerEvent(double sec);
  194. //wiki: llSleep(double sec)
  195. void llSleep(double sec);
  196. //wiki: double llGetMass()
  197. double llGetMass();
  198. //wiki: llCollisionFilter(string name, key id, integer accept)
  199. void llCollisionFilter(string name, string id, int accept);
  200. //wiki: llTakeControls(integer controls, integer accept, integer pass_on)
  201. void llTakeControls(int controls, int accept, int pass_on);
  202. //wiki: llReleaseControls()
  203. void llReleaseControls();
  204. //wiki: llAttachToAvatar(integer attachment)
  205. void llAttachToAvatar(int attachment);
  206. //wiki: llDetachFromAvatar()
  207. void llDetachFromAvatar();
  208. //wiki: (deprecated) llTakeCamera(key avatar)
  209. void llTakeCamera(string avatar);
  210. //wiki: (deprecated) llReleaseCamera(key avatar)
  211. void llReleaseCamera(string avatar);
  212. //wiki: key llGetOwner()
  213. string llGetOwner();
  214. //wiki: llInstantMessage(key user, string message)
  215. void llInstantMessage(string user, string message);
  216. //wiki: llEmail(string address, string subject, string message)
  217. void llEmail(string address, string subject, string message);
  218. //wiki: llGetNextEmail(string address, string subject)
  219. void llGetNextEmail(string address, string subject);
  220. //wiki: key llGetKey()
  221. string llGetKey();
  222. //wiki: llSetBuoyancy(double buoyancy)
  223. void llSetBuoyancy(double buoyancy);
  224. //wiki: llSetHoverHeight(double height, integer water, double tau)
  225. void llSetHoverHeight(double height, int water, double tau);
  226. //wiki: llStopHover
  227. void llStopHover();
  228. //wiki: llMinEventDelay(double delay)
  229. void llMinEventDelay(double delay);
  230. //wiki: (deprecated) llSoundPreload()
  231. void llSoundPreload();
  232. //wiki: llRotLookAt(rotation target, double strength, double damping)
  233. void llRotLookAt(LSL_Types.Quaternion target, double strength, double damping);
  234. //wiki: integer llStringLength(string str)
  235. LSL_Types.LSLInteger llStringLength(string str);
  236. //wiki: llStartAnimation(string anim)
  237. void llStartAnimation(string anim);
  238. //wiki: llStopAnimation(string anim)
  239. void llStopAnimation(string anim);
  240. //wiki: (deprecated) llPointAt
  241. void llPointAt();
  242. //wiki: (deprecated) llStopPointAt
  243. void llStopPointAt();
  244. //wiki: llTargetOmega(vector axis, double spinrate, double gain)
  245. void llTargetOmega(LSL_Types.Vector3 axis, double spinrate, double gain);
  246. //wiki: integer llGetStartParameter()
  247. LSL_Types.LSLInteger llGetStartParameter();
  248. //wiki: llGodLikeRezObject(key inventory, vector pos)
  249. void llGodLikeRezObject(string inventory, LSL_Types.Vector3 pos);
  250. //wiki: llRequestPermissions(key agent, integer perm)
  251. void llRequestPermissions(string agent, int perm);
  252. //wiki: key llGetPermissionsKey()
  253. string llGetPermissionsKey();
  254. //wiki: integer llGetPermissions()
  255. LSL_Types.LSLInteger llGetPermissions();
  256. //wiki integer llGetLinkNumber()
  257. LSL_Types.LSLInteger llGetLinkNumber();
  258. //wiki: llSetLinkColor(integer linknumber, vector color, integer face)
  259. void llSetLinkColor(int linknumber, LSL_Types.Vector3 color, int face);
  260. //wiki: llCreateLink(key target, integer parent)
  261. void llCreateLink(string target, int parent);
  262. //wiki: llBreakLink(integer linknum)
  263. void llBreakLink(int linknum);
  264. //wiki: llBreakAllLinks()
  265. void llBreakAllLinks();
  266. //wiki: key llGetLinkKey(integer linknum)
  267. string llGetLinkKey(int linknum);
  268. //wiki: llGetLinkName(integer linknum)
  269. string llGetLinkName(int linknum);
  270. //wiki: integer llGetInventoryNumber(integer type)
  271. LSL_Types.LSLInteger llGetInventoryNumber(int type);
  272. //wiki: string llGetInventoryName(integer type, integer number)
  273. string llGetInventoryName(int type, int number);
  274. //wiki: llSetScriptState(string name, integer run)
  275. void llSetScriptState(string name, int run);
  276. //wiki: double llGetEnergy()
  277. double llGetEnergy();
  278. //wiki: llGiveInventory(key destination, string inventory)
  279. void llGiveInventory(string destination, string inventory);
  280. //wiki: llRemoveInventory(string item)
  281. void llRemoveInventory(string item);
  282. //wiki: llSetText(string text, vector color, double alpha)
  283. void llSetText(string text, LSL_Types.Vector3 color, double alpha);
  284. //wiki: double llWater(vector offset)
  285. double llWater(LSL_Types.Vector3 offset);
  286. //wiki: llPassTouches(integer pass)
  287. void llPassTouches(int pass);
  288. //wiki: key llRequestAgentData(key id, integer data)
  289. string llRequestAgentData(string id, int data);
  290. //wiki: key llRequestInventoryData(string name)
  291. string llRequestInventoryData(string name);
  292. //wiki: llSetDamage(double damage)
  293. void llSetDamage(double damage);
  294. //wiki: llTeleportAgentHome(key agent)
  295. void llTeleportAgentHome(string agent);
  296. //wiki: llModifyLand(integer action, integer brush)
  297. void llModifyLand(int action, int brush);
  298. //wiki: llCollisionSound(string impact_sound, double impact_volume)
  299. void llCollisionSound(string impact_sound, double impact_volume);
  300. //wiki: llCollisionSprite(string impact_sprite)
  301. void llCollisionSprite(string impact_sprite);
  302. //wiki: string llGetAnimation(key id)
  303. string llGetAnimation(string id);
  304. //wiki: llResetScript()
  305. void llResetScript();
  306. //wiki: llMessageLinked(integer linknum, integer num, string str, key id)
  307. void llMessageLinked(int linknum, int num, string str, string id);
  308. //wiki: llPushObject(key target, vector impulse, vector ang_impulse, integer local)
  309. void llPushObject(string target, LSL_Types.Vector3 impulse, LSL_Types.Vector3 ang_impulse, int local);
  310. //wiki: llPassCollisions(integer pass)
  311. void llPassCollisions(int pass);
  312. //wiki: string llGetScriptName()
  313. string llGetScriptName();
  314. //wiki: integer llGetNumberOfSides()
  315. LSL_Types.LSLInteger llGetNumberOfSides();
  316. //wiki: rotation llAxisAngle2Rot(vector axis, double angle)
  317. LSL_Types.Quaternion llAxisAngle2Rot(LSL_Types.Vector3 axis, double angle);
  318. //wiki: vector llRot2Axis(rotation rot)
  319. LSL_Types.Vector3 llRot2Axis(LSL_Types.Quaternion rot);
  320. //wiki: double llRot2Angle(rotation rot);
  321. double llRot2Angle(LSL_Types.Quaternion rot);
  322. //wiki: double llAcos(double val)
  323. double llAcos(double val);
  324. //wiki: double llAsin(double val)
  325. double llAsin(double val);
  326. //wiki: double llAngleBetween(rotation a, rotation b)
  327. double llAngleBetween(LSL_Types.Quaternion a, LSL_Types.Quaternion b);
  328. //wiki: string llGetInventoryKey(string name)
  329. string llGetInventoryKey(string name);
  330. //wiki: llAllowInventoryDrop(integer add)
  331. void llAllowInventoryDrop(int add);
  332. //wiki: vector llGetSunDirection()
  333. LSL_Types.Vector3 llGetSunDirection();
  334. //wiki: vector llGetTextureOffset(integer face)
  335. LSL_Types.Vector3 llGetTextureOffset(int face);
  336. //wiki: vector llGetTextureScale(integer side)
  337. LSL_Types.Vector3 llGetTextureScale(int side);
  338. //wiki: double llGetTextureRot(integer side)
  339. double llGetTextureRot(int side);
  340. //wiki: integer llSubStringIndex(string source, string pattern)
  341. LSL_Types.LSLInteger llSubStringIndex(string source, string pattern);
  342. //wiki: key llGetOwnerKey(key id)
  343. string llGetOwnerKey(string id);
  344. //wiki: vector llGetCenterOfMass()
  345. LSL_Types.Vector3 llGetCenterOfMass();
  346. //wiki: list llListSort(list src, integer stride, integer ascending)
  347. LSL_Types.list llListSort(LSL_Types.list src, int stride, int ascending);
  348. //integer llGetListLength(list src)
  349. LSL_Types.LSLInteger llGetListLength(LSL_Types.list src);
  350. //wiki: integer llList2Integer(list src, integer index)
  351. LSL_Types.LSLInteger llList2Integer(LSL_Types.list src, int index);
  352. //wiki: double llList2double(list src, integer index)
  353. double llList2Float(LSL_Types.list src, int index);
  354. double osList2Double(LSL_Types.list src, int index);
  355. //wiki: string llList2String(list src, integer index)
  356. string llList2String(LSL_Types.list src, int index);
  357. //wiki: key llList2Key(list src, integer index)
  358. string llList2Key(LSL_Types.list src, int index);
  359. //wiki: vector llList2Vector(list src, integer index)
  360. LSL_Types.Vector3 llList2Vector(LSL_Types.list src, int index);
  361. //wiki rotation llList2Rot(list src, integer index)
  362. LSL_Types.Quaternion llList2Rot(LSL_Types.list src, int index);
  363. //wiki: list llList2List(list src, integer start, integer end)
  364. LSL_Types.list llList2List(LSL_Types.list src, int start, int end);
  365. //wiki: llDeleteSubList(list src, integer start, integer end)
  366. LSL_Types.list llDeleteSubList(LSL_Types.list src, int start, int end);
  367. //wiki: integer llGetListEntryType(list src, integer index)
  368. LSL_Types.LSLInteger llGetListEntryType(LSL_Types.list src, int index);
  369. //wiki: string llList2CSV(list src)
  370. string llList2CSV(LSL_Types.list src);
  371. //wiki: list llCSV2List(string src)
  372. LSL_Types.list llCSV2List(string src);
  373. //wiki: list llListRandomize(list src, integer stride)
  374. LSL_Types.list llListRandomize(LSL_Types.list src, int stride);
  375. //wiki: list llList2ListStrided(list src, integer start, integer end, integer stride)
  376. LSL_Types.list llList2ListStrided(LSL_Types.list src, int start, int end, int stride);
  377. //wiki: vector llGetRegionCorner()
  378. LSL_Types.Vector3 llGetRegionCorner();
  379. //wiki: list llListInsertList(list dest, list src, integer start)
  380. LSL_Types.list llListInsertList(LSL_Types.list dest, LSL_Types.list src, int start);
  381. //wiki: integer llListFindList(list src, list test)
  382. LSL_Types.LSLInteger llListFindList(LSL_Types.list src, LSL_Types.list test);
  383. //wiki: string llGetObjectName()
  384. string llGetObjectName();
  385. //wiki: llSetObjectName(string name)
  386. void llSetObjectName(string name);
  387. //wiki: string llGetDate()
  388. string llGetDate();
  389. //wiki: integer llEdgeOfWorld(vector pos, vector dir)
  390. LSL_Types.LSLInteger llEdgeOfWorld(LSL_Types.Vector3 pos, LSL_Types.Vector3 dir);
  391. //wiki: integer llGetAgentInfo(key id)
  392. LSL_Types.LSLInteger llGetAgentInfo(string id);
  393. //wiki: llAdjustSoundVolume(double volume)
  394. void llAdjustSoundVolume(double volume);
  395. //wiki: llSetSoundQueueing(integer queue)
  396. void llSetSoundQueueing(int queue);
  397. //wiki: llSetSoundRadius(double radius)
  398. void llSetSoundRadius(double radius);
  399. //wiki: string llKey2Name(key id)
  400. string llKey2Name(string id);
  401. //wiki: llSetTextureAnim(integer mode, integer face, integer sizex, integer sizey, double start, double length, double rate)
  402. void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate);
  403. //wiki: llTriggerSoundLimited(string sound, double volume, vector top_north_east, vector bottom_south_west)
  404. void llTriggerSoundLimited(string sound, double volume, LSL_Types.Vector3 top_north_east,
  405. LSL_Types.Vector3 bottom_south_west);
  406. //wiki: llEjectFromLand(key pest)
  407. void llEjectFromLand(string pest);
  408. LSL_Types.list llParseString2List(string str, LSL_Types.list separators, LSL_Types.list spacers);
  409. //wiki: integer llOverMyLand(key id)
  410. LSL_Types.LSLInteger llOverMyLand(string id);
  411. //wiki: key llGetLandOwnerAt(vector pos)
  412. string llGetLandOwnerAt(LSL_Types.Vector3 pos);
  413. //wiki: key llGetNotecardLine(string name, integer line)
  414. string llGetNotecardLine(string name, int line);
  415. //wiki: vector llGetAgentSize(key id)
  416. LSL_Types.Vector3 llGetAgentSize(string id);
  417. //wiki: integer llSameGroup(key agent)
  418. LSL_Types.LSLInteger llSameGroup(string agent);
  419. //wiki: llUnSit(key id)
  420. void llUnSit(string id);
  421. //wiki: vector llGroundSlope(vector offset)
  422. LSL_Types.Vector3 llGroundSlope(LSL_Types.Vector3 offset);
  423. //wiki: vector llGroundNormal(vector offset)
  424. LSL_Types.Vector3 llGroundNormal(LSL_Types.Vector3 offset);
  425. //wiki: vector llGroundContour(vector offset)
  426. LSL_Types.Vector3 llGroundContour(LSL_Types.Vector3 offset);
  427. //wiki: integer llGetAttached()
  428. LSL_Types.LSLInteger llGetAttached();
  429. //wiki: integer llGetFreeMemory()
  430. LSL_Types.LSLInteger llGetFreeMemory();
  431. //wiki: string llGetRegionName()
  432. string llGetRegionName();
  433. //wiki: double llGetRegionTimeDilation()
  434. double llGetRegionTimeDilation();
  435. //wiki: double llGetRegionFPS()
  436. double llGetRegionFPS();
  437. //wiki: llParticleSystem(List<Object> rules
  438. void llParticleSystem(LSL_Types.list rules);
  439. //wiki: llGroundRepel(double height, integer water, double tau)
  440. void llGroundRepel(double height, int water, double tau);
  441. //wiki: llGiveInventoryList(string destination, string category, LSL_Types.list inventory)
  442. void llGiveInventoryList(string destination, string category, LSL_Types.list inventory);
  443. //wiki: llSetVehicleType(integer type)
  444. void llSetVehicleType(int type);
  445. //wiki: llSetVehicledoubleParam(integer param, double value)
  446. void llSetVehicledoubleParam(int param, double value);
  447. // wiki: llSetVehicleFloatParam(integer param, float value)
  448. void llSetVehicleFloatParam(int param, float value);
  449. //wiki: llSetVehicleVectorParam(integer param, vector vec)
  450. void llSetVehicleVectorParam(int param, LSL_Types.Vector3 vec);
  451. //wiki: llSetVehicleRotationParam(integer param, rotation rot)
  452. void llSetVehicleRotationParam(int param, LSL_Types.Quaternion rot);
  453. //wiki: llSetVehicleFlags(integer flags)
  454. void llSetVehicleFlags(int flags);
  455. //wiki: llRemoveVehicleFlags(integer flags)
  456. void llRemoveVehicleFlags(int flags);
  457. //wiki: llSitTarget(vector offset, rotation rot)
  458. void llSitTarget(LSL_Types.Vector3 offset, LSL_Types.Quaternion rot);
  459. //wiki key llAvatarOnSitTarget()
  460. string llAvatarOnSitTarget();
  461. //wiki: llAddToLandPassList(key avatar, double hours)
  462. void llAddToLandPassList(string avatar, double hours);
  463. //wiki: llSetTouchText(string text)
  464. void llSetTouchText(string text);
  465. //wiki: llSetSitText(string text)
  466. void llSetSitText(string text);
  467. //wiki: llSetCameraEyeOffset(vector offset)
  468. void llSetCameraEyeOffset(LSL_Types.Vector3 offset);
  469. //wiki: llSeteCameraAtOffset(vector offset)
  470. void llSetCameraAtOffset(LSL_Types.Vector3 offset);
  471. //
  472. string llDumpList2String(LSL_Types.list src, string seperator);
  473. //wiki: integer llScriptDanger(vector pos)
  474. LSL_Types.LSLInteger llScriptDanger(LSL_Types.Vector3 pos);
  475. //wiki: llDialog(key avatar, string message, list buttons, integer chat_channel)
  476. void llDialog(string avatar, string message, LSL_Types.list buttons, int chat_channel);
  477. //wiki: llVolumeDetect(integer detect)
  478. void llVolumeDetect(int detect);
  479. //wiki: llResetOtherScript(string name)
  480. void llResetOtherScript(string name);
  481. //wiki: integer llGetScriptState(string name)
  482. LSL_Types.LSLInteger llGetScriptState(string name);
  483. //wiki: (deprecated)
  484. void llRemoteLoadScript();
  485. //wiki: llSetRemoteScriptAccessPin(integer pin)
  486. void llSetRemoteScriptAccessPin(int pin);
  487. //wiki: llRemoteLoadScriptPin(key target, string name, integer pin, integer running, integer start_param)
  488. void llRemoteLoadScriptPin(string target, string name, int pin, int running, int start_param);
  489. //wiki: llOpenRemoteDataChannel()
  490. void llOpenRemoteDataChannel();
  491. //wiki: key llSendRemoteData(key channel, string dest, integer idata, string sdata)
  492. string llSendRemoteData(string channel, string dest, int idata, string sdata);
  493. //wiki: llRemoteDataReply(key channel, key message_id, string sdata, integer idata)
  494. void llRemoteDataReply(string channel, string message_id, string sdata, int idata);
  495. //wiki: llCloseRemoteDataChannel(key channel)
  496. void llCloseRemoteDataChannel(string channel);
  497. //wiki: string llMD5String(string src, integer nonce)
  498. string llMD5String(string src, int nonce);
  499. //wiki: llSetPrimitiveParams(list rules)
  500. void llSetPrimitiveParams(LSL_Types.list rules);
  501. //wiki: llSetLinkPrimitiveParams(integer linknumber, list rules)
  502. void llSetLinkPrimitiveParams(int linknumber, LSL_Types.list rules);
  503. //wiki: string llStringToBase64(string str)
  504. string llStringToBase64(string str);
  505. //wiki: string llBase64ToString(string str)
  506. string llBase64ToString(string str);
  507. //wiki: (deprecated)
  508. void llXorBase64Strings();
  509. //wiki: llRemoteDataSetRegion()
  510. void llRemoteDataSetRegion();
  511. //wiki: double llLog10(double val)
  512. double llLog10(double val);
  513. //wiki: double llLog(double val)
  514. double llLog(double val);
  515. //wiki: list llGetAnimationList(key id)
  516. LSL_Types.list llGetAnimationList(string id);
  517. //wiki: llSetParcelMusicURL(string url)
  518. void llSetParcelMusicURL(string url);
  519. //wiki: vector llGetRootPosition()
  520. LSL_Types.Vector3 llGetRootPosition();
  521. //wiki: rotation llGetRootRotation()
  522. LSL_Types.Quaternion llGetRootRotation();
  523. //wiki: string llGetObjectDesc()
  524. string llGetObjectDesc();
  525. //wiki: llSetObjectDesc(string desc)
  526. void llSetObjectDesc(string desc);
  527. //wiki: key llGetCreator()
  528. string llGetCreator();
  529. //wiki: string llGetTimestamp()
  530. string llGetTimestamp();
  531. //wiki: llSetLinkAlpha(integer linknumber, double alpha, integer face)
  532. void llSetLinkAlpha(int linknumber, double alpha, int face);
  533. //wiki: integer llGetNumberOfPrims()
  534. LSL_Types.LSLInteger llGetNumberOfPrims();
  535. //wiki: key llGetNumberOfNotecardLines(string name)
  536. int llGetNumberOfNotecardLines(string name);
  537. //wiki: list llGetBoundingBox(key object)
  538. LSL_Types.list llGetBoundingBox(string obj);
  539. //wiki: vector llGetGeometricCenter()
  540. LSL_Types.Vector3 llGetGeometricCenter();
  541. //wiki: list llGetPrimitiveParams(list rules)
  542. LSL_Types.list llGetPrimitiveParams(LSL_Types.list rules);
  543. //wiki: string llIntegerToBase64(integer number)
  544. string llIntegerToBase64(int number);
  545. //wiki integer llBase64ToInteger(string str)
  546. LSL_Types.LSLInteger llBase64ToInteger(string str);
  547. //wiki: double llGetGMTclock()
  548. double llGetGMTclock();
  549. //wiki: string llGetSimulatorHostname()
  550. string llGetSimulatorHostname();
  551. //llSetLocalRot(rotation rot)
  552. void llSetLocalRot(LSL_Types.Quaternion rot);
  553. //wiki: list llParseStringKeepNulls(string src, list separators, list spacers)
  554. LSL_Types.list llParseStringKeepNulls(string src, LSL_Types.list seperators, LSL_Types.list spacers);
  555. //wiki: llRezAtRoot(string inventory, vector position, vector velocity, rotation rot, integer param)
  556. void llRezAtRoot(string inventory, LSL_Types.Vector3 position, LSL_Types.Vector3 velocity,
  557. LSL_Types.Quaternion rot, int param);
  558. //wiki: integer llGetObjectPermMask(integer mask)
  559. LSL_Types.LSLInteger llGetObjectPermMask(int mask);
  560. //wiki: llSetObjectPermMask(integer mask, integer value)
  561. void llSetObjectPermMask(int mask, int value);
  562. //wiki integer llGetInventoryPermMask(string item, integer mask)
  563. LSL_Types.LSLInteger llGetInventoryPermMask(string item, int mask);
  564. //wiki: llSetInventoryPermMask(string item, integer mask, integer value)
  565. void llSetInventoryPermMask(string item, int mask, int value);
  566. //wiki: key llGetInventoryCreator(string item)
  567. string llGetInventoryCreator(string item);
  568. //wiki: llOwnerSay(string msg)
  569. void llOwnerSay(string msg);
  570. //wiki: key llRequestSimulatorData(string simulator, integer data)
  571. string llRequestSimulatorData(string simulator, int data);
  572. //wiki: llForceMouselook(integer mouselook)
  573. void llForceMouselook(int mouselook);
  574. //wiki: double llGetObjectMass(key id)
  575. double llGetObjectMass(string id);
  576. LSL_Types.list llListReplaceList(LSL_Types.list dest, LSL_Types.list src, int start, int end);
  577. //wiki: llLoadURL(key avatar_id, string message, string url)
  578. void llLoadURL(string avatar_id, string message, string url);
  579. //wiki: llParcelMediaCommandList(list commandList)
  580. void llParcelMediaCommandList(LSL_Types.list commandList);
  581. void llParcelMediaQuery();
  582. //wiki integer llModPow(integer a, integer b, integer c)
  583. LSL_Types.LSLInteger llModPow(int a, int b, int c);
  584. //wiki: integer llGetInventoryType(string name)
  585. LSL_Types.LSLInteger llGetInventoryType(string name);
  586. //wiki: llSetPayPrice(integer price, list quick_pay_buttons)
  587. void llSetPayPrice(int price, LSL_Types.list quick_pay_buttons);
  588. //wiki: vector llGetCameraPos()
  589. LSL_Types.Vector3 llGetCameraPos();
  590. //wiki rotation llGetCameraRot()
  591. LSL_Types.Quaternion llGetCameraRot();
  592. //wiki: (deprecated)
  593. void llSetPrimURL();
  594. //wiki: (deprecated)
  595. void llRefreshPrimURL();
  596. //wiki: string llEscapeURL(string url)
  597. string llEscapeURL(string url);
  598. //wiki: string llUnescapeURL(string url)
  599. string llUnescapeURL(string url);
  600. //wiki: llMapDestination(string simname, vector pos, vector look_at)
  601. void llMapDestination(string simname, LSL_Types.Vector3 pos, LSL_Types.Vector3 look_at);
  602. //wiki: llAddToLandBanList(key avatar, double hours)
  603. void llAddToLandBanList(string avatar, double hours);
  604. //wiki: llRemoveFromLandPassList(key avatar)
  605. void llRemoveFromLandPassList(string avatar);
  606. //wiki: llRemoveFromLandBanList(key avatar)
  607. void llRemoveFromLandBanList(string avatar);
  608. //wiki: llSetCameraParams(list rules)
  609. void llSetCameraParams(LSL_Types.list rules);
  610. //wiki: llClearCameraParams()
  611. void llClearCameraParams();
  612. //wiki: double llListStatistics(integer operation, list src)
  613. double llListStatistics(int operation, LSL_Types.list src);
  614. //wiki: integer llGetUnixTime()
  615. LSL_Types.LSLInteger llGetUnixTime();
  616. //wiki: integer llGetParcelFlags(vector pos)
  617. LSL_Types.LSLInteger llGetParcelFlags(LSL_Types.Vector3 pos);
  618. //wiki: integer llGetRegionFlags()
  619. LSL_Types.LSLInteger llGetRegionFlags();
  620. //wiki: string llXorBase64StringsCorrect(string str1, string str2)
  621. string llXorBase64StringsCorrect(string str1, string str2);
  622. string llHTTPRequest(string url, LSL_Types.list parameters, string body);
  623. //wiki: llResetLandBanList()
  624. void llResetLandBanList();
  625. //wiki: llResetLandPassList()
  626. void llResetLandPassList();
  627. //wiki: integer llGetParcelPrimCount(vector pos, integer category, integer sim_wide)
  628. LSL_Types.LSLInteger llGetParcelPrimCount(LSL_Types.Vector3 pos, int category, int sim_wide);
  629. //wiki: list llGetParcelPrimOwners(vector pos)
  630. LSL_Types.list llGetParcelPrimOwners(LSL_Types.Vector3 pos);
  631. //wiki: integer llGetObjectPrimCount(key object_id)
  632. LSL_Types.LSLInteger llGetObjectPrimCount(string object_id);
  633. //wiki: integer llGetParcelMaxPrims(vector pos, integer sim_wide)
  634. LSL_Types.LSLInteger llGetParcelMaxPrims(LSL_Types.Vector3 pos, int sim_wide);
  635. //wiki: llGetParcelDetails(vector pos, list params)
  636. LSL_Types.list llGetParcelDetails(LSL_Types.Vector3 pos, LSL_Types.list param);
  637. //wiki: llSetLinkTexture(integer linknumber, string texture, integer face)
  638. void llSetLinkTexture(int linknumber, string texture, int face);
  639. //wiki: string llStringTrim(string src, int type)
  640. string llStringTrim(string src, int type);
  641. //wiki: LSL_Types.list llGetObjectDetails(string id, LSL_Types.list args)
  642. LSL_Types.list llGetObjectDetails(string id, LSL_Types.list args);
  643. void osSetRegionWaterHeight(double height);
  644. }
  645. }