You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Pan.cs 639 B

12345678910111213141516171819202122232425
  1. using System.Diagnostics;
  2. using Model = Discord.API.Rpc.Pan;
  3. namespace Discord.Rpc
  4. {
  5. [DebuggerDisplay(@"{DebuggerDisplay,nq}")]
  6. public struct Pan
  7. {
  8. public float Left { get; }
  9. public float Right { get; }
  10. public Pan(float left, float right)
  11. {
  12. Left = left;
  13. Right = right;
  14. }
  15. internal static Pan Create(Model model)
  16. {
  17. return new Pan(model.Left, model.Right);
  18. }
  19. public override string ToString() => $"Left = {Left}, Right = {Right}";
  20. private string DebuggerDisplay => $"Left = {Left}, Right = {Right}";
  21. }
  22. }