예제 #1
0
        // .method private hidebysig static void Main(string[] args) cil managed
        static void Main(string[] args)
        {
            AccountUid  = new UInt32UidFactory(AccountHolder.MaxAccountUid());     //генерим UID для аккаунтов
            CharcterUid = new UInt32UidFactory(CharacterHolder.MaxCharacterUid()); //генерим UID для персонажей

            Console.Title           = "ARCHEAGE LOGIN SERVER";
            Console.CancelKeyPress += Console_CancelKeyPress;
            Stopwatch watch = Stopwatch.StartNew();

            watch.Start();
            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
            selectVersion();
            LoadExecutingAssembly(args);
            watch.Stop();
            Logger.Trace("ArcheAge Login Server started in {0} seconds", (watch.ElapsedMilliseconds / 1000.0).ToString("0.00"));
            watch = null;
            Key_Pressed();
        }
예제 #2
0
        public static UInt24UidFactory LiveObjectUid; //UID для перемещений по карте

        static void Main(string[] args)
        {
            AccountUid = new UInt32UidFactory(AccountHolder.MaxAccountUid());      //генерим UID для аккаунтов
            uint uid = CharacterHolder.MaxCharacterUid();

            CharcterUid = new UInt32UidFactory(uid);   //генерим UID для персонажей
            //ObjectUid = new UInt32UidFactory(CharacterHolder.MaxObjectUid()); //генерим UID для вещей
            ObjectUid     = new UInt32UidFactory();    //TODO: тест, пока начинаем с нуля
            LiveObjectUid = new UInt24UidFactory(uid); //TODO: генерим UID как для персонажей

            Console.Title           = "ARCHEAGE GAME SERVER";
            Console.CancelKeyPress += Console_CancelKeyPress;
            Stopwatch watch = Stopwatch.StartNew();

            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
            selectVersion();
            LoadExecutingAssembly(args);
            watch.Stop();
            Logger.Trace("ArcheAge Game Server started in {0} seconds", (watch.ElapsedMilliseconds / 1000).ToString("0.00"));
            watch = null;
            Key_Pressed();
        }