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

physics, groundwork for proxy and inventory #45

Merged
merged 34 commits into from
Apr 1, 2023
Merged

Conversation

Gjum
Copy link
Collaborator

@Gjum Gjum commented Mar 31, 2023

No description provided.

@Gjum Gjum changed the title physics, groundwork for proxy physics, groundwork for proxy and inventory Mar 31, 2023
# Can be used for client and server.
# Caller of #read_packet must update #state= appropriately.
# Useless after disconnect; create a new instance to reconnect.
class Rosegold::Connection(InboundPacket, OutboundPacket)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Might be worth delegating missing methods from client.cr straight to this class 🤔

Copy link
Collaborator Author

@Gjum Gjum Apr 1, 2023

Choose a reason for hiding this comment

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

Can this be done dynamically? Client#@connection's value changes when reconnecting, it may be nil, or its methods may be no-ops/raise an exception when not connected.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah it's a macro, something like delegate_missing_to

Copy link
Collaborator

@grepsedawk grepsedawk left a comment

Choose a reason for hiding this comment

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

Merging this as this has a ton of value.
Most of my outstanding comments are high level improvements and nit-picks about interface semantics

@grepsedawk grepsedawk merged commit f36651f into RosegoldMC:main Apr 1, 2023
This was referenced Apr 1, 2023
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