aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/DotNetEngine
diff options
context:
space:
mode:
authorSean Dague2007-10-05 15:45:45 +0000
committerSean Dague2007-10-05 15:45:45 +0000
commitc3d8f1f4253f72484100394940e62f2912cbc4ff (patch)
tree8a9f237ed3c1140b4059ec121e0d4ede82eae416 /OpenSim/Region/ScriptEngine/DotNetEngine
parent* So, ok, maybe renaming serialized fields on a friday wasn't the smartest of... (diff)
downloadopensim-SC_OLD-c3d8f1f4253f72484100394940e62f2912cbc4ff.zip
opensim-SC_OLD-c3d8f1f4253f72484100394940e62f2912cbc4ff.tar.gz
opensim-SC_OLD-c3d8f1f4253f72484100394940e62f2912cbc4ff.tar.bz2
opensim-SC_OLD-c3d8f1f4253f72484100394940e62f2912cbc4ff.tar.xz
getting all our line endings consistant again
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs264
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs2
2 files changed, 133 insertions, 133 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs
index caa068d..6838f47 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs
@@ -760,138 +760,138 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler
760 } 760 }
761 761
762 public double llGetRegionTimeDilation() { return 1.0f; } 762 public double llGetRegionTimeDilation() { return 1.0f; }
763 public double llGetRegionFPS() { return 10.0f; } 763 public double llGetRegionFPS() { return 10.0f; }
764 764
765 /* particle system rules should be coming into this routine as doubles, that is 765 /* particle system rules should be coming into this routine as doubles, that is
766 rule[0] should be an integer from this list and rule[1] should be the arg 766 rule[0] should be an integer from this list and rule[1] should be the arg
767 for the same integer. wiki.secondlife.com has most of this mapping, but some 767 for the same integer. wiki.secondlife.com has most of this mapping, but some
768 came from http://www.caligari-designs.com/p4u2 768 came from http://www.caligari-designs.com/p4u2
769 769
770 We iterate through the list for 'Count' elements, incrementing by two for each 770 We iterate through the list for 'Count' elements, incrementing by two for each
771 iteration and set the members of Primitive.ParticleSystem, one at a time. 771 iteration and set the members of Primitive.ParticleSystem, one at a time.
772 */ 772 */
773 public enum PrimitiveRule : int 773 public enum PrimitiveRule : int
774 { 774 {
775 PSYS_PART_FLAGS = 0, 775 PSYS_PART_FLAGS = 0,
776 PSYS_PART_START_COLOR = 1, 776 PSYS_PART_START_COLOR = 1,
777 PSYS_PART_START_ALPHA = 2, 777 PSYS_PART_START_ALPHA = 2,
778 PSYS_PART_END_COLOR = 3, 778 PSYS_PART_END_COLOR = 3,
779 PSYS_PART_END_ALPHA = 4, 779 PSYS_PART_END_ALPHA = 4,
780 PSYS_PART_START_SCALE = 5, 780 PSYS_PART_START_SCALE = 5,
781 PSYS_PART_END_SCALE = 6, 781 PSYS_PART_END_SCALE = 6,
782 PSYS_PART_MAX_AGE = 7, 782 PSYS_PART_MAX_AGE = 7,
783 PSYS_SRC_ACCEL = 8, 783 PSYS_SRC_ACCEL = 8,
784 PSYS_SRC_PATTERN = 9, 784 PSYS_SRC_PATTERN = 9,
785 PSYS_SRC_TEXTURE = 12, 785 PSYS_SRC_TEXTURE = 12,
786 PSYS_SRC_BURST_RATE = 13, 786 PSYS_SRC_BURST_RATE = 13,
787 PSYS_SRC_BURST_PART_COUNT = 15, 787 PSYS_SRC_BURST_PART_COUNT = 15,
788 PSYS_SRC_BURST_RADIUS = 16, 788 PSYS_SRC_BURST_RADIUS = 16,
789 PSYS_SRC_BURST_SPEED_MIN = 17, 789 PSYS_SRC_BURST_SPEED_MIN = 17,
790 PSYS_SRC_BURST_SPEED_MAX = 18, 790 PSYS_SRC_BURST_SPEED_MAX = 18,
791 PSYS_SRC_MAX_AGE = 19, 791 PSYS_SRC_MAX_AGE = 19,
792 PSYS_SRC_TARGET_KEY = 20, 792 PSYS_SRC_TARGET_KEY = 20,
793 PSYS_SRC_OMEGA = 21, 793 PSYS_SRC_OMEGA = 21,
794 PSYS_SRC_ANGLE_BEGIN = 22, 794 PSYS_SRC_ANGLE_BEGIN = 22,
795 PSYS_SRC_ANGLE_END = 23 795 PSYS_SRC_ANGLE_END = 23
796 } 796 }
797 797
798 public void llParticleSystem(List<Object> rules) 798 public void llParticleSystem(List<Object> rules)
799 { 799 {
800 Primitive.ParticleSystem prules = new Primitive.ParticleSystem(); 800 Primitive.ParticleSystem prules = new Primitive.ParticleSystem();
801 for (int i = 0; i < rules.Count; i += 2) 801 for (int i = 0; i < rules.Count; i += 2)
802 { 802 {
803 switch ((int)rules[i]) 803 switch ((int)rules[i])
804 { 804 {
805 case (int)PrimitiveRule.PSYS_PART_FLAGS: 805 case (int)PrimitiveRule.PSYS_PART_FLAGS:
806 prules.PartFlags = (uint)rules[i + 1]; 806 prules.PartFlags = (uint)rules[i + 1];
807 break; 807 break;
808 808
809 case (int)PrimitiveRule.PSYS_PART_START_COLOR: 809 case (int)PrimitiveRule.PSYS_PART_START_COLOR:
810 prules.PartStartColor = (LLColor)rules[i + 1]; 810 prules.PartStartColor = (LLColor)rules[i + 1];
811 break; 811 break;
812 812
813 case (int)PrimitiveRule.PSYS_PART_START_ALPHA: 813 case (int)PrimitiveRule.PSYS_PART_START_ALPHA:
814 //what is the cast? prules.PartStartColor = (LLColor)rules[i + 1]; 814 //what is the cast? prules.PartStartColor = (LLColor)rules[i + 1];
815 break; 815 break;
816 816
817 case (int)PrimitiveRule.PSYS_PART_END_COLOR: 817 case (int)PrimitiveRule.PSYS_PART_END_COLOR:
818 prules.PartEndColor = (LLColor)rules[i + 1]; 818 prules.PartEndColor = (LLColor)rules[i + 1];
819 break; 819 break;
820 820
821 case (int)PrimitiveRule.PSYS_PART_END_ALPHA: 821 case (int)PrimitiveRule.PSYS_PART_END_ALPHA:
822 //what is the cast? prules.PartStartColor = (LLColor)rules[i + 1]; 822 //what is the cast? prules.PartStartColor = (LLColor)rules[i + 1];
823 break; 823 break;
824 824
825 case (int)PrimitiveRule.PSYS_PART_START_SCALE: 825 case (int)PrimitiveRule.PSYS_PART_START_SCALE:
826 //what is the cast? prules.PartStartColor = (LLColor)rules[i + 1]; 826 //what is the cast? prules.PartStartColor = (LLColor)rules[i + 1];
827 break; 827 break;
828 828
829 case (int)PrimitiveRule.PSYS_PART_END_SCALE: 829 case (int)PrimitiveRule.PSYS_PART_END_SCALE:
830 //what is the cast? prules.PartStartColor = (LLColor)rules[i + 1]; 830 //what is the cast? prules.PartStartColor = (LLColor)rules[i + 1];
831 break; 831 break;
832 832
833 case (int)PrimitiveRule.PSYS_PART_MAX_AGE: 833 case (int)PrimitiveRule.PSYS_PART_MAX_AGE:
834 prules.MaxAge = (float)rules[i + 1]; 834 prules.MaxAge = (float)rules[i + 1];
835 break; 835 break;
836 836
837 case (int)PrimitiveRule.PSYS_SRC_ACCEL: 837 case (int)PrimitiveRule.PSYS_SRC_ACCEL:
838 //what is the cast? prules.PartStartColor = (LLColor)rules[i + 1]; 838 //what is the cast? prules.PartStartColor = (LLColor)rules[i + 1];
839 break; 839 break;
840 840
841 case (int)PrimitiveRule.PSYS_SRC_PATTERN: 841 case (int)PrimitiveRule.PSYS_SRC_PATTERN:
842 //what is the cast? prules.PartStartColor = (LLColor)rules[i + 1]; 842 //what is the cast? prules.PartStartColor = (LLColor)rules[i + 1];
843 break; 843 break;
844 844
845 case (int)PrimitiveRule.PSYS_SRC_TEXTURE: 845 case (int)PrimitiveRule.PSYS_SRC_TEXTURE:
846 prules.Texture = (LLUUID)rules[i + 1]; 846 prules.Texture = (LLUUID)rules[i + 1];
847 break; 847 break;
848 848
849 case (int)PrimitiveRule.PSYS_SRC_BURST_RATE: 849 case (int)PrimitiveRule.PSYS_SRC_BURST_RATE:
850 prules.BurstRate = (float)rules[i + 1]; 850 prules.BurstRate = (float)rules[i + 1];
851 break; 851 break;
852 852
853 case (int)PrimitiveRule.PSYS_SRC_BURST_PART_COUNT: 853 case (int)PrimitiveRule.PSYS_SRC_BURST_PART_COUNT:
854 prules.BurstPartCount = (byte)rules[i + 1]; 854 prules.BurstPartCount = (byte)rules[i + 1];
855 break; 855 break;
856 856
857 case (int)PrimitiveRule.PSYS_SRC_BURST_RADIUS: 857 case (int)PrimitiveRule.PSYS_SRC_BURST_RADIUS:
858 prules.BurstRadius = (float)rules[i + 1]; 858 prules.BurstRadius = (float)rules[i + 1];
859 break; 859 break;
860 860
861 case (int)PrimitiveRule.PSYS_SRC_BURST_SPEED_MIN: 861 case (int)PrimitiveRule.PSYS_SRC_BURST_SPEED_MIN:
862 prules.BurstSpeedMin = (float)rules[i + 1]; 862 prules.BurstSpeedMin = (float)rules[i + 1];
863 break; 863 break;
864 864
865 case (int)PrimitiveRule.PSYS_SRC_BURST_SPEED_MAX: 865 case (int)PrimitiveRule.PSYS_SRC_BURST_SPEED_MAX:
866 prules.BurstSpeedMax = (float)rules[i + 1]; 866 prules.BurstSpeedMax = (float)rules[i + 1];
867 break; 867 break;
868 868
869 case (int)PrimitiveRule.PSYS_SRC_MAX_AGE: 869 case (int)PrimitiveRule.PSYS_SRC_MAX_AGE:
870 prules.MaxAge = (float)rules[i + 1]; 870 prules.MaxAge = (float)rules[i + 1];
871 break; 871 break;
872 872
873 case (int)PrimitiveRule.PSYS_SRC_TARGET_KEY: 873 case (int)PrimitiveRule.PSYS_SRC_TARGET_KEY:
874 prules.Target = (LLUUID)rules[i + 1]; 874 prules.Target = (LLUUID)rules[i + 1];
875 break; 875 break;
876 876
877 case (int)PrimitiveRule.PSYS_SRC_OMEGA: 877 case (int)PrimitiveRule.PSYS_SRC_OMEGA:
878 //cast?? prules.MaxAge = (float)rules[i + 1]; 878 //cast?? prules.MaxAge = (float)rules[i + 1];
879 break; 879 break;
880 880
881 case (int)PrimitiveRule.PSYS_SRC_ANGLE_BEGIN: 881 case (int)PrimitiveRule.PSYS_SRC_ANGLE_BEGIN:
882 prules.InnerAngle = (float)rules[i + 1]; 882 prules.InnerAngle = (float)rules[i + 1];
883 break; 883 break;
884 884
885 case (int)PrimitiveRule.PSYS_SRC_ANGLE_END: 885 case (int)PrimitiveRule.PSYS_SRC_ANGLE_END:
886 prules.OuterAngle = (float)rules[i + 1]; 886 prules.OuterAngle = (float)rules[i + 1];
887 break; 887 break;
888 888
889 } 889 }
890 } 890 }
891 891
892 m_host.AddNewParticleSystem(prules); 892 m_host.AddNewParticleSystem(prules);
893 } 893 }
894 894
895 public void llGroundRepel(double height, int water, double tau) { NotImplemented("llGroundRepel"); } 895 public void llGroundRepel(double height, int water, double tau) { NotImplemented("llGroundRepel"); }
896 public void llGiveInventoryList() { NotImplemented("llGiveInventoryList"); } 896 public void llGiveInventoryList() { NotImplemented("llGiveInventoryList"); }
897 public void llSetVehicleType(int type) { NotImplemented("llSetVehicleType"); } 897 public void llSetVehicleType(int type) { NotImplemented("llSetVehicleType"); }
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs
index 197eb72..381fd8c 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs
@@ -285,7 +285,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
285 before = GC.GetTotalMemory(true); 285 before = GC.GetTotalMemory(true);
286#endif 286#endif
287 287
288 LSL_BaseClass CompiledScript; 288 LSL_BaseClass CompiledScript;
289 CompiledScript = m_scriptEngine.m_AppDomainManager.LoadScript(ScriptSource); 289 CompiledScript = m_scriptEngine.m_AppDomainManager.LoadScript(ScriptSource);
290 290
291#if DEBUG 291#if DEBUG