aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.World/World.Scripting.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/OpenSim.World/World.Scripting.cs')
-rw-r--r--OpenSim/OpenSim.World/World.Scripting.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/OpenSim/OpenSim.World/World.Scripting.cs b/OpenSim/OpenSim.World/World.Scripting.cs
index 24d887c..048a97f 100644
--- a/OpenSim/OpenSim.World/World.Scripting.cs
+++ b/OpenSim/OpenSim.World/World.Scripting.cs
@@ -14,11 +14,17 @@ namespace OpenSim.world
14 { 14 {
15 private Dictionary<string, IScriptEngine> scriptEngines = new Dictionary<string, IScriptEngine>(); 15 private Dictionary<string, IScriptEngine> scriptEngines = new Dictionary<string, IScriptEngine>();
16 16
17 /// <summary>
18 ///
19 /// </summary>
17 private void LoadScriptEngines() 20 private void LoadScriptEngines()
18 { 21 {
19 this.LoadScriptPlugins(); 22 this.LoadScriptPlugins();
20 } 23 }
21 24
25 /// <summary>
26 ///
27 /// </summary>
22 public void LoadScriptPlugins() 28 public void LoadScriptPlugins()
23 { 29 {
24 string path = Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "ScriptEngines"); 30 string path = Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "ScriptEngines");
@@ -31,6 +37,10 @@ namespace OpenSim.world
31 } 37 }
32 } 38 }
33 39
40 /// <summary>
41 ///
42 /// </summary>
43 /// <param name="FileName"></param>
34 private void AddPlugin(string FileName) 44 private void AddPlugin(string FileName)
35 { 45 {
36 Assembly pluginAssembly = Assembly.LoadFrom(FileName); 46 Assembly pluginAssembly = Assembly.LoadFrom(FileName);
@@ -59,6 +69,13 @@ namespace OpenSim.world
59 pluginAssembly = null; 69 pluginAssembly = null;
60 } 70 }
61 71
72 /// <summary>
73 ///
74 /// </summary>
75 /// <param name="scriptType"></param>
76 /// <param name="scriptName"></param>
77 /// <param name="script"></param>
78 /// <param name="ent"></param>
62 public void LoadScript(string scriptType, string scriptName, string script, Entity ent) 79 public void LoadScript(string scriptType, string scriptName, string script, Entity ent)
63 { 80 {
64 if(this.scriptEngines.ContainsKey(scriptType)) 81 if(this.scriptEngines.ContainsKey(scriptType))
@@ -69,6 +86,11 @@ namespace OpenSim.world
69 86
70 #region IScriptAPI Methods 87 #region IScriptAPI Methods
71 88
89 /// <summary>
90 ///
91 /// </summary>
92 /// <param name="localID"></param>
93 /// <returns></returns>
72 public OSVector3 GetEntityPosition(uint localID) 94 public OSVector3 GetEntityPosition(uint localID)
73 { 95 {
74 OSVector3 res = new OSVector3(); 96 OSVector3 res = new OSVector3();
@@ -85,6 +107,13 @@ namespace OpenSim.world
85 return res; 107 return res;
86 } 108 }
87 109
110 /// <summary>
111 ///
112 /// </summary>
113 /// <param name="localID"></param>
114 /// <param name="x"></param>
115 /// <param name="y"></param>
116 /// <param name="z"></param>
88 public void SetEntityPosition(uint localID, float x , float y, float z) 117 public void SetEntityPosition(uint localID, float x , float y, float z)
89 { 118 {
90 foreach (Entity entity in this.Entities.Values) 119 foreach (Entity entity in this.Entities.Values)
@@ -103,6 +132,10 @@ namespace OpenSim.world
103 132
104 } 133 }
105 134
135 /// <summary>
136 ///
137 /// </summary>
138 /// <returns></returns>
106 public uint GetRandomAvatarID() 139 public uint GetRandomAvatarID()
107 { 140 {
108 //Console.WriteLine("script- getting random avatar id"); 141 //Console.WriteLine("script- getting random avatar id");