Exemplo n.º 1
0
 public void Write(PacketWriter w)
 {
     w.Write(StatType.GetStatByteType(_StatType));
     if (IsStringStat())
     {
         w.Write(_StringStatValue);
     }
     else
     {
         CompressedInt.Write(w, _StatValue);
     }
     w.Write(_MagicByte);
 }
Exemplo n.º 2
0
 public override string ToString()
 {
     return
         ($"({Enum.GetName(typeof(StatDataEnum), StatType.GetStatByteType(_StatType))} = {(IsStringStat() ? _StringStatValue : _StatValue.ToString())} (Extra: {_MagicByte}))");
 }