diff options
author | Melanie | 2009-10-27 21:17:08 +0000 |
---|---|---|
committer | Melanie | 2009-10-27 21:17:08 +0000 |
commit | 704bc08e5c3cdab8c0551ea803a77800cad0294f (patch) | |
tree | 2abf21a52de0f838fef95dee74989547516fc8f7 /OpenSim/ApplicationPlugins/ScriptEngine/ScriptEnginePlugin.cs | |
parent | Merge branch 'master' into vehicles (diff) | |
parent | Remove the SECS loader (diff) | |
download | opensim-SC-704bc08e5c3cdab8c0551ea803a77800cad0294f.zip opensim-SC-704bc08e5c3cdab8c0551ea803a77800cad0294f.tar.gz opensim-SC-704bc08e5c3cdab8c0551ea803a77800cad0294f.tar.bz2 opensim-SC-704bc08e5c3cdab8c0551ea803a77800cad0294f.tar.xz |
Merge branch 'master' into vehicles
Diffstat (limited to 'OpenSim/ApplicationPlugins/ScriptEngine/ScriptEnginePlugin.cs')
-rw-r--r-- | OpenSim/ApplicationPlugins/ScriptEngine/ScriptEnginePlugin.cs | 106 |
1 files changed, 0 insertions, 106 deletions
diff --git a/OpenSim/ApplicationPlugins/ScriptEngine/ScriptEnginePlugin.cs b/OpenSim/ApplicationPlugins/ScriptEngine/ScriptEnginePlugin.cs deleted file mode 100644 index cd34f70..0000000 --- a/OpenSim/ApplicationPlugins/ScriptEngine/ScriptEnginePlugin.cs +++ /dev/null | |||
@@ -1,106 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) Contributors, http://opensimulator.org/ | ||
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions are met: | ||
7 | * * Redistributions of source code must retain the above copyright | ||
8 | * notice, this list of conditions and the following disclaimer. | ||
9 | * * Redistributions in binary form must reproduce the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer in the | ||
11 | * documentation and/or other materials provided with the distribution. | ||
12 | * * Neither the name of the OpenSimulator Project nor the | ||
13 | * names of its contributors may be used to endorse or promote products | ||
14 | * derived from this software without specific prior written permission. | ||
15 | * | ||
16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY | ||
17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY | ||
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
26 | */ | ||
27 | using System.Reflection; | ||
28 | using log4net; | ||
29 | |||
30 | namespace OpenSim.ApplicationPlugins.ScriptEngine | ||
31 | { | ||
32 | /// <summary> | ||
33 | /// Loads all Script Engine Components | ||
34 | /// </summary> | ||
35 | public class ScriptEnginePlugin : IApplicationPlugin | ||
36 | { | ||
37 | internal static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | ||
38 | internal OpenSimBase m_OpenSim; | ||
39 | |||
40 | |||
41 | |||
42 | public ScriptEnginePlugin() | ||
43 | { | ||
44 | // Application startup | ||
45 | #if DEBUG | ||
46 | m_log.InfoFormat("[{0}] ##################################", Name); | ||
47 | m_log.InfoFormat("[{0}] # Script Engine Component System #", Name); | ||
48 | m_log.InfoFormat("[{0}] ##################################", Name); | ||
49 | #else | ||
50 | m_log.InfoFormat("[{0}] Script Engine Component System", Name); | ||
51 | #endif | ||
52 | |||
53 | // Load all modules from current directory | ||
54 | // We only want files named OpenSim.ScriptEngine.*.dll | ||
55 | ComponentFactory.Load(".", "OpenSim.ScriptEngine.*.dll"); | ||
56 | } | ||
57 | |||
58 | public void Initialise(OpenSimBase openSim) | ||
59 | { | ||
60 | |||
61 | // Our objective: Load component .dll's | ||
62 | m_OpenSim = openSim; | ||
63 | //m_OpenSim.Shutdown(); | ||
64 | } | ||
65 | |||
66 | public void PostInitialise() | ||
67 | { | ||
68 | } | ||
69 | |||
70 | |||
71 | #region IApplicationPlugin stuff | ||
72 | /// <summary> | ||
73 | /// Returns the plugin version | ||
74 | /// </summary> | ||
75 | /// <returns>Plugin version in MAJOR.MINOR.REVISION.BUILD format</returns> | ||
76 | public string Version | ||
77 | { | ||
78 | get { return "1.0.0.0"; } | ||
79 | } | ||
80 | |||
81 | /// <summary> | ||
82 | /// Returns the plugin name | ||
83 | /// </summary> | ||
84 | /// <returns>Plugin name, eg MySQL User Provider</returns> | ||
85 | public string Name | ||
86 | { | ||
87 | get { return "SECS"; } | ||
88 | } | ||
89 | |||
90 | /// <summary> | ||
91 | /// Default-initialises the plugin | ||
92 | /// </summary> | ||
93 | public void Initialise() { } | ||
94 | |||
95 | ///<summary> | ||
96 | ///Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | ||
97 | ///</summary> | ||
98 | ///<filterpriority>2</filterpriority> | ||
99 | public void Dispose() | ||
100 | { | ||
101 | //throw new NotImplementedException(); | ||
102 | } | ||
103 | #endregion | ||
104 | |||
105 | } | ||
106 | } | ||