aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs
diff options
context:
space:
mode:
authorMelanie Thielker2008-09-26 02:51:00 +0000
committerMelanie Thielker2008-09-26 02:51:00 +0000
commitc21a8b99694e459408a9ccc43e525928038b2b22 (patch)
tree21190b513065cc7b1f3442d2cf2ed9ce1d2077f4 /OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs
parentMantis#2265. Thank you kindly, Idb for a patch that: (diff)
downloadopensim-SC_OLD-c21a8b99694e459408a9ccc43e525928038b2b22.zip
opensim-SC_OLD-c21a8b99694e459408a9ccc43e525928038b2b22.tar.gz
opensim-SC_OLD-c21a8b99694e459408a9ccc43e525928038b2b22.tar.bz2
opensim-SC_OLD-c21a8b99694e459408a9ccc43e525928038b2b22.tar.xz
Full API convergence. Api is back in LSL_Api.cs and OSSL_Api.cs.
The binaries are still different, but that is only a small step away now. The OSSLPrim has been removed. This commit will breal all scripts using Prim.Scale(), etc, syntax. It was not secure and will have to be brought back in another form.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs391
1 files changed, 0 insertions, 391 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs
deleted file mode 100644
index e05849d..0000000
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs
+++ /dev/null
@@ -1,391 +0,0 @@
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
28using OpenSim.Region.Environment.Interfaces;
29
30using LSL_Float = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLFloat;
31using LSL_Integer = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger;
32using LSL_Key = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString;
33using LSL_List = OpenSim.Region.ScriptEngine.Shared.LSL_Types.list;
34using LSL_Rotation = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Quaternion;
35using LSL_String = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString;
36using LSL_Vector = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3;
37
38namespace OpenSim.Region.ScriptEngine.Common
39{
40 public interface LSL_BuiltIn_Commands_Interface
41 {
42 // Interface used for loading and executing scripts
43
44 string State { get; set; }
45
46 ICommander GetCommander(string name);
47
48 LSL_Integer llAbs(int i);
49 LSL_Float llAcos(double val);
50 void llAddToLandBanList(string avatar, double hours);
51 void llAddToLandPassList(string avatar, double hours);
52 void llAdjustSoundVolume(double volume);
53 void llAllowInventoryDrop(int add);
54 LSL_Float llAngleBetween(LSL_Rotation a, LSL_Rotation b);
55 void llApplyImpulse(LSL_Vector force, int local);
56 void llApplyRotationalImpulse(LSL_Vector force, int local);
57 LSL_Float llAsin(double val);
58 LSL_Float llAtan2(double x, double y);
59 void llAttachToAvatar(int attachment);
60 LSL_Key llAvatarOnSitTarget();
61 LSL_Rotation llAxes2Rot(LSL_Vector fwd, LSL_Vector left, LSL_Vector up);
62 LSL_Rotation llAxisAngle2Rot(LSL_Vector axis, double angle);
63 LSL_Integer llBase64ToInteger(string str);
64 LSL_String llBase64ToString(string str);
65 void llBreakAllLinks();
66 void llBreakLink(int linknum);
67 LSL_Integer llCeil(double f);
68 void llClearCameraParams();
69 void llCloseRemoteDataChannel(string channel);
70 LSL_Float llCloud(LSL_Vector offset);
71 void llCollisionFilter(string name, string id, int accept);
72 void llCollisionSound(string impact_sound, double impact_volume);
73 void llCollisionSprite(string impact_sprite);
74 LSL_Float llCos(double f);
75 void llCreateLink(string target, int parent);
76 LSL_List llCSV2List(string src);
77 LSL_List llDeleteSubList(LSL_List src, int start, int end);
78 LSL_String llDeleteSubString(string src, int start, int end);
79 void llDetachFromAvatar();
80 LSL_Vector llDetectedGrab(int number);
81 LSL_Integer llDetectedGroup(int number);
82 LSL_Key llDetectedKey(int number);
83 LSL_Integer llDetectedLinkNumber(int number);
84 LSL_String llDetectedName(int number);
85 LSL_Key llDetectedOwner(int number);
86 LSL_Vector llDetectedPos(int number);
87 LSL_Rotation llDetectedRot(int number);
88 LSL_Integer llDetectedType(int number);
89 LSL_Vector llDetectedTouchBinormal(int index);
90 LSL_Integer llDetectedTouchFace(int index);
91 LSL_Vector llDetectedTouchNormal(int index);
92 LSL_Vector llDetectedTouchPos(int index);
93 LSL_Vector llDetectedTouchST(int index);
94 LSL_Vector llDetectedTouchUV(int index);
95 LSL_Vector llDetectedVel(int number);
96 void llDialog(string avatar, string message, LSL_List buttons, int chat_channel);
97 void llDie();
98 LSL_String llDumpList2String(LSL_List src, string seperator);
99 LSL_Integer llEdgeOfWorld(LSL_Vector pos, LSL_Vector dir);
100 void llEjectFromLand(string pest);
101 void llEmail(string address, string subject, string message);
102 LSL_String llEscapeURL(string url);
103 LSL_Rotation llEuler2Rot(LSL_Vector v);
104 LSL_Float llFabs(double f);
105 LSL_Integer llFloor(double f);
106 void llForceMouselook(int mouselook);
107 LSL_Float llFrand(double mag);
108 LSL_Vector llGetAccel();
109 LSL_Integer llGetAgentInfo(string id);
110 LSL_Vector llGetAgentSize(string id);
111 LSL_Float llGetAlpha(int face);
112 LSL_Float llGetAndResetTime();
113 LSL_String llGetAnimation(string id);
114 LSL_List llGetAnimationList(string id);
115 LSL_Integer llGetAttached();
116 LSL_List llGetBoundingBox(string obj);
117 LSL_Vector llGetCameraPos();
118 LSL_Rotation llGetCameraRot();
119 LSL_Vector llGetCenterOfMass();
120 LSL_Vector llGetColor(int face);
121 LSL_String llGetCreator();
122 LSL_String llGetDate();
123 LSL_Float llGetEnergy();
124 LSL_Vector llGetForce();
125 LSL_Integer llGetFreeMemory();
126 LSL_Vector llGetGeometricCenter();
127 LSL_Float llGetGMTclock();
128 LSL_Key llGetInventoryCreator(string item);
129 LSL_Key llGetInventoryKey(string name);
130 LSL_String llGetInventoryName(int type, int number);
131 LSL_Integer llGetInventoryNumber(int type);
132 LSL_Integer llGetInventoryPermMask(string item, int mask);
133 LSL_Integer llGetInventoryType(string name);
134 LSL_Key llGetKey();
135 LSL_Key llGetLandOwnerAt(LSL_Vector pos);
136 LSL_Key llGetLinkKey(int linknum);
137 LSL_String llGetLinkName(int linknum);
138 LSL_Integer llGetLinkNumber();
139 LSL_Integer llGetListEntryType(LSL_List src, int index);
140 LSL_Integer llGetListLength(LSL_List src);
141 LSL_Vector llGetLocalPos();
142 LSL_Rotation llGetLocalRot();
143 LSL_Float llGetMass();
144 void llGetNextEmail(string address, string subject);
145 LSL_String llGetNotecardLine(string name, int line);
146 LSL_Key llGetNumberOfNotecardLines(string name);
147 LSL_Integer llGetNumberOfPrims();
148 LSL_Integer llGetNumberOfSides();
149 LSL_String llGetObjectDesc();
150 LSL_List llGetObjectDetails(string id, LSL_List args);
151 LSL_Float llGetObjectMass(string id);
152 LSL_String llGetObjectName();
153 LSL_Integer llGetObjectPermMask(int mask);
154 LSL_Integer llGetObjectPrimCount(string object_id);
155 LSL_Vector llGetOmega();
156 LSL_Key llGetOwner();
157 LSL_Key llGetOwnerKey(string id);
158 LSL_List llGetParcelDetails(LSL_Vector pos, LSL_List param);
159 LSL_Integer llGetParcelFlags(LSL_Vector pos);
160 LSL_Integer llGetParcelMaxPrims(LSL_Vector pos, int sim_wide);
161 LSL_Integer llGetParcelPrimCount(LSL_Vector pos, int category, int sim_wide);
162 LSL_List llGetParcelPrimOwners(LSL_Vector pos);
163 LSL_Integer llGetPermissions();
164 LSL_Key llGetPermissionsKey();
165 LSL_Vector llGetPos();
166 LSL_List llGetPrimitiveParams(LSL_List rules);
167 LSL_Integer llGetRegionAgentCount();
168 LSL_Vector llGetRegionCorner();
169 LSL_Integer llGetRegionFlags();
170 LSL_Float llGetRegionFPS();
171 LSL_String llGetRegionName();
172 LSL_Float llGetRegionTimeDilation();
173 LSL_Vector llGetRootPosition();
174 LSL_Rotation llGetRootRotation();
175 LSL_Rotation llGetRot();
176 LSL_Vector llGetScale();
177 LSL_String llGetScriptName();
178 LSL_Integer llGetScriptState(string name);
179 LSL_String llGetSimulatorHostname();
180 LSL_Integer llGetStartParameter();
181 LSL_Integer llGetStatus(int status);
182 LSL_String llGetSubString(string src, int start, int end);
183 LSL_Vector llGetSunDirection();
184 LSL_String llGetTexture(int face);
185 LSL_Vector llGetTextureOffset(int face);
186 LSL_Float llGetTextureRot(int side);
187 LSL_Vector llGetTextureScale(int side);
188 LSL_Float llGetTime();
189 LSL_Float llGetTimeOfDay();
190 LSL_String llGetTimestamp();
191 LSL_Vector llGetTorque();
192 LSL_Integer llGetUnixTime();
193 LSL_Vector llGetVel();
194 LSL_Float llGetWallclock();
195 void llGiveInventory(string destination, string inventory);
196 void llGiveInventoryList(string destination, string category, LSL_List inventory);
197 LSL_Integer llGiveMoney(string destination, int amount);
198 void llGodLikeRezObject(string inventory, LSL_Vector pos);
199 LSL_Float llGround(LSL_Vector offset);
200 LSL_Vector llGroundContour(LSL_Vector offset);
201 LSL_Vector llGroundNormal(LSL_Vector offset);
202 void llGroundRepel(double height, int water, double tau);
203 LSL_Vector llGroundSlope(LSL_Vector offset);
204 LSL_String llHTTPRequest(string url, LSL_List parameters, string body);
205 LSL_String llInsertString(string dst, int position, string src);
206 void llInstantMessage(string user, string message);
207 LSL_String llIntegerToBase64(int number);
208 LSL_String llKey2Name(string id);
209 LSL_String llList2CSV(LSL_List src);
210 LSL_Float llList2Float(LSL_List src, int index);
211 LSL_Integer llList2Integer(LSL_List src, int index);
212 LSL_Key llList2Key(LSL_List src, int index);
213 LSL_List llList2List(LSL_List src, int start, int end);
214 LSL_List llList2ListStrided(LSL_List src, int start, int end, int stride);
215 LSL_Rotation llList2Rot(LSL_List src, int index);
216 LSL_String llList2String(LSL_List src, int index);
217 LSL_Vector llList2Vector(LSL_List src, int index);
218 LSL_Integer llListen(int channelID, string name, string ID, string msg);
219 void llListenControl(int number, int active);
220 void llListenRemove(int number);
221 LSL_Integer llListFindList(LSL_List src, LSL_List test);
222 LSL_List llListInsertList(LSL_List dest, LSL_List src, int start);
223 LSL_List llListRandomize(LSL_List src, int stride);
224 LSL_List llListReplaceList(LSL_List dest, LSL_List src, int start, int end);
225 LSL_List llListSort(LSL_List src, int stride, int ascending);
226 LSL_Float llListStatistics(int operation, LSL_List src);
227 void llLoadURL(string avatar_id, string message, string url);
228 LSL_Float llLog(double val);
229 LSL_Float llLog10(double val);
230 void llLookAt(LSL_Vector target, double strength, double damping);
231 void llLoopSound(string sound, double volume);
232 void llLoopSoundMaster(string sound, double volume);
233 void llLoopSoundSlave(string sound, double volume);
234 void llMakeExplosion();
235 void llMakeFire();
236 void llMakeFountain();
237 void llMakeSmoke();
238 void llMapDestination(string simname, LSL_Vector pos, LSL_Vector look_at);
239 LSL_String llMD5String(string src, int nonce);
240 void llMessageLinked(int linknum, int num, string str, string id);
241 void llMinEventDelay(double delay);
242 void llModifyLand(int action, int brush);
243 LSL_Integer llModPow(int a, int b, int c);
244 void llMoveToTarget(LSL_Vector target, double tau);
245 void llOffsetTexture(double u, double v, int face);
246 void llOpenRemoteDataChannel();
247 LSL_Integer llOverMyLand(string id);
248 void llOwnerSay(string msg);
249 void llParcelMediaCommandList(LSL_List commandList);
250 LSL_List llParcelMediaQuery(LSL_List aList);
251 LSL_List llParseString2List(string str, LSL_List separators, LSL_List spacers);
252 LSL_List llParseStringKeepNulls(string src, LSL_List seperators, LSL_List spacers);
253 void llParticleSystem(LSL_List rules);
254 void llPassCollisions(int pass);
255 void llPassTouches(int pass);
256 void llPlaySound(string sound, double volume);
257 void llPlaySoundSlave(string sound, double volume);
258 void llPointAt();
259 LSL_Float llPow(double fbase, double fexponent);
260 void llPreloadSound(string sound);
261 void llPushObject(string target, LSL_Vector impulse, LSL_Vector ang_impulse, int local);
262 void llRefreshPrimURL();
263 void llRegionSay(int channelID, string text);
264 void llReleaseCamera(string avatar);
265 void llReleaseControls();
266 void llRemoteDataReply(string channel, string message_id, string sdata, int idata);
267 void llRemoteDataSetRegion();
268 void llRemoteLoadScript();
269 void llRemoteLoadScriptPin(string target, string name, int pin, int running, int start_param);
270 void llRemoveFromLandBanList(string avatar);
271 void llRemoveFromLandPassList(string avatar);
272 void llRemoveInventory(string item);
273 void llRemoveVehicleFlags(int flags);
274 LSL_Key llRequestAgentData(string id, int data);
275 LSL_Key llRequestInventoryData(string name);
276 void llRequestPermissions(string agent, int perm);
277 LSL_Key llRequestSimulatorData(string simulator, int data);
278 void llResetLandBanList();
279 void llResetLandPassList();
280 void llResetOtherScript(string name);
281 void llResetScript();
282 void llResetTime();
283 void llRezAtRoot(string inventory, LSL_Vector position, LSL_Vector velocity, LSL_Rotation rot, int param);
284 void llRezObject(string inventory, LSL_Vector pos, LSL_Vector vel, LSL_Rotation rot, int param);
285 LSL_Float llRot2Angle(LSL_Rotation rot);
286 LSL_Vector llRot2Axis(LSL_Rotation rot);
287 LSL_Vector llRot2Euler(LSL_Rotation r);
288 LSL_Vector llRot2Fwd(LSL_Rotation r);
289 LSL_Vector llRot2Left(LSL_Rotation r);
290 LSL_Vector llRot2Up(LSL_Rotation r);
291 void llRotateTexture(double rotation, int face);
292 LSL_Rotation llRotBetween(LSL_Vector start, LSL_Vector end);
293 void llRotLookAt(LSL_Rotation target, double strength, double damping);
294 LSL_Integer llRotTarget(LSL_Rotation rot, double error);
295 void llRotTargetRemove(int number);
296 LSL_Integer llRound(double f);
297 LSL_Integer llSameGroup(string agent);
298 void llSay(int channelID, string text);
299 void llScaleTexture(double u, double v, int face);
300 LSL_Integer llScriptDanger(LSL_Vector pos);
301 LSL_Key llSendRemoteData(string channel, string dest, int idata, string sdata);
302 void llSensor(string name, string id, int type, double range, double arc);
303 void llSensorRemove();
304 void llSensorRepeat(string name, string id, int type, double range, double arc, double rate);
305 void llSetAlpha(double alpha, int face);
306 void llSetBuoyancy(double buoyancy);
307 void llSetCameraAtOffset(LSL_Vector offset);
308 void llSetCameraEyeOffset(LSL_Vector offset);
309 void llSetCameraParams(LSL_List rules);
310 void llSetClickAction(int action);
311 void llSetColor(LSL_Vector color, int face);
312 void llSetDamage(double damage);
313 void llSetForce(LSL_Vector force, int local);
314 void llSetForceAndTorque(LSL_Vector force, LSL_Vector torque, int local);
315 void llSetHoverHeight(double height, int water, double tau);
316 void llSetInventoryPermMask(string item, int mask, int value);
317 void llSetLinkAlpha(int linknumber, double alpha, int face);
318 void llSetLinkColor(int linknumber, LSL_Vector color, int face);
319 void llSetLinkPrimitiveParams(int linknumber, LSL_List rules);
320 void llSetLinkTexture(int linknumber, string texture, int face);
321 void llSetLocalRot(LSL_Rotation rot);
322 void llSetObjectDesc(string desc);
323 void llSetObjectName(string name);
324 void llSetObjectPermMask(int mask, int value);
325 void llSetParcelMusicURL(string url);
326 void llSetPayPrice(int price, LSL_List quick_pay_buttons);
327 void llSetPos(LSL_Vector pos);
328 void llSetPrimitiveParams(LSL_List rules);
329 void llSetPrimURL();
330 void llSetRemoteScriptAccessPin(int pin);
331 void llSetRot(LSL_Rotation rot);
332 void llSetScale(LSL_Vector scale);
333 void llSetScriptState(string name, int run);
334 void llSetSitText(string text);
335 void llSetSoundQueueing(int queue);
336 void llSetSoundRadius(double radius);
337 void llSetStatus(int status, int value);
338 void llSetText(string text, LSL_Vector color, double alpha);
339 void llSetTexture(string texture, int face);
340 void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate);
341 void llSetTimerEvent(double sec);
342 void llSetTorque(LSL_Vector torque, int local);
343 void llSetTouchText(string text);
344 void llSetVehicleFlags(int flags);
345 void llSetVehicleFloatParam(int param, float value);
346 void llSetVehicleRotationParam(int param, LSL_Rotation rot);
347 void llSetVehicleType(int type);
348 void llSetVehicleVectorParam(int param, LSL_Vector vec);
349 void llShout(int channelID, string text);
350 LSL_Float llSin(double f);
351 void llSitTarget(LSL_Vector offset, LSL_Rotation rot);
352 void llSleep(double sec);
353 void llSound();
354 void llSoundPreload();
355 LSL_Float llSqrt(double f);
356 void llStartAnimation(string anim);
357 void llStopAnimation(string anim);
358 void llStopHover();
359 void llStopLookAt();
360 void llStopMoveToTarget();
361 void llStopPointAt();
362 void llStopSound();
363 LSL_Integer llStringLength(string str);
364 LSL_String llStringToBase64(string str);
365 LSL_String llStringTrim(string src, int type);
366 LSL_Integer llSubStringIndex(string source, string pattern);
367 void llTakeCamera(string avatar);
368 void llTakeControls(int controls, int accept, int pass_on);
369 LSL_Float llTan(double f);
370 LSL_Integer llTarget(LSL_Vector position, double range);
371 void llTargetOmega(LSL_Vector axis, double spinrate, double gain);
372 void llTargetRemove(int number);
373 void llTeleportAgentHome(string agent);
374 void llTextBox(string avatar, string message, int chat_channel);
375 LSL_String llToLower(string source);
376 LSL_String llToUpper(string source);
377 void llTriggerSound(string sound, double volume);
378 void llTriggerSoundLimited(string sound, double volume, LSL_Vector top_north_east, LSL_Vector bottom_south_west);
379 LSL_String llUnescapeURL(string url);
380 void llUnSit(string id);
381 LSL_Float llVecDist(LSL_Vector a, LSL_Vector b);
382 LSL_Float llVecMag(LSL_Vector v);
383 LSL_Vector llVecNorm(LSL_Vector v);
384 void llVolumeDetect(int detect);
385 LSL_Float llWater(LSL_Vector offset);
386 void llWhisper(int channelID, string text);
387 LSL_Vector llWind(LSL_Vector offset);
388 void llXorBase64Strings();
389 LSL_String llXorBase64StringsCorrect(string str1, string str2);
390 }
391}