mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-22 14:35:48 +00:00
17 lines
433 B
C#
17 lines
433 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace PckStudio.Core
|
|
{
|
|
public readonly struct NamedData<T>(string name, T value)
|
|
{
|
|
public readonly string Name = name;
|
|
public readonly T Value = value;
|
|
|
|
public static implicit operator NamedData<T>(KeyValuePair<string , T> kvp) => new NamedData<T>(kvp.Key, kvp.Value);
|
|
}
|
|
}
|