Example #1
0
 private void Application_Startup(object sender, StartupEventArgs e)
 {
     ItemInit.Init();
     CraftInit.Init();
 }
Example #2
0
        public void OnServerInit()
        {
            Logger.log(Logger.LogLevel.INFO, "######################## Initalise ########################");
            cursor = Cursor.getCursor();
            RandomManager.GetRandom();

            Test.Text3DTest.Init();



            ItemInit.Init();
            DefaultItems.Init();


            DayTime.Init();
            DayTime.setTime(0, 12, 0);


#if SSM_AI
            AI.AISystem.Init();
#endif
            DefaultWorld.Init();



            DamageScript.Init();



#if SSM_CHAT
            //chat = new Chat();
            //chat.Init();

            //important: register notification types for notification areas!
            NotificationManager.GetNotificationManager().AddNotificationArea(100, 100, 50, 8,
                                                                             new NotificationType[] { NotificationType.ChatMessage, NotificationType.ServerMessage,
                                                                                                      NotificationType.PlayerStatusMessage, NotificationType.MobsiMessage, NotificationType.Sound });
            CommandInterpreter.GetCommandInterpreter();
            Chat.GetChat();
            EventNotifier.GetEventNotifier();
#endif



            Modules.Init();



            //Modules.addModule(new Test.ListTestModule());


#if SSM_ACCOUNT
            AccountSystem accSystem = new AccountSystem();
            accSystem.Init();
#endif

#if SSM_WEB
            Web.http_server.Init();
#endif



            Logger.log(Logger.LogLevel.INFO, "###################### End Initalise ######################");
        }