Add IStringEncodable

This commit is contained in:
Yoshi Askharoun
2024-02-12 12:15:35 -06:00
parent a5b9b12908
commit 23d20873cf
8 changed files with 45 additions and 7 deletions
+3 -1
View File
@@ -8,7 +8,7 @@ using System;
namespace Microsoft.Iris.Render
{
public struct Size
public struct Size : IStringEncodable
{
private int m_width;
private int m_height;
@@ -106,5 +106,7 @@ namespace Microsoft.Iris.Render
size1.Scale(flScale);
return size1;
}
public string EncodeString() => $"{Width}, {Height}";
}
}