diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /public/Friends/IFriendsNET.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'public/Friends/IFriendsNET.h')
| -rw-r--r-- | public/Friends/IFriendsNET.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/public/Friends/IFriendsNET.h b/public/Friends/IFriendsNET.h new file mode 100644 index 0000000..b0b6c89 --- /dev/null +++ b/public/Friends/IFriendsNET.h @@ -0,0 +1,41 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef FRIENDSNET_INTERFACE_H +#define FRIENDSNET_INTERFACE_H +#pragma once + +class CUtlMsgBuffer; +class CServerSession; + +#include "interface.h" +#include "Friends/AddOns/AddOnTypes.h" + +class IFriendsNET : public IBaseInterface +{ +public: + // check if we have network information for this user + virtual bool CheckUserRegistered(unsigned int userID) = 0; + + // update a user's network information + virtual void UpdateUserNetInfo(unsigned int userID, unsigned int netSessionID, int serverID, int IP, int port) = 0; + + // set whether or not we send directly to user or through the server + virtual void SetUserSendViaServer(unsigned int userID, bool bSendViaServer) = 0; + + // Gets a blob of data that represents this user's information + virtual bool GetUserNetInfoBlob(unsigned int userID, unsigned int dataBlob[8]) = 0; + // Sets a user's information using the same blob of data type + virtual bool SetUserNetInfoBlob(unsigned int userID, const unsigned int dataBlob[8]) = 0; + + // send binary data to user, marked with game/sessionID + virtual void SendAddOnPacket(const char *pszGameID, SessionInt64 addOnSessionID, unsigned int userID, const CUtlMsgBuffer& buffer) = 0; +}; + +#define FRIENDSNET_INTERFACE_VERSION "FriendsNET003" + +#endif // FRIENDSNET_INTERFACE_H + |