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

Delay client Sim creation until server parameters are received #314

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

patowen
Copy link
Collaborator

@patowen patowen commented Oct 15, 2023

This allows the client's Sim to store a SimConfig without wrapping it in an Option. The main downside is that it slightly complicates window.rs and draw.rs, but such complication is likely temporary and would go away in a future refactor (such as if a "connecting" screen is created, diverting control flow earlier pre-ServerHello).

Copy link
Owner

@Ralith Ralith left a comment

Choose a reason for hiding this comment

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

Nice structural improvement. I concur that this will dovetail gracefully with an eventual main menu/connection GUI.

client/src/sim.rs Outdated Show resolved Hide resolved
This allows Sim to store SimConfig without wrapping it in an Option
@Ralith Ralith enabled auto-merge (rebase) October 23, 2023 23:55
@Ralith Ralith merged commit 2b95c8c into Ralith:master Oct 24, 2023
6 checks passed
@patowen patowen deleted the delay-client-sim-creation branch October 24, 2023 00:21
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.

2 participants