-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
e.g., to store and forward with proxy
# 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) |
There was a problem hiding this comment.
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 🤔
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this 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
No description provided.