31 lines
554 B
C#
31 lines
554 B
C#
using Qrakhen.Qamp.Core.Collections;
|
|
|
|
namespace Qrakhen.Qamp.Core.Values.Objects;
|
|
|
|
public static class ObjRegister
|
|
{
|
|
private static readonly Addreg<Obj> _register = [];
|
|
}
|
|
|
|
public class Obj(ValueType type) : ITypedValue
|
|
{
|
|
public bool __gcMarked = false;
|
|
public int __gcCount = 1;
|
|
|
|
public readonly ValueType Type = type;
|
|
|
|
public ValueType ValueType => Type;
|
|
|
|
public static Value Create(Obj obj)
|
|
{
|
|
return new Value(Ptr.Create(obj));
|
|
}
|
|
|
|
public override string ToString() => "Obj<undefined>";
|
|
|
|
static Obj()
|
|
{
|
|
|
|
}
|
|
}
|