From d015d00974a4c9effc91292c4ad20ec5eb845b2d Mon Sep 17 00:00:00 2001
From: Lovatto <9621064+BrinerLovo@users.noreply.github.com>
Date: Fri, 9 Feb 2018 00:21:25 -0800
Subject: [PATCH] Update for can send invitations.
I have add a simple function for enable send invitations to friends start from line 143.
---
Facepunch.Steamworks/Client/Friends.cs | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/Facepunch.Steamworks/Client/Friends.cs b/Facepunch.Steamworks/Client/Friends.cs
index 38f318c..36cd95d 100644
--- a/Facepunch.Steamworks/Client/Friends.cs
+++ b/Facepunch.Steamworks/Client/Friends.cs
@@ -136,6 +136,14 @@ public Image GetAvatar( Friends.AvatarSize size )
{
return Client.Friends.GetCachedAvatar( size, Id );
}
+
+ ///
+ /// Invite this friend to the game that we are playing
+ ///
+ public bool InviteToGame(string Text)
+ {
+ return Client.native.friends.InviteUserToGame(Id, Text);
+ }
}
///