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

Add client-side support #23

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

Northn
Copy link

@Northn Northn commented Jul 27, 2024

  • 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

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

Northn added 4 commits July 27, 2024 00:16
* 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>
Copy link
Author

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>
Copy link
Author

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;
Copy link
Author

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

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

Successfully merging this pull request may close these issues.

1 participant