Implement deterministic simulation spine
This commit is contained in:
24
src/SideScrollerGame.Sim/Runtime/PlayerSnapshot.cs
Normal file
24
src/SideScrollerGame.Sim/Runtime/PlayerSnapshot.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using SideScrollerGame.Sim.Math;
|
||||
|
||||
namespace SideScrollerGame.Sim.Runtime;
|
||||
|
||||
[ExcludeFromCodeCoverage]
|
||||
public sealed record PlayerSnapshot
|
||||
{
|
||||
public PlayerSnapshot(PlayerId playerId, FixPointVector2 position, sbyte moveAxisX, sbyte moveAxisY)
|
||||
{
|
||||
PlayerId = playerId;
|
||||
Position = position;
|
||||
MoveAxisX = moveAxisX;
|
||||
MoveAxisY = moveAxisY;
|
||||
}
|
||||
|
||||
public PlayerId PlayerId { get; init; }
|
||||
|
||||
public FixPointVector2 Position { get; init; }
|
||||
|
||||
public sbyte MoveAxisX { get; init; }
|
||||
|
||||
public sbyte MoveAxisY { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user