aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/DotNetEngine.Compiler.LSL/Server API/LSL_BuiltIn_Commands_TestImplementation.cs
blob: bbdafade7dbeaa8d2eb885e49e28e4b6de9bfdf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
/*
* Copyright (c) Contributors, http://www.openmetaverse.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*     * Redistributions of source code must retain the above copyright
*       notice, this list of conditions and the following disclaimer.
*     * Redistributions in binary form must reproduce the above copyright
*       notice, this list of conditions and the following disclaimer in the
*       documentation and/or other materials provided with the distribution.
*     * Neither the name of the OpenSim Project nor the
*       names of its contributors may be used to endorse or promote products
*       derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* 
*/
/* Original code: Tedd Hansen */
using System;
using System.Collections.Generic;
using System.Text;

namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
{
    public class LSL_BuiltIn_Commands_TestImplementation : LSL_BuiltIn_Commands_Interface
    {
        public LSL_BuiltIn_Commands_TestImplementation(string FullScriptID)
        {
            Common.SendToDebug("LSL_BuiltIn_Commands_TestImplementation: Creating object for FullScriptID: " + FullScriptID);
        }


        public float llSin(float f) { return 0; }
        public float llCos(float f) { return 0; }
        public float llTan(float f) { return 0; }
        public float llAtan2(float x, float y) { return 0; }
        public float llSqrt(float f) { return 0; }
        public float llPow(float fbase, float fexponent) { return 0; }
        public UInt32 llAbs(UInt32 i) { return 0; }
        public float llFabs(float f) { return 0; }
        public float llFrand(float mag) { return 0; }
        public UInt32 llFloor(float f) { return 0; }
        public UInt32 llCeil(float f) { return 0; }
        public UInt32 llRound(float f) { return 0; }
        public float llVecMag(LSO_Enums.Vector v) { return 0; }
        public LSO_Enums.Vector llVecNorm(LSO_Enums.Vector v) { return new LSO_Enums.Vector(); }
        public float llVecDist(LSO_Enums.Vector a, LSO_Enums.Vector b) { return 0; }
        public LSO_Enums.Vector llRot2Euler(LSO_Enums.Rotation r) { return new LSO_Enums.Vector(); }
        public LSO_Enums.Rotation llEuler2Rot(LSO_Enums.Vector v) { return new LSO_Enums.Rotation(); }
        public LSO_Enums.Rotation llAxes2Rot(LSO_Enums.Vector fwd, LSO_Enums.Vector left, LSO_Enums.Vector up) { return new LSO_Enums.Rotation(); }
        public LSO_Enums.Vector llRot2Fwd(LSO_Enums.Rotation r) { return new LSO_Enums.Vector(); }
        public LSO_Enums.Vector llRot2Left(LSO_Enums.Rotation r) { return new LSO_Enums.Vector(); }
        public LSO_Enums.Vector llRot2Up(LSO_Enums.Rotation r) { return new LSO_Enums.Vector(); }
        public LSO_Enums.Rotation llRotBetween(LSO_Enums.Vector start, LSO_Enums.Vector end) { return new LSO_Enums.Rotation(); }
        public void llWhisper(UInt16 channelID, string text)
        {
            Common.SendToDebug("INTERNAL FUNCTION llWhisper(" + channelID + ", \"" + text + "\");");
            Common.SendToLog("llWhisper Channel " + channelID + ", Text: \"" + text + "\"");
        }
        //public void llSay(UInt32 channelID, string text)
        public void llSay(object channelID, object text)
        {
            Common.SendToDebug("INTERNAL FUNCTION llSay(" + (UInt32)channelID + ", \"" + (string)text + "\");");
            Common.SendToLog("llSay Channel " + (UInt32)channelID + ", Text: \"" + (string)text + "\"");
        }
        public void llShout(UInt16 channelID, string text) { return; }
        public UInt32 llListen(UInt16 channelID, string name, LSO_Enums.Key ID, string msg) { return 0; }
        public void llListenControl(UInt32 number, UInt32 active) { return; }
        public void llListenRemove(UInt32 number) { return; }
        public void llSensor(string name, LSO_Enums.Key id, UInt32 type, float range, float arc) { return; }
        public void llSensorRepeat(string name, LSO_Enums.Key id, UInt32 type, float range, float arc, float rate) { return; }
        public void llSensorRemove() { return; }
        public string llDetectedName(UInt32 number) { return ""; }
        public LSO_Enums.Key llDetectedKey(UInt32 number) { return new LSO_Enums.Key(); }
        public LSO_Enums.Key llDetectedOwner(UInt32 number) { return new LSO_Enums.Key(); }
        public UInt32 llDetectedType(UInt32 number) { return 0; }
        public LSO_Enums.Vector llDetectedPos(UInt32 number) { return new LSO_Enums.Vector(); }
        public LSO_Enums.Vector llDetectedVel(UInt32 number) { return new LSO_Enums.Vector(); }
        public LSO_Enums.Vector llDetectedGrab(UInt32 number) { return new LSO_Enums.Vector(); }
        public LSO_Enums.Rotation llDetectedRot(UInt32 number) { return new LSO_Enums.Rotation(); }
        public UInt32 llDetectedGroup(UInt32 number) { return 0; }
        public UInt32 llDetectedLinkNumber(UInt32 number) { return 0; }
        public void llDie() { return; }
        public float llGround(LSO_Enums.Vector offset) { return 0; }
        public float llCloud(LSO_Enums.Vector offset) { return 0; }
        public LSO_Enums.Vector llWind(LSO_Enums.Vector offset) { return new LSO_Enums.Vector(); }
        public void llSetStatus(UInt32 status, UInt32 value) { return; }
        public UInt32 llGetStatus(UInt32 status) { return 0; }
        public void llSetScale(LSO_Enums.Vector scale) { return; }
        public LSO_Enums.Vector llGetScale() { return new LSO_Enums.Vector(); }
        public void llSetColor(LSO_Enums.Vector color, UInt32 face) { return; }
        public float llGetAlpha(UInt32 face) { return 0; }
        public void llSetAlpha(float alpha, UInt32 face) { return; }
        public LSO_Enums.Vector llGetColor(UInt32 face) { return new LSO_Enums.Vector(); }
        public void llSetTexture(string texture, UInt32 face) { return; }
        public void llScaleTexture(float u, float v, UInt32 face) { return; }
        public void llOffsetTexture(float u, float v, UInt32 face) { return; }
        public void llRotateTexture(float rotation, UInt32 face) { return; }
        public string llGetTexture(UInt32 face) { return ""; }
        public void llSetPos(LSO_Enums.Vector pos) { return; }


        public void llGetPos() { }
        public void llGetLocalPos() { }
        public void llSetRot() { }
        public void llGetRot() { }
        public void llGetLocalRot() { }
        public void llSetForce() { }
        public void llGetForce() { }
        public void llTarget() { }
        public void llTargetRemove() { }
        public void llRotTarget() { }
        public void llRotTargetRemove() { }
        public void llMoveToTarget() { }
        public void llStopMoveToTarget() { }
        public void llApplyImpulse() { }
        public void llApplyRotationalImpulse() { }
        public void llSetTorque() { }
        public void llGetTorque() { }
        public void llSetForceAndTorque() { }
        public void llGetVel() { }
        public void llGetAccel() { }
        public void llGetOmega() { }
        public void llGetTimeOfDay() { }
        public void llGetWallclock() { }
        public void llGetTime() { }
        public void llResetTime() { }
        public void llGetAndResetTime() { }
        public void llSound() { }
        public void llPlaySound() { }
        public void llLoopSound() { }
        public void llLoopSoundMaster() { }
        public void llLoopSoundSlave() { }
        public void llPlaySoundSlave() { }
        public void llTriggerSound() { }
        public void llStopSound() { }
        public void llPreloadSound() { }
        public void llGetSubString() { }
        public void llDeleteSubString() { }
        public void llInsertString() { }
        public void llToUpper() { }
        public void llToLower() { }
        public void llGiveMoney() { }
        public void llMakeExplosion() { }
        public void llMakeFountain() { }
        public void llMakeSmoke() { }
        public void llMakeFire() { }
        public void llRezObject() { }
        public void llLookAt() { }
        public void llStopLookAt() { }
        public void llSetTimerEvent() { }
        public void llSleep() { }
        public void llGetMass() { }
        public void llCollisionFilter() { }
        public void llTakeControls() { }
        public void llReleaseControls() { }
        public void llAttachToAvatar() { }
        public void llDetachFromAvatar() { }
        public void llTakeCamera() { }
        public void llReleaseCamera() { }
        public void llGetOwner() { }
        public void llInstantMessage() { }
        public void llEmail() { }
        public void llGetNextEmail() { }
        public void llGetKey() { }
        public void llSetBuoyancy() { }
        public void llSetHoverHeight() { }
        public void llStopHover() { }
        public void llMinEventDelay() { }
        public void llSoundPreload() { }
        public void llRotLookAt() { }
        public void llStringLength() { }
        public void llStartAnimation() { }
        public void llStopAnimation() { }
        public void llPointAt() { }
        public void llStopPointAt() { }
        public void llTargetOmega() { }
        public void llGetStartParameter() { }
        public void llGodLikeRezObject() { }
        public void llRequestPermissions() { }
        public void llGetPermissionsKey() { }
        public void llGetPermissions() { }
        public void llGetLinkNumber() { }
        public void llSetLinkColor() { }
        public void llCreateLink() { }
        public void llBreakLink() { }
        public void llBreakAllLinks() { }
        public void llGetLinkKey() { }
        public void llGetLinkName() { }
        public void llGetInventoryNumber() { }
        public void llGetInventoryName() { }
        public void llSetScriptState() { }
        public void llGetEnergy() { }
        public void llGiveInventory() { }
        public void llRemoveInventory() { }
        public void llSetText() { }
        public void llWater() { }
        public void llPassTouches() { }
        public void llRequestAgentData() { }
        public void llRequestInventoryData() { }
        public void llSetDamage() { }
        public void llTeleportAgentHome() { }
        public void llModifyLand() { }
        public void llCollisionSound() { }
        public void llCollisionSprite() { }
        public void llGetAnimation() { }
        public void llResetScript() { }
        public void llMessageLinked() { }
        public void llPushObject() { }
        public void llPassCollisions() { }
        public void llGetScriptName() { }
        public void llGetNumberOfSides() { }
        public void llAxisAngle2Rot() { }
        public void llRot2Axis() { }
        public void llRot2Angle() { }
        public void llAcos() { }
        public void llAsin() { }
        public void llAngleBetween() { }
        public void llGetInventoryKey() { }
        public void llAllowInventoryDrop() { }
        public void llGetSunDirection() { }
        public void llGetTextureOffset() { }
        public void llGetTextureScale() { }
        public void llGetTextureRot() { }
        public void llSubStringIndex() { }
        public void llGetOwnerKey() { }
        public void llGetCenterOfMass() { }
        public void llListSort() { }
        public void llGetListLength() { }
        public void llList2Integer() { }
        public void llList2Float() { }
        public void llList2String() { }
        public void llList2Key() { }
        public void llList2Vector() { }
        public void llList2Rot() { }
        public void llList2List() { }
        public void llDeleteSubList() { }
        public void llGetListEntryType() { }
        public void llList2CSV() { }
        public void llCSV2List() { }
        public void llListRandomize() { }
        public void llList2ListStrided() { }
        public void llGetRegionCorner() { }
        public void llListInsertList() { }
        public void llListFindList() { }
        public void llGetObjectName() { }
        public void llSetObjectName() { }
        public void llGetDate() { }
        public void llEdgeOfWorld() { }
        public void llGetAgentInfo() { }
        public void llAdjustSoundVolume() { }
        public void llSetSoundQueueing() { }
        public void llSetSoundRadius() { }
        public void llKey2Name() { }
        public void llSetTextureAnim() { }
        public void llTriggerSoundLimited() { }
        public void llEjectFromLand() { }
        public void llParseString2List() { }
        public void llOverMyLand() { }
        public void llGetLandOwnerAt() { }
        public void llGetNotecardLine() { }
        public void llGetAgentSize() { }
        public void llSameGroup() { }
        public void llUnSit() { }
        public void llGroundSlope() { }
        public void llGroundNormal() { }
        public void llGroundContour() { }
        public void llGetAttached() { }
        public void llGetFreeMemory() { }
        public void llGetRegionName() { }
        public void llGetRegionTimeDilation() { }
        public void llGetRegionFPS() { }
        public void llParticleSystem() { }
        public void llGroundRepel() { }
        public void llGiveInventoryList() { }
        public void llSetVehicleType() { }
        public void llSetVehicleFloatParam() { }
        public void llSetVehicleVectorParam() { }
        public void llSetVehicleRotationParam() { }
        public void llSetVehicleFlags() { }
        public void llRemoveVehicleFlags() { }
        public void llSitTarget() { }
        public void llAvatarOnSitTarget() { }
        public void llAddToLandPassList() { }
        public void llSetTouchText() { }
        public void llSetSitText() { }
        public void llSetCameraEyeOffset() { }
        public void llSetCameraAtOffset() { }
        public void llDumpList2String() { }
        public void llScriptDanger() { }
        public void llDialog() { }
        public void llVolumeDetect() { }
        public void llResetOtherScript() { }
        public void llGetScriptState() { }
        public void llRemoteLoadScript() { }
        public void llSetRemoteScriptAccessPin() { }
        public void llRemoteLoadScriptPin() { }
        public void llOpenRemoteDataChannel() { }
        public void llSendRemoteData() { }
        public void llRemoteDataReply() { }
        public void llCloseRemoteDataChannel() { }
        public void llMD5String() { }
        public void llSetPrimitiveParams() { }
        public void llStringToBase64() { }
        public void llBase64ToString() { }
        public void llXorBase64Strings() { }
        public void llRemoteDataSetRegion() { }
        public void llLog10() { }
        public void llLog() { }
        public void llGetAnimationList() { }
        public void llSetParcelMusicURL() { }
        public void llGetRootPosition() { }
        public void llGetRootRotation() { }
        public void llGetObjectDesc() { }
        public void llSetObjectDesc() { }
        public void llGetCreator() { }
        public void llGetTimestamp() { }
        public void llSetLinkAlpha() { }
        public void llGetNumberOfPrims() { }
        public void llGetNumberOfNotecardLines() { }
        public void llGetBoundingBox() { }
        public void llGetGeometricCenter() { }
        public void llGetPrimitiveParams() { }
        public void llIntegerToBase64() { }
        public void llBase64ToInteger() { }
        public void llGetGMTclock() { }
        public void llGetSimulatorHostname() { }
        public void llSetLocalRot() { }
        public void llParseStringKeepNulls() { }
        public void llRezAtRoot() { }
        public void llGetObjectPermMask() { }
        public void llSetObjectPermMask() { }
        public void llGetInventoryPermMask() { }
        public void llSetInventoryPermMask() { }
        public void llGetInventoryCreator() { }
        public void llOwnerSay() { }
        public void llRequestSimulatorData() { }
        public void llForceMouselook() { }
        public void llGetObjectMass() { }
        public void llListReplaceList() { }
        public void llLoadURL() { }
        public void llParcelMediaCommandList() { }
        public void llParcelMediaQuery() { }
        public void llModPow() { }
        public void llGetInventoryType() { }
        public void llSetPayPrice() { }
        public void llGetCameraPos() { }
        public void llGetCameraRot() { }
        public void llSetPrimURL() { }
        public void llRefreshPrimURL() { }
        public void llEscapeURL() { }
        public void llUnescapeURL() { }
        public void llMapDestination() { }
        public void llAddToLandBanList() { }
        public void llRemoveFromLandPassList() { }
        public void llRemoveFromLandBanList() { }
        public void llSetCameraParams() { }
        public void llClearCameraParams() { }
        public void llListStatistics() { }
        public void llGetUnixTime() { }
        public void llGetParcelFlags() { }
        public void llGetRegionFlags() { }
        public void llXorBase64StringsCorrect() { }
        public void llHTTPRequest() { }
        public void llResetLandBanList() { }
        public void llResetLandPassList() { }
        public void llGetParcelPrimCount() { }
        public void llGetParcelPrimOwners() { }
        public void llGetObjectPrimCount() { }
        public void llGetParcelMaxPrims() { }
        public void llGetParcelDetails() { }



    }
}