1 |
using System; |
2 |
using Oni.Metadata; |
3 |
|
4 |
namespace Oni |
5 |
{ |
6 |
internal sealed class Template |
7 |
{ |
8 |
private readonly TemplateTag tag; |
9 |
private readonly string description; |
10 |
private readonly MetaStruct type; |
11 |
private readonly long checksum; |
12 |
|
13 |
internal Template(TemplateTag tag, MetaStruct type, long checksum, string description) |
14 |
{ |
15 |
this.tag = tag; |
16 |
this.type = type; |
17 |
this.checksum = checksum; |
18 |
this.description = description; |
19 |
} |
20 |
|
21 |
public TemplateTag Tag => tag; |
22 |
public MetaStruct Type => type; |
23 |
public long Checksum => checksum; |
24 |
public string Description => description; |
25 |
public bool IsLeaf => type.IsLeaf; |
26 |
} |
27 |
} |