diff options
author | UbitUmarov | 2018-02-25 00:18:41 +0000 |
---|---|---|
committer | UbitUmarov | 2018-02-25 00:18:41 +0000 |
commit | 85b973ce1d8dc034546c9c572a7f57e73b6017d3 (patch) | |
tree | a03332d9233e3788f8bc2e535b6863d8fe195b0b /OpenSim/Region/ScriptEngine/YEngine/MMRInternalFuncDict.cs | |
parent | Yengine fix its section name on opensim.ini.example (diff) | |
download | opensim-SC-85b973ce1d8dc034546c9c572a7f57e73b6017d3.zip opensim-SC-85b973ce1d8dc034546c9c572a7f57e73b6017d3.tar.gz opensim-SC-85b973ce1d8dc034546c9c572a7f57e73b6017d3.tar.bz2 opensim-SC-85b973ce1d8dc034546c9c572a7f57e73b6017d3.tar.xz |
Y(xmr)engine cosmetics...
Diffstat (limited to 'OpenSim/Region/ScriptEngine/YEngine/MMRInternalFuncDict.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/YEngine/MMRInternalFuncDict.cs | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/OpenSim/Region/ScriptEngine/YEngine/MMRInternalFuncDict.cs b/OpenSim/Region/ScriptEngine/YEngine/MMRInternalFuncDict.cs index 5d1cbc0..ca7c372 100644 --- a/OpenSim/Region/ScriptEngine/YEngine/MMRInternalFuncDict.cs +++ b/OpenSim/Region/ScriptEngine/YEngine/MMRInternalFuncDict.cs | |||
@@ -35,7 +35,6 @@ namespace OpenSim.Region.ScriptEngine.Yengine | |||
35 | 35 | ||
36 | public class InternalFuncDict: VarDict | 36 | public class InternalFuncDict: VarDict |
37 | { | 37 | { |
38 | |||
39 | /** | 38 | /** |
40 | * @brief build dictionary of internal functions from an interface. | 39 | * @brief build dictionary of internal functions from an interface. |
41 | * @param iface = interface with function definitions | 40 | * @param iface = interface with function definitions |
@@ -46,27 +45,20 @@ namespace OpenSim.Region.ScriptEngine.Yengine | |||
46 | public InternalFuncDict(Type iface, bool inclSig) | 45 | public InternalFuncDict(Type iface, bool inclSig) |
47 | : base(false) | 46 | : base(false) |
48 | { | 47 | { |
49 | /* | 48 | // Loop through list of all methods declared in the interface. |
50 | * Loop through list of all methods declared in the interface. | ||
51 | */ | ||
52 | System.Reflection.MethodInfo[] ifaceMethods = iface.GetMethods(); | 49 | System.Reflection.MethodInfo[] ifaceMethods = iface.GetMethods(); |
53 | foreach(System.Reflection.MethodInfo ifaceMethod in ifaceMethods) | 50 | foreach(System.Reflection.MethodInfo ifaceMethod in ifaceMethods) |
54 | { | 51 | { |
55 | string key = ifaceMethod.Name; | 52 | string key = ifaceMethod.Name; |
56 | 53 | ||
57 | /* | 54 | // Only do ones that begin with lower-case letters... |
58 | * Only do ones that begin with lower-case letters... | 55 | // as any others can't be referenced by scripts |
59 | * as any others can't be referenced by scripts | ||
60 | */ | ||
61 | if((key[0] < 'a') || (key[0] > 'z')) | 56 | if((key[0] < 'a') || (key[0] > 'z')) |
62 | continue; | 57 | continue; |
63 | 58 | ||
64 | try | 59 | try |
65 | { | 60 | { |
66 | 61 | // Create a corresponding TokenDeclVar struct. | |
67 | /* | ||
68 | * Create a corresponding TokenDeclVar struct. | ||
69 | */ | ||
70 | System.Reflection.ParameterInfo[] parameters = ifaceMethod.GetParameters(); | 62 | System.Reflection.ParameterInfo[] parameters = ifaceMethod.GetParameters(); |
71 | TokenArgDecl argDecl = new TokenArgDecl(null); | 63 | TokenArgDecl argDecl = new TokenArgDecl(null); |
72 | for(int i = 0; i < parameters.Length; i++) | 64 | for(int i = 0; i < parameters.Length; i++) |
@@ -81,9 +73,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine | |||
81 | declFunc.retType = TokenType.FromSysType(null, ifaceMethod.ReturnType); | 73 | declFunc.retType = TokenType.FromSysType(null, ifaceMethod.ReturnType); |
82 | declFunc.argDecl = argDecl; | 74 | declFunc.argDecl = argDecl; |
83 | 75 | ||
84 | /* | 76 | // Add the TokenDeclVar struct to the dictionary. |
85 | * Add the TokenDeclVar struct to the dictionary. | ||
86 | */ | ||
87 | this.AddEntry(declFunc); | 77 | this.AddEntry(declFunc); |
88 | } | 78 | } |
89 | catch(Exception except) | 79 | catch(Exception except) |