DemoFile.Game.Deadlock 0.25.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package DemoFile.Game.Deadlock --version 0.25.1                
NuGet\Install-Package DemoFile.Game.Deadlock -Version 0.25.1                
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="DemoFile.Game.Deadlock" Version="0.25.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DemoFile.Game.Deadlock --version 0.25.1                
#r "nuget: DemoFile.Game.Deadlock, 0.25.1"                
#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 DemoFile.Game.Deadlock as a Cake Addin
#addin nuget:?package=DemoFile.Game.Deadlock&version=0.25.1

// Install DemoFile.Game.Deadlock as a Cake Tool
#tool nuget:?package=DemoFile.Game.Deadlock&version=0.25.1                

DemoFile.Game.Deadlock NuGet

DemoFile.Net is a blazing fast demo parser library for Source 2 games, written in C#. It is cross-platform, and can be used on Windows, Mac or Linux.

[!IMPORTANT] This DemoFile.Game.Deadlock package provides support for parsing Deadlock demos. See DemoFile on NuGet for more information about the base library.

Features

Feature Availability
TV demos ✅ Full support
POV demos ✅ Full support
HTTP broadcasts ✅ Full support
Game events (e.g. zipline_player_attached) ✅ Full support
Entity updates (player positions, abilities, etc.) ✅ Full support
Seeking forwards/backwards through the demo ✅ Full support

Examples

using DemoFile;

internal class Program
{
    public static async Task Main(string[] args)
    {
        var path = args.SingleOrDefault() ?? throw new Exception("Expected a single argument: <path to .dem>");

        var demo = new DeadlockDemoParser();
        demo.Source1GameEvents.PlayerDeath += e =>
        {
            Console.WriteLine($"{e.Attacker?.PlayerName} [{e.Weapon}] {e.Player?.PlayerName}");
        };

        var reader = DemoFileReader.Create(demo, File.OpenRead(path));
        await reader.ReadAllAsync();

        Console.WriteLine("\nFinished!");
    }
}
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.27.1 128 11/2/2024
0.26.1 85 10/29/2024
0.25.1 115 10/12/2024
0.24.1 87 10/7/2024
0.23.1 114 9/27/2024
0.22.3 101 9/23/2024
0.22.1 94 9/22/2024
0.21.1 101 9/14/2024
0.21.1-g27b712d66f 83 9/14/2024
0.0.0-g27b712d66f 83 9/14/2024