steamworks
authorhgn <hgodden00@gmail.com>
Fri, 10 Nov 2023 08:47:29 +0000 (08:47 +0000)
committerhgn <hgodden00@gmail.com>
Fri, 10 Nov 2023 08:47:29 +0000 (08:47 +0000)
vg_steam_friends.h
vg_steam_networking.h

index 4bcbebba95e0418c822cd21a3b024c91b4e98ac7..0a7f017b1f6f615048818c75f909abf35feda394 100644 (file)
@@ -89,6 +89,29 @@ void SteamAPI_ISteamFriends_ActivateGameOverlayToStore( ISteamFriends* self,
       AppId_t nAppID, EOverlayToStoreFlag eFlag );
 void SteamAPI_ISteamFriends_SetPlayedWith( ISteamFriends* self, 
       u64_steamid steamIDUserPlayedWith );
-void SteamAPI_ISteamFriends_ActivateGameOverlayInviteDialog( ISteamFriends* self, u64_steamid steamIDLobby );
+void SteamAPI_ISteamFriends_ActivateGameOverlayInviteDialog( 
+      ISteamFriends* self, u64_steamid steamIDLobby );
+
+
+enum EFriendFlags{
+       k_EFriendFlagNone                       = 0x00,
+       k_EFriendFlagBlocked            = 0x01,
+       k_EFriendFlagFriendshipRequested        = 0x02,
+       k_EFriendFlagImmediate          = 0x04,                 // "regular" friend
+       k_EFriendFlagClanMember         = 0x08,
+       k_EFriendFlagOnGameServer       = 0x10, 
+       // k_EFriendFlagHasPlayedWith   = 0x20, // not currently used
+       // k_EFriendFlagFriendOfFriend  = 0x40, // not currently used
+       k_EFriendFlagRequestingFriendship = 0x80,
+       k_EFriendFlagRequestingInfo = 0x100,
+       k_EFriendFlagIgnored            = 0x200,
+       k_EFriendFlagIgnoredFriend      = 0x400,
+       // k_EFriendFlagSuggested               = 0x800,        // not used
+       k_EFriendFlagChatMember         = 0x1000,
+       k_EFriendFlagAll                        = 0xFFFF,
+};
+
+steamapi_bool SteamAPI_ISteamFriends_HasFriend( ISteamFriends* self, 
+                     u64_steamid steamIDFriend, int iFriendFlags );
 
 #endif /* VG_STEAM_FRIENDS_H */
index a2745758d5b8b18340c08add692a8a4d2d38f042..7d10278ba04005ea89c40ea4dff17020edc2f38f 100644 (file)
@@ -938,7 +938,9 @@ static const char *string_ESteamNetworkingConnectionState(
 {
    switch(s)
    {
-      case k_ESteamNetworkingConnectionState_None:       return "None"; break;
+      case k_ESteamNetworkingConnectionState_None:       
+         return "None"; 
+      break;
       case k_ESteamNetworkingConnectionState_Connecting: 
          return "Connecting";
       break;