Skip to content

Commit

Permalink
test: added the type definition of the metadata JSON object
Browse files Browse the repository at this point in the history
  • Loading branch information
kurone-kito committed Sep 24, 2024
1 parent 5cb2810 commit 5f42d2c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Packages/black.kit.launchpadicons/Editor/Meta.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using System;

namespace black.kit.launchpadicons.Editor
{
/// <summary>The meta data of the icons.</summary>
[Serializable]
public sealed class Meta
{
/// <summary>New icons names.</summary>
public string[] newIcons;

/// <summary>Preferred the white icons names.</summary>
public string[] whiteIcons;

/// <summary>
/// Deconstruct the meta data.
/// </summary>
/// <param name="newIcons">New icons names.</param>
/// <param name="whiteIcons">Preferred the white icons names.</param>
public void Deconstruct(out string[] newIcons, out string[] whiteIcons)
{
newIcons = this.newIcons;
whiteIcons = this.whiteIcons;
}
}
}
11 changes: 11 additions & 0 deletions Packages/black.kit.launchpadicons/Editor/Meta.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5f42d2c

Please sign in to comment.