2024-09-01 20:42:39 +02:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace MinecraftClient.Protocol.Handlers.StructuredComponents.Core;
|
|
|
|
|
|
2024-09-11 19:12:31 +02:00
|
|
|
public abstract class SubComponent(DataTypes dataTypes, SubComponentRegistry subComponentRegistry)
|
2024-09-01 20:42:39 +02:00
|
|
|
{
|
|
|
|
|
protected DataTypes DataTypes { get; private set; } = dataTypes;
|
2024-09-11 19:12:31 +02:00
|
|
|
protected SubComponentRegistry SubComponentRegistry { get; private set; } = subComponentRegistry;
|
2024-09-01 20:42:39 +02:00
|
|
|
|
2024-09-11 19:12:31 +02:00
|
|
|
protected abstract void Parse(Queue<byte> data);
|
2024-09-01 20:42:39 +02:00
|
|
|
public abstract Queue<byte> Serialize();
|
|
|
|
|
}
|