Пример #1
0
        public SS13Server()
        {
            IoCManager.Resolve <ISS13Server>().SetServerInstance(this);

            //Init serializer
            var serializer = IoCManager.Resolve <ISS13Serializer>();

            Runlevel   = RunLevel.Init;
            _singleton = this;

            IoCManager.Resolve <IConfigurationManager>().Initialize("./config.xml");
            LogManager.Initialize(IoCManager.Resolve <IConfigurationManager>().LogPath,
                                  IoCManager.Resolve <IConfigurationManager>().LogLevel);

            TickRate   = IoCManager.Resolve <IConfigurationManager>().TickRate;
            ServerRate = 1000.0f / TickRate;
        }
Пример #2
0
        public SS13Server()
        {
            IoCManager.Resolve<ISS13Server>().SetServerInstance(this);

            //Init serializer
            var serializer = IoCManager.Resolve<ISS13Serializer>();

            Runlevel = RunLevel.Init;
            _singleton = this;

            IoCManager.Resolve<IConfigurationManager>().Initialize("./config.xml");
            LogManager.Initialize(IoCManager.Resolve<IConfigurationManager>().LogPath,
                                  IoCManager.Resolve<IConfigurationManager>().LogLevel);

            TickRate = IoCManager.Resolve<IConfigurationManager>().TickRate;
            ServerRate = 1000.0f / TickRate;
        }