-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Explicit definitions API overhaul #35
Comments
I'm also contemplating breaking down AsyncFunction into Server/Client too for the same sort of type isolation. |
I support the motion to isolate the events like this, but am dubious of the naming. Adding Additionally, how would you define a bidirectional remote? Or are you going with the idea to not allow that behaviour? |
Do you have an example of a bidirectional remote that wouldn't be achievable with AsyncFunction ? Also yeah the naming I'm still iffy about myself, I am wanting to find alternatives - could do things like |
An example of a bidirectional event that I use in my game is when someone adds/removes an item from trading. The client will tell the server, and then the server will fire off to the other player. It would be good to support these use cases. Having verbose names like |
Could have |
Yep, thought that was a good name too. |
Members added: Deprecated (and will be removed in 2.2): |
I did think about prefixing them with |
Deprecate
Net.Definitions.Event
forNet.Definitions.ServerEvent
,Net.Definitions.ClientEvent
.The difference here is
ServerEvent
- An event fired by the server and received by a client.ClientEvent
- An event fired by the client and recieved by the server.The typings are updated so
A
ServerEvent
grabbed on the server can only fire, and on the client can only recieve.A
ClientEvent
on the server can only recieve and on the client can only fire.This is only a typing difference, behaviorally for Luau it would not matter.
I'm not sure on the naming schemes here though. Are they too ambiguous? what would work better?
The text was updated successfully, but these errors were encountered: