-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add client-side support #23
base: master
Are you sure you want to change the base?
Conversation
* Connection to server is fully working, backward compatibility with server & original client kept working too * Roughly removed server OMP-SDK support to let client handle without it * Enable RAKNET_BUILD_FOR_CLIENT to use
#include "../../SDK/include/types.hpp" | ||
#endif | ||
#include <functional> |
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.
required for std::hash below
@@ -18,6 +18,8 @@ | |||
#ifndef __RAK_PEER_H | |||
#define __RAK_PEER_H | |||
|
|||
#include <unordered_map> |
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.
required for playerIndexes, its previous type was replaced by this one
@@ -602,7 +610,7 @@ namespace RakNet | |||
|
|||
/// open.mp addition: | |||
/// Let's create an array of player indexes using PlayerIDs | |||
FlatHashMap<PlayerID, int> playerIndexes; | |||
std::unordered_map<PlayerID, int> playerIndexes; |
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.
replaced to avoid omp-sdk usage
Server-side was not tested with this patch, but there shouldn't be any issue as per as nothing was removed from the original code