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

Is it possible to send and receive structs instead of classes ? #154

Open
genaray opened this issue Oct 2, 2021 · 1 comment
Open

Is it possible to send and receive structs instead of classes ? #154

genaray opened this issue Oct 2, 2021 · 1 comment

Comments

@genaray
Copy link

genaray commented Oct 2, 2021

Well my question is pretty simple, i took a look into the documentation and saw examples on how you send and receive classes. But what about structs ? Can we send and receive those too without boxing them ?

@PJB3005
Copy link
Contributor

PJB3005 commented Oct 2, 2021

What do you mean "send classes"? The data that Lidgren takes in is NetOutgoingMessage/NetIncomingMessage which you can fill in yourself, so there should be no problem filling it in with whatever struct data you have.

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

No branches or pull requests

2 participants