mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-25 23:18:56 -07:00
Radicade Public Code
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using RadicadeServer.Utils;
|
||||
|
||||
namespace RadicadeServer.RecNet.Progression
|
||||
{
|
||||
public class PlayerProgressionLevelUpdateNotification
|
||||
{
|
||||
public PlayerProgressionLevelUpdateNotification() { }
|
||||
|
||||
public PlayerProgressionLevelUpdateNotification(ProgressionData data)
|
||||
{
|
||||
Id = data.PlayerId;
|
||||
PlayerId = data.PlayerId;
|
||||
Level = LevelUpGiftService.DisplayLevel(data.Level);
|
||||
XP = LevelUpGiftService.XpIntoCurrentLevel(data);
|
||||
}
|
||||
|
||||
public long Id { get; set; }
|
||||
public long PlayerId { get; set; }
|
||||
public int Level { get; set; }
|
||||
public int XP { get; set; }
|
||||
|
||||
[JsonPropertyName("id")] public long IdLower { get { return Id; } }
|
||||
[JsonPropertyName("playerId")] public long PlayerIdLower { get { return PlayerId; } }
|
||||
[JsonPropertyName("level")] public int LevelLower { get { return Level; } }
|
||||
[JsonPropertyName("xp")] public int XpLower { get { return XP; } }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user