38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
using Fusion;
|
|
|
|
namespace Baba_yaga.Game
|
|
{
|
|
[System.Serializable]
|
|
[UnityEngine.Scripting.APIUpdating.MovedFrom(true, sourceNamespace: "Hallucinate.Game", sourceAssembly: "Opsive.UltimateCharacterController")]
|
|
public struct PlayerEloData
|
|
{
|
|
public int Rating;
|
|
public int GamesPlayed;
|
|
|
|
public PlayerEloData(int rating, int gamesPlayed)
|
|
{
|
|
Rating = rating;
|
|
GamesPlayed = gamesPlayed;
|
|
}
|
|
|
|
public static PlayerEloData Default => new PlayerEloData(1000, 0);
|
|
}
|
|
|
|
[UnityEngine.Scripting.APIUpdating.MovedFrom(true, sourceNamespace: "Hallucinate.Game", sourceAssembly: "Opsive.UltimateCharacterController")]
|
|
public struct EloResult : INetworkStruct
|
|
{
|
|
public int NewRatingA;
|
|
public int NewRatingB;
|
|
public int DeltaA;
|
|
public int DeltaB;
|
|
|
|
public EloResult(int nA, int nB, int dA, int dB)
|
|
{
|
|
NewRatingA = nA;
|
|
NewRatingB = nB;
|
|
DeltaA = dA;
|
|
DeltaB = dB;
|
|
}
|
|
}
|
|
}
|