Add method for getting packet flags from ENetPacketPeer
Fixes proposal 10240: https://github.com/godotengine/godot-proposals/issues/10240
This PR adds the get_packet_flags method to ENetPacketPeer which can be used to obtain the flags sent with the packet. In my experimentation, it appears that not all flags are replicated from peer to peer, but it's unclear which are and which aren't (the ENet documentation does not specify), so I opted not to include this info explicitly in Godot's documentation.
This is my first PR, so let me know if I have missed anything.
For the record, your commit seems not to be linked to your GitHub account. See: Why are my commits linked to the wrong user? for more info.
Thanks for the heads up. I've rebased all the commits onto the latest master branch and updated all my commits to be the correct author. Hopefully that is the right way to resolve things.
It seems good, yes!
The final step for our PR workflow would be to squash the commits together. See this page for instructions.
I can also do it myself before merging tomorrow. Edit: Done.
Thanks! And congrats for your first merged Godot contribution :tada: