Esempio n. 1
0
        /// <summary>
        ///   Start a plugin.
        /// </summary>
        /// <param name = "plugin">The plugin object you wish to start.</param>
        internal PluginManager StartPlugin(Plugin plugin)
        {
            EventFirer eventFirer = CoreManager.ServerCore.EventManager.NewEventFirer(plugin);

            plugin.Start(eventFirer);
            plugin.StartedResetEvent.Set();
            CoreManager.ServerCore.ConsoleManager.Notice("Plugin Manager", CoreManager.ServerCore.StringLocale.GetString("CORE:PLUGIN_STARTED", plugin.Name));
            return(this);
        }
Esempio n. 2
0
        public ServerCore()
        {
            EventManager = new EventManager();
            OfficalEventFirer = new EventFirer(null);

            StringLocale = new StringLocale();
            PluginManager = new PluginManager();
            GameSocketManagers = new Dictionary<string, GameSocketManager>();
        }
Esempio n. 3
0
        public static void Start()
        {
            List <Plugin> plugins = new List <Plugin>();

            //plugins.Add(new DefaultLoginFunctions.DefaultLoginFunctions());
            //plugins.Add(new DefaultHabboFunctions.DefaultHabboFunctions());
            //plugins.Add(new DefaultMessengerFunctions.DefaultMessengerFunctions());
            //plugins.Add(new DefaultSubscriptionsFunctions.DefaultSubscriptionsFunctions());
            plugins.Add(new ClassicFigures.ClassicFigures());

            foreach (Plugin plugin in plugins)
            {
                EventFirer eventFirer = new EventFirer(plugin);
                plugin.Start(eventFirer);
            }
        }
Esempio n. 4
0
        public static void Start()
        {
            List<Plugin> plugins = new List<Plugin>();

            //plugins.Add(new DefaultLoginFunctions.DefaultLoginFunctions());
            //plugins.Add(new DefaultHabboFunctions.DefaultHabboFunctions());
            //plugins.Add(new DefaultMessengerFunctions.DefaultMessengerFunctions());
            //plugins.Add(new DefaultSubscriptionsFunctions.DefaultSubscriptionsFunctions());
            plugins.Add(new ClassicFigures.ClassicFigures());

            foreach (Plugin plugin in plugins)
            {
                EventFirer eventFirer = new EventFirer(plugin);
                plugin.Start(eventFirer);
            }
        }
Esempio n. 5
0
 /// <summary>
 ///   Start a plugin.
 /// </summary>
 /// <param name = "plugin">The plugin object you wish to start.</param>
 internal PluginManager StartPlugin(Plugin plugin)
 {
     EventFirer eventFirer = new EventFirer(plugin);
     plugin.Start(eventFirer);
     plugin.StartedResetEvent.Set();
     CoreManager.ServerCore.StandardOut.Notice("Plugin Manager", CoreManager.ServerCore.StringLocale.GetString("CORE:PLUGIN_STARTED", plugin.Name));
     return this;
 }
Esempio n. 6
0
 /// <summary>
 ///   Called when the plugin is started.
 /// </summary>
 public abstract void Start(EventFirer eventFirer);
Esempio n. 7
0
 /// <summary>
 ///   Called when the plugin is started.
 /// </summary>
 public abstract void Start(EventFirer eventFirer);