-
Notifications
You must be signed in to change notification settings - Fork 0
/
NBTAttributes.cs
38 lines (35 loc) · 954 Bytes
/
NBTAttributes.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.Collections.Generic;
using System.Text;
namespace NBT
{
/// <summary>
/// Denotes that the attached class represents an NBT compound.
/// </summary>
public class NBTCompound : Attribute { }
/// <summary>
/// Denotes that the attached property represents a list of NBT compounds,
/// and what types to use for which indices.
/// </summary>
public class NBTCompoundList : Attribute
{
public Type Type { get; private set; }
public NBTCompoundList(Type type)
{
Type = type;
}
}
/// <summary>
/// Attribute class for all NBT data tags.
/// </summary>
public class NBTItem : Attribute
{
public string Name { get; set; }
public bool IsRegex { get; set; }
public NBTItem(string name = null, bool isRegex = false)
{
Name = name;
IsRegex = isRegex;
}
}
}