From bb13c0ae2b9589e92a7da8dac153247e54a5952a Mon Sep 17 00:00:00 2001 From: Qrakhen Date: Wed, 7 Jan 2026 18:10:42 +0100 Subject: [PATCH] dynval --- Qrakhen.Qamp.Core/Values/Objects/Obj.cs | 2 +- Qrakhen.Qamp.Core/Values/Value.cs | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Qrakhen.Qamp.Core/Values/Objects/Obj.cs b/Qrakhen.Qamp.Core/Values/Objects/Obj.cs index 58af599..f2861a4 100644 --- a/Qrakhen.Qamp.Core/Values/Objects/Obj.cs +++ b/Qrakhen.Qamp.Core/Values/Objects/Obj.cs @@ -1,6 +1,6 @@ namespace Qrakhen.Qamp.Core.Values.Objects; -public class Obj(ValueType type) : IDynamicValue +public class Obj(ValueType type) : ITypedValue { public bool __gcMarked = false; public int __gcCount = 1; diff --git a/Qrakhen.Qamp.Core/Values/Value.cs b/Qrakhen.Qamp.Core/Values/Value.cs index c50155f..2629059 100644 --- a/Qrakhen.Qamp.Core/Values/Value.cs +++ b/Qrakhen.Qamp.Core/Values/Value.cs @@ -34,14 +34,19 @@ public interface IValue T Data { get; } } -public interface IDynamicValue : IValue +public interface ITypedValue { T ValueType { get; } } +public interface IDynamicValue : IValue +{ + +} + [StructLayout(LayoutKind.Explicit, Size = 0x10)] public readonly struct Value : - IDynamicValue, + IDynamicValue, ISerialize, IDebug {