Skip to content

asundheimMSFT/SlippiNetTesting

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NuGet version (Slippi.NET)

Slippi.NET

This project is a port of slippi-js to modern .NET while maintaining a similar API surface.

Internally an attempt is made to use stack-allocated System.Span<byte> wherever possible.

Download

This package is available on nuget.org and can be referenced by simply adding a <PackageReference> to your project like:

<ItemGroup>
    <PackageReference Include="Slippi.NET" Version="0.8.0" />
</ItemGroup>

Usage

Just as in slippi-js, the main entrypoint is SlippiGame, taking either a filepath or a byte buffer.

SlippiGame game = new SlippiGame('./game.slp');
// do things with game

Connection

Using DolphinConnection is very straightforward, create a new DolphinConnection and call Connect with an IP address and port. You can listen to the events defined on the base Connection class for updates and information on the Dolphin instance.

If Dolphin is local, you can use 127.0.0.1. The Ports enumeration provides common values for ports, with Default (51441) being the standard one that Dolphin uses.

You can find an example in src/DolphinConnectionTestApp/.

Development

Restore and build Slippi.NET.sln from the root of the project.

Currently all projects target .NET 8+ to make use of the latest Span improvements to the standard library.

Tests

The Slippi.NET.Tests contains all unit tests for the project. All tests have been ported from slippi-js.

About

Testing fork

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C# 58.0%
  • C 41.1%
  • C++ 0.9%