-
-
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
Implement P2P Interface #13
Conversation
This looks great. Thanks for your contribution. |
It would be nice to have a minimal example using this P2P interface. If you like you can work on that too. |
I did make a simple test game that puts it into action. It's a separate Godot project though. If you want, I could add that to the repo and have that be the sample. If not, and you want something that's part of the samples project instead, then I could probably work on that at some point. |
Oh it would be good to link to that project if possible in the readme. |
Sure thing. I can go ahead and make a repo for it and have a link to it in the readme. |
In this pull request, I've implemented the P2P interface. IEOS has new methods that interact with the P2P interface so that it's features can be accessed by the rest of the plugin. Two new classes have been introduced; EOSGMultiplayerPeer and EOSGPacketPeerMediator. Both these classes use the p2p interface to send and receive packets, send and accept connection requests to and from remote peers, and receive notifications from the P2P interface. Users can now establish direct peer-to-peer connections with other peers over the internet by creating instances of EOSGMultiplayerPeer and creating either a server, client, or mesh instance.
Here are a list of changes and features in this pull request.
IEOS:
EOSGMultiplayerPeer:
EOSGPacketPeerMediator:
Other Changes:
Bug Fixes: