Archipelago.MultiClient.Net 2.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Archipelago.MultiClient.Net --version 2.1.0                
NuGet\Install-Package Archipelago.MultiClient.Net -Version 2.1.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Archipelago.MultiClient.Net" Version="2.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Archipelago.MultiClient.Net --version 2.1.0                
#r "nuget: Archipelago.MultiClient.Net, 2.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Archipelago.MultiClient.Net as a Cake Addin
#addin nuget:?package=Archipelago.MultiClient.Net&version=2.1.0

// Install Archipelago.MultiClient.Net as a Cake Tool
#tool nuget:?package=Archipelago.MultiClient.Net&version=2.1.0                

Archipelago.MultiClient.Net

A client library for use with .NET based prog-langs for interfacing with Archipelago hosts.

Getting Started

var session = ArchipelagoSessionFactory.CreateSession("localhost", 38281);

session.TryConnectAndLogin("Risk of Rain 2", "Ijwu", new Version(2,1,0));
session.Locations.CompleteLocationChecks(42);

The ArchipelagoSession object is your entrypoint for all operations with the server. The session object exposes various helpers which provide functionality for various objectives you might be trying to achieve.

LocationCheckHelper

The location check helper may be used to complete or scout location checks. The API also provides utility functions such as retrieving the name of a location from numerical id.

var session = ArchipelagoSessionFactory.CreateSession("localhost", 38281);

session.TryConnectAndLogin("Risk of Rain 2", "Ijwu", new Version(2,1,0));
session.Locations.CompleteLocationChecks(42);

string locationName = session.Locations.GetLocationNameFromId(42);
int locationId = session.Locations.GetLocationIdFromName(locationName);

session.Locations.ScoutLocationsAsync(locationInfoPacket => Console.WriteLine(locationInfoPacket.Locations.Count));

ReceivedItemsHelper

The received items helper provides an interface for retrieving the list of received items as well as a C# event for when an item is received. The event automatically executes its registered event handlers when an item is received. A utility method is also included for getting an item name from numerical id.

var session = ArchipelagoSessionFactory.CreateSession("localhost", 38281);

session.TryConnectAndLogin("Risk of Rain 2", "Ijwu", new Version(2,1,0));
session.Items.ItemReceived += (receivedItemsHelper) => {
	var itemReceivedName = receivedItemsHelper.PeekItemName();
	// ... Handle item receipt.

	receivedItemsHelper.DequeueItem();
};

PlayerHelper

The player helper provides methods for accessing details about the other players currently connected to the Archipelago session.

var session = ArchipelagoSessionFactory.CreateSession("localhost", 38281);

session.TryConnectAndLogin("Risk of Rain 2", "Ijwu", new Version(2,1,0));
var sortedPlayerNames = session.Players.AllPlayers.Select(x => x.Name).OrderBy(x => x);

ArchipelagoSocketHelper

The socket helper is a lower level API allowing for direct access to the socket which the session object uses to communicate with the Archipelago server. You may use this object to hook onto when messages are received or you may use it to send any packets defined in the library. Various events are exposed to allow for receipt of errors or notifying of socket close.

var session = ArchipelagoSessionFactory.CreateSession("localhost", 38281);

session.TryConnectAndLogin("Risk of Rain 2", "Ijwu", new Version(2,1,0));
session.Socket.SendPacket(new SayPacket(){Text = "Woof woof!"});

DeathLink support is included in the library. You may enable it by using the CreateDeathLinkServiceAndEnable in the DeathLinkProvider class. This method is also an extension method so you may enable it more easily.

var session = ArchipelagoSessionFactory.CreateSession("localhost", 38281);

var deathLinkService = session.CreateDeathLinkServiceAndEnable();
session.TryConnectAndLogin("Risk of Rain 2", "Ijwu", new Version(2,1,0));

deathLinkService.OnDeathLinkReceived += (deathLinkObject) => {
	// ... Kill your player(s).
};

// ... On death:
deathLinkService.SendDeathLink(new DeathLink("Ijwu", "Died to exposure."));
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net35 is compatible.  net40 was computed.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 3.5

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Archipelago.MultiClient.Net:

Package Downloads
Archipelago.Gifting.Net

.NET library for Archipelago Gifting

KaitoKid.ArchipelagoUtilities.Net

.NET library for Archipelago Utilities

Archipelago.Core

A class library for interfacing between various emulators and Archipelago Multiworld Randomiser.

AShortHike.Randomizer

The client mod for A Short Hike through Archipelago

Blasphemous.Randomizer.Multiworld

A multiworld client for the Blasphemous Randomizer

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
6.3.1 720 8/25/2024
6.3.0 705 8/2/2024
6.2.0 1,090 7/6/2024
6.1.1 204 6/19/2024
6.0.1 133 6/11/2024
6.0.0 291 6/9/2024
6.0.0-rc5 215 5/31/2024
6.0.0-rc4 106 5/31/2024
6.0.0-rc3 97 5/31/2024
6.0.0-rc2 90 5/31/2024
6.0.0-rc1 97 5/30/2024
5.0.6 1,362 7/22/2023
5.0.5 832 6/11/2023
5.0.4 193 5/7/2023
5.0.3 234 4/30/2023
5.0.2 164 4/30/2023
5.0.1 762 4/30/2023
4.2.5-betav6 118 4/27/2023
4.2.5-betav5 129 4/22/2023
4.2.5-betav4 143 4/21/2023
4.2.5-betav3 124 4/14/2023
4.2.5-betav2 136 3/29/2023
4.2.5-beta 130 3/28/2023
4.2.4 374 1/31/2023
4.2.2 344 1/9/2023
4.2.1 328 12/27/2022
4.2.0 296 12/26/2022
4.1.2 367 11/24/2022
4.0.0 419 8/16/2022
3.1.0 453 6/11/2022
3.0.1 473 3/31/2022
2.1.0 290 1/6/2022