diff --git a/ChebsValheimLibrary/Base.cs b/ChebsValheimLibrary/Base.cs index b9d39ab..2fdd169 100644 --- a/ChebsValheimLibrary/Base.cs +++ b/ChebsValheimLibrary/Base.cs @@ -26,7 +26,7 @@ namespace ChebsValheimLibrary { public class Base { - public static readonly System.Version CurrentVersion = new("2.5.1"); + public static readonly System.Version CurrentVersion = new("2.5.2"); public static bool VersionCheck(System.Version version, out string message) { diff --git a/ChebsValheimLibrary/ChebsValheimLibrary.csproj b/ChebsValheimLibrary/ChebsValheimLibrary.csproj index d374d56..3a8cbe5 100644 --- a/ChebsValheimLibrary/ChebsValheimLibrary.csproj +++ b/ChebsValheimLibrary/ChebsValheimLibrary.csproj @@ -16,7 +16,7 @@ ChebsValheimLibrary A library which contains shared classes and things required by all my mods. - 2.5.1 + 2.5.2 Initial Joshua Paul Woods Joshua Paul Woods diff --git a/ChebsValheimLibrary/Properties/AssemblyInfo.cs b/ChebsValheimLibrary/Properties/AssemblyInfo.cs index 068620f..2d7bec9 100644 --- a/ChebsValheimLibrary/Properties/AssemblyInfo.cs +++ b/ChebsValheimLibrary/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.5.1.0")] -[assembly: AssemblyFileVersion("2.5.1.0")] \ No newline at end of file +[assembly: AssemblyVersion("2.5.2.0")] +[assembly: AssemblyFileVersion("2.5.2.0")] \ No newline at end of file diff --git a/ChebsValheimLibrary/PvP/PvPManager.cs b/ChebsValheimLibrary/PvP/PvPManager.cs index 9ae25a3..292cd83 100644 --- a/ChebsValheimLibrary/PvP/PvPManager.cs +++ b/ChebsValheimLibrary/PvP/PvPManager.cs @@ -60,6 +60,17 @@ private static Dictionary> PlayerFriends set => _playerFriends = value; } + /// + /// Make an initial request of the friends list. Best used when a player first connects to a server. + /// + public static void InitialFriendsListRequest() + { + if (!ZNet.instance.IsClientInstance() && !ZNet.instance.IsLocalInstance()) return; + var package = + new ZPackage(Encoding.UTF8.GetBytes(GetDictString + " " + Player.m_localPlayer.GetPlayerID())); + _pvPrpc.SendPackage(ZRoutedRpc.instance.GetServerPeerID(), package); + } + /// /// Get a list of the local player's friends. /// diff --git a/ChebsValheimLibrary/_site/api/ChebsValheimLibrary.PvP.PvPManager.html b/ChebsValheimLibrary/_site/api/ChebsValheimLibrary.PvP.PvPManager.html index 2ff2536..1945484 100644 --- a/ChebsValheimLibrary/_site/api/ChebsValheimLibrary.PvP.PvPManager.html +++ b/ChebsValheimLibrary/_site/api/ChebsValheimLibrary.PvP.PvPManager.html @@ -161,7 +161,7 @@

Methods Improve this Doc - View Source + View Source

ConfigureRPC()

@@ -177,7 +177,7 @@
Declaration
Improve this Doc - View Source + View Source

Friendly(String, String)

@@ -237,7 +237,7 @@
Returns
Improve this Doc - View Source + View Source

GetPlayerFriends()

@@ -263,12 +263,28 @@
Returns
+ + | + Improve this Doc + + + View Source + + +

InitialFriendsListRequest()

+

Make an initial request of the friends list. Best used when a player first connects to a server.

+
+
+
Declaration
+
+
public static void InitialFriendsListRequest()
+
| Improve this Doc - View Source + View Source

UpdatePlayerFriendsDict(List<String>)

diff --git a/ChebsValheimLibrary/_site/manifest.json b/ChebsValheimLibrary/_site/manifest.json index dc4b580..0bc9ed1 100644 --- a/ChebsValheimLibrary/_site/manifest.json +++ b/ChebsValheimLibrary/_site/manifest.json @@ -1188,7 +1188,7 @@ "output": { ".html": { "relative_path": "api/ChebsValheimLibrary.PvP.PvPManager.html", - "hash": "6Nt1sgB+MaYvbHm7OZpCm6YlrPXJLoBoCXJSWvAuSSA=" + "hash": "Mvx+qN6gjYesNvmkPDSGeyGDrfNMNoCFY8YdcWnjcnQ=" } }, "is_incremental": false, diff --git a/ChebsValheimLibrary/_site/xrefmap.yml b/ChebsValheimLibrary/_site/xrefmap.yml index 8e9e7d7..8092440 100644 --- a/ChebsValheimLibrary/_site/xrefmap.yml +++ b/ChebsValheimLibrary/_site/xrefmap.yml @@ -4901,6 +4901,19 @@ references: commentId: F:ChebsValheimLibrary.PvP.PvPManager.HeavyLogging fullName: ChebsValheimLibrary.PvP.PvPManager.HeavyLogging nameWithType: PvPManager.HeavyLogging +- uid: ChebsValheimLibrary.PvP.PvPManager.InitialFriendsListRequest + name: InitialFriendsListRequest() + href: api/ChebsValheimLibrary.PvP.PvPManager.html#ChebsValheimLibrary_PvP_PvPManager_InitialFriendsListRequest + commentId: M:ChebsValheimLibrary.PvP.PvPManager.InitialFriendsListRequest + fullName: ChebsValheimLibrary.PvP.PvPManager.InitialFriendsListRequest() + nameWithType: PvPManager.InitialFriendsListRequest() +- uid: ChebsValheimLibrary.PvP.PvPManager.InitialFriendsListRequest* + name: InitialFriendsListRequest + href: api/ChebsValheimLibrary.PvP.PvPManager.html#ChebsValheimLibrary_PvP_PvPManager_InitialFriendsListRequest_ + commentId: Overload:ChebsValheimLibrary.PvP.PvPManager.InitialFriendsListRequest + isSpec: "True" + fullName: ChebsValheimLibrary.PvP.PvPManager.InitialFriendsListRequest + nameWithType: PvPManager.InitialFriendsListRequest - uid: ChebsValheimLibrary.PvP.PvPManager.UpdatePlayerFriendsDict(System.Collections.Generic.List{System.String}) name: UpdatePlayerFriendsDict(List) href: api/ChebsValheimLibrary.PvP.PvPManager.html#ChebsValheimLibrary_PvP_PvPManager_UpdatePlayerFriendsDict_System_Collections_Generic_List_System_String__