2024-02-07 16:40:36 +01:00
|
|
|
// Licensed to Timothy Schenk under the GNU AGPL Version 3 License.
|
2023-11-20 19:58:30 +01:00
|
|
|
|
2023-11-08 19:04:37 +01:00
|
|
|
using JetBrains.Annotations;
|
|
|
|
|
|
|
|
namespace Wonderking.Game;
|
|
|
|
|
|
|
|
[AttributeUsage(AttributeTargets.Struct | AttributeTargets.Class)]
|
2025-01-16 14:30:40 +01:00
|
|
|
public class GameDataMetadataAttribute(ushort dataEntrySize, string datFileName, byte xorKey) : Attribute {
|
2023-11-08 19:04:37 +01:00
|
|
|
[UsedImplicitly] public byte XorKey { get; init; } = xorKey;
|
|
|
|
[UsedImplicitly] public ushort DataEntrySize { get; init; } = dataEntrySize;
|
|
|
|
|
|
|
|
[UsedImplicitly] internal string DatFileName { get; init; } = datFileName;
|
|
|
|
}
|