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; }
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; }