LANCommander/LANCommander.SDK
2025-05-27 21:38:32 +02:00
..
Enums Add server scripts to execute on game start/stop, refactor how play sessions are recorded 2025-02-23 15:39:06 -06:00
Exceptions Fix missing exception 2025-03-14 11:28:07 -05:00
Extensions Remove-game-library dialog to remove base game + addons 2025-05-25 22:25:17 +02:00
Helpers Utilizing MadMilkman.INI for ini parsing handling multi-value section entries (+ Update-IniValue parameter) 2025-05-13 02:36:37 +02:00
Interceptors If beacon address is blank, auto populate using beacon's bound interface 2025-05-04 19:25:08 -05:00
Models Remove-game-library dialog to remove base game + addons 2025-05-25 22:25:17 +02:00
PowerShell Ensure wrapping value in quotes 2025-05-13 20:40:45 +02:00
Services Fix installing addons post-installation, was using wrong base folder 2025-05-27 21:38:32 +02:00
Utilities Fix storing save game files into "Files" subfolder for single-file save-paths 2025-05-24 18:55:37 +02:00
Client.cs Add DiscoveryBeacon, DiscoveryProbe, new beacon message 2025-04-23 21:23:33 -05:00
EventArgs.cs Rough but functional download queue 2024-01-20 21:02:41 -06:00
ExtractionResult.cs Relocate crucial installation logic to SDK 2023-11-09 19:40:38 -06:00
FileTransferMonitor.cs Fixed redist installation 2025-02-04 02:34:31 -06:00
LANCommander.SDK.csproj Utilizing MadMilkman.INI for ini parsing handling multi-value section entries (+ Update-IniValue parameter) 2025-05-13 02:36:37 +02:00
package-icon.png Update icon 2025-03-06 18:38:50 -06:00
ProcessExecutionContext.cs Fix server starts 2025-02-28 22:58:28 -06:00
README.md Add NuGet info for SDK 2024-09-29 23:31:59 -05:00
TrackableStream.cs Relocate crucial installation logic to SDK 2023-11-09 19:40:38 -06:00
VersionInterceptor.cs Avoid exception on 500 responses 2024-11-07 20:41:10 -06:00

LANCommander.SDK

The LANCommander SDK is a .NET 8 assembly designed to allow developers to implement their own client. Most of the core functionality of the official launcher is implemented directly in the SDK and currently supports functionality such as:

  • Authentication to a LANCommander server
  • Installation of games / redistributables
  • Launching of games and play session tracking
  • Media linking and downloading
  • Game save uploading and downloading, including packing and extraction
  • PowerShell script execution
  • Updating player's alias and custom fields
  • Submission of issues
  • Game lobby scanning

Basic Use

In order to do almost anything through the SDK, you must have an authenticated instance of the LANCommander.SDK.Client class. Here is an example of how to instantiate the class and authenticate to a server:

var client = new LANCommander.SDK.Client("http://localhost:1337", "C:\\Games");

await client.AuthenticateAsync("username", "password");

Once the client is authenticated, everything you need is available as a manager under the client. For example, to install a game by ID you might use the following:

await client.Games.InstallAsync("114f653d-ea91-484b-8fe9-8e9bb58bde81");

Documentation

For full documentation, review the official LANCommander documentation.