File tree Expand file tree Collapse file tree 10 files changed +26
-23
lines changed
benchmarks/Backdash.Benchmarks.Ping Expand file tree Collapse file tree 10 files changed +26
-23
lines changed Original file line number Diff line number Diff line change 33using Backdash . Core ;
44using Backdash . Network . Client ;
55using Backdash . Serialization . Internal ;
6+ using static Backdash . Core . NetcodeConstants ;
67
78var totalDuration = TimeSpan . FromSeconds ( 10 ) ;
89var snapshotInterval = TimeSpan . FromSeconds ( 0 ) ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
2+ global using Max = Backdash . Core . NetcodeConstants . Max ;
3+
4+ namespace Backdash . Core ;
5+
6+ /// <summary>
7+ /// SDK constant values
8+ /// </summary>
9+ public static class NetcodeConstants
10+ {
11+ /// <summary>
12+ /// maximum values
13+ /// </summary>
14+ public static class Max
15+ {
16+ public const int NumberOfPlayers = 4 ;
17+ public const int NumberOfSpectators = 32 ;
18+ public const int CompressedBytes = 512 ;
19+ public const int UdpPacketSize = 65_527 ;
20+ public const int PackageQueue = 64 ;
21+ }
22+ }
Original file line number Diff line number Diff line change 1- using Backdash . Core ;
21using Backdash . Network ;
32using Backdash . Network . Client ;
43using Backdash . Synchronizing . State ;
@@ -20,8 +19,8 @@ public sealed record NetcodeOptions
2019 public int LocalPort { get ; set ; }
2120
2221 /// <summary>
23- /// Number of players
24- /// Can not be greater than <see cref="Max.NumberOfPlayers" />
22+ /// Session number of players
23+ /// Can't be greater than <see cref="Max.NumberOfPlayers" />
2524 /// </summary>
2625 /// <value>Defaults to <c>2</c></value>
2726 public int NumberOfPlayers { get ; set ; } = 2 ;
Original file line number Diff line number Diff line change 1- using Backdash . Core ;
21using Backdash . Network ;
32using Backdash . Network . Client ;
43
Original file line number Diff line number Diff line change 1- using Backdash . Core ;
21using Backdash . Options ;
32
43namespace Backdash ;
Original file line number Diff line number Diff line change 11using System . Buffers ;
2- using Backdash . Core ;
32using Backdash . Network ;
43using Backdash . Serialization ;
54
Original file line number Diff line number Diff line change 11using System . Numerics ;
2- using Backdash . Core ;
32using Backdash . Data ;
43using Backdash . Network ;
54
Original file line number Diff line number Diff line change 11using System . Drawing ;
22using System . Numerics ;
33using System . Text ;
4- using Backdash . Core ;
54using Backdash . Data ;
65using Backdash . Network . Messages ;
76using Backdash . Synchronizing . Input ;
Original file line number Diff line number Diff line change 66global using FluentAssertions ;
77global using FsCheck ;
88global using Xunit ;
9+ global using Max = Backdash . Core . NetcodeConstants . Max ;
910global using GameInput = Backdash . Synchronizing . Input . GameInput < Backdash . Tests . TestUtils . TestInput > ;
1011global using Random = System . Random ;
You can’t perform that action at this time.
0 commit comments