aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-05-14 11:42:09 +0000
committerJustin Clarke Casey2008-05-14 11:42:09 +0000
commitd104b751168fdea758303751c19c2adff5db4e9a (patch)
tree41e527cc573228fdb3dc138395e247bdb2a7983d /OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
parent* Added standard copyright and removed un-necessary using of libsecondlife.Pa... (diff)
downloadopensim-SC-d104b751168fdea758303751c19c2adff5db4e9a.zip
opensim-SC-d104b751168fdea758303751c19c2adff5db4e9a.tar.gz
opensim-SC-d104b751168fdea758303751c19c2adff5db4e9a.tar.bz2
opensim-SC-d104b751168fdea758303751c19c2adff5db4e9a.tar.xz
From: Kurt Taylor <krtaylor@us.ibm.com>
More scipt engine cleanup - removed not needed or improper use of NotImplemented and Console.WriteLine
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs42
1 files changed, 2 insertions, 40 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index a061788..78ae587 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -849,7 +849,7 @@ namespace OpenSim.Region.ScriptEngine.Common
849 public LSL_Types.LSLInteger llGetStatus(int status) 849 public LSL_Types.LSLInteger llGetStatus(int status)
850 { 850 {
851 m_host.AddScriptLPS(1); 851 m_host.AddScriptLPS(1);
852 Console.WriteLine(m_host.UUID.ToString() + " status is " + m_host.GetEffectiveObjectFlags().ToString()); 852 // Console.WriteLine(m_host.UUID.ToString() + " status is " + m_host.GetEffectiveObjectFlags().ToString());
853 switch (status) 853 switch (status)
854 { 854 {
855 case BuiltIn_Commands_BaseClass.STATUS_PHYSICS: 855 case BuiltIn_Commands_BaseClass.STATUS_PHYSICS:
@@ -896,7 +896,6 @@ namespace OpenSim.Region.ScriptEngine.Common
896 NotImplemented("llGetStatus - STATUS_SANDBOX"); 896 NotImplemented("llGetStatus - STATUS_SANDBOX");
897 return 0; 897 return 0;
898 } 898 }
899 NotImplemented("llGetStatus - Unknown Status parameter");
900 return 0; 899 return 0;
901 } 900 }
902 901
@@ -965,10 +964,6 @@ namespace OpenSim.Region.ScriptEngine.Common
965 part.UpdateTexture(tex); 964 part.UpdateTexture(tex);
966 return; 965 return;
967 } 966 }
968 else
969 {
970 NotImplemented("llSetColor");
971 }
972 } 967 }
973 968
974 public double llGetAlpha(int face) 969 public double llGetAlpha(int face)
@@ -1022,10 +1017,6 @@ namespace OpenSim.Region.ScriptEngine.Common
1022 part.UpdateTexture(tex); 1017 part.UpdateTexture(tex);
1023 return; 1018 return;
1024 } 1019 }
1025 else
1026 {
1027 NotImplemented("llSetAlpha");
1028 }
1029 } 1020 }
1030 1021
1031 public LSL_Types.Vector3 llGetColor(int face) 1022 public LSL_Types.Vector3 llGetColor(int face)
@@ -1052,7 +1043,6 @@ namespace OpenSim.Region.ScriptEngine.Common
1052 } 1043 }
1053 else 1044 else
1054 { 1045 {
1055 NotImplemented("llGetColor");
1056 return new LSL_Types.Vector3(); 1046 return new LSL_Types.Vector3();
1057 } 1047 }
1058 } 1048 }
@@ -1098,10 +1088,6 @@ namespace OpenSim.Region.ScriptEngine.Common
1098 part.UpdateTexture(tex); 1088 part.UpdateTexture(tex);
1099 return; 1089 return;
1100 } 1090 }
1101 else
1102 {
1103 NotImplemented("llSetTexture");
1104 }
1105 } 1091 }
1106 1092
1107 public void llScaleTexture(double u, double v, int face) 1093 public void llScaleTexture(double u, double v, int face)
@@ -1138,10 +1124,6 @@ namespace OpenSim.Region.ScriptEngine.Common
1138 part.UpdateTexture(tex); 1124 part.UpdateTexture(tex);
1139 return; 1125 return;
1140 } 1126 }
1141 else
1142 {
1143 NotImplemented("llScaleTexture");
1144 }
1145 } 1127 }
1146 1128
1147 public void llOffsetTexture(double u, double v, int face) 1129 public void llOffsetTexture(double u, double v, int face)
@@ -1177,10 +1159,6 @@ namespace OpenSim.Region.ScriptEngine.Common
1177 part.UpdateTexture(tex); 1159 part.UpdateTexture(tex);
1178 return; 1160 return;
1179 } 1161 }
1180 else
1181 {
1182 NotImplemented("llOffsetTexture");
1183 }
1184 } 1162 }
1185 1163
1186 public void llRotateTexture(double rotation, int face) 1164 public void llRotateTexture(double rotation, int face)
@@ -1213,10 +1191,6 @@ namespace OpenSim.Region.ScriptEngine.Common
1213 part.UpdateTexture(tex); 1191 part.UpdateTexture(tex);
1214 return; 1192 return;
1215 } 1193 }
1216 else
1217 {
1218 NotImplemented("llRotateTexture");
1219 }
1220 } 1194 }
1221 1195
1222 public string llGetTexture(int face) 1196 public string llGetTexture(int face)
@@ -1235,7 +1209,6 @@ namespace OpenSim.Region.ScriptEngine.Common
1235 } 1209 }
1236 else 1210 else
1237 { 1211 {
1238 NotImplemented("llGetTexture");
1239 return String.Empty; 1212 return String.Empty;
1240 } 1213 }
1241 } 1214 }
@@ -2452,10 +2425,6 @@ namespace OpenSim.Region.ScriptEngine.Common
2452 } 2425 }
2453 return; 2426 return;
2454 } 2427 }
2455 else
2456 {
2457 NotImplemented("llSetLinkColor");
2458 }
2459 } 2428 }
2460 2429
2461 public void llCreateLink(string target, int parent) 2430 public void llCreateLink(string target, int parent)
@@ -2642,10 +2611,7 @@ namespace OpenSim.Region.ScriptEngine.Common
2642 public void llModifyLand(int action, int brush) 2611 public void llModifyLand(int action, int brush)
2643 { 2612 {
2644 m_host.AddScriptLPS(1); 2613 m_host.AddScriptLPS(1);
2645 if (World.ExternalChecks.ExternalChecksCanTerraformLand(m_host.OwnerID, new LLVector3(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y, 0))) 2614 World.ExternalChecks.ExternalChecksCanTerraformLand(m_host.OwnerID, new LLVector3(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y, 0));
2646 {
2647 NotImplemented("llModifyLand");
2648 }
2649 } 2615 }
2650 2616
2651 public void llCollisionSound(string impact_sound, double impact_volume) 2617 public void llCollisionSound(string impact_sound, double impact_volume)
@@ -4793,10 +4759,6 @@ namespace OpenSim.Region.ScriptEngine.Common
4793 } 4759 }
4794 return; 4760 return;
4795 } 4761 }
4796 else
4797 {
4798 NotImplemented("llSetLinkAlpha");
4799 }
4800 } 4762 }
4801 4763
4802 public LSL_Types.LSLInteger llGetNumberOfPrims() 4764 public LSL_Types.LSLInteger llGetNumberOfPrims()