mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2024-11-23 19:42:51 +01:00
11 lines
228 B
C#
11 lines
228 B
C#
using MemoryPack;
|
|
|
|
namespace Phantom.Common.Data;
|
|
|
|
[MemoryPackable]
|
|
public readonly partial record struct Optional<T>(T? Value) {
|
|
public static implicit operator Optional<T>(T? value) {
|
|
return new Optional<T>(value);
|
|
}
|
|
}
|