Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/refactor server configuration #415

Conversation

luis-paulo-silva
Copy link
Contributor

This is the standard way in .Net to use configuration and it will be a valuable asset to your project.
Also, this way you always get a default configuration on the build

Copy link
Collaborator

@Measurity Measurity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a much better config handling. Thanks 👍 I only got some small things for you to look at.

{
this.packetHandler = packetHandler;
this.playerManager = playerManager;
this.entitySimulation = entitySimulation;
PortNumber = ConfigReader.serverPort;
MaxConn = ConfigReader.maxConn;
PortNumber = ConfigReader.ServerPort;

This comment was marked as abuse.

This comment was marked as abuse.

NitroxServer/ConfigParser/ServerConfig.cs Outdated Show resolved Hide resolved
Copy link
Contributor Author

@luis-paulo-silva luis-paulo-silva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

{
this.packetHandler = packetHandler;
this.playerManager = playerManager;
this.entitySimulation = entitySimulation;
PortNumber = ConfigReader.serverPort;
MaxConn = ConfigReader.maxConn;
PortNumber = ConfigReader.ServerPort;

This comment was marked as abuse.

@Sunrunner37 Sunrunner37 merged commit 2442b57 into SubnauticaNitrox:master Dec 20, 2018
@luis-paulo-silva luis-paulo-silva deleted the feature/refactor-server-configuration branch December 20, 2018 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants