using System.Collections.Generic; using System.Text.Json; namespace BubbleSocketCore.Input { public class PlayerInput { public int type; public int value; public PlayerInput(int type, int value) { this.type = type; this.value = value; } override public string ToString() { return JsonSerializer.Serialize(Serialize()); } public List Serialize() { return new List { $"{type}", $"{value}" }; } internal PlayerInput Clone() { return new PlayerInput(this.type, this.value); } } }