PacketMediator/RaiNote.PacketMediator/IntermediatePacketHandlerData.cs

30 lines
997 B
C#
Raw Normal View History

2025-01-17 08:53:44 +00:00
// Licensed to Timothy Schenk under the Apache 2.0 License.
using Microsoft.CodeAnalysis;
namespace RaiNote.PacketMediator;
2025-01-18 20:32:43 +00:00
internal class IntermediatePacketHandlerData {
public IntermediatePacketHandlerData(string packetHandlerIdentifier,
IntermediatePacketStructHandlerData? packetStructHandlerData) {
2025-01-17 08:53:44 +00:00
PacketHandlerIdentifier = packetHandlerIdentifier;
PacketStructHandlerData = packetStructHandlerData;
}
public string PacketHandlerIdentifier { get; set; }
public IntermediatePacketStructHandlerData? PacketStructHandlerData { get; set; }
}
2025-01-18 20:32:43 +00:00
internal record IntermediatePacketStructData(
Location SymbolLocation,
string PacketStructFullIdentifier,
string EnumValue,
string EnumTypeFullIdentifier,
string EnumMemberIdentifier,
string EnumMaxValue,
bool ImplementsInterface);
internal record IntermediateHandlerAndStructTuple(
IntermediatePacketHandlerData HandlerData,
IntermediatePacketStructData StructData);