ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/OniSplit/Template.cs
Revision: 1114
Committed: Wed Jan 22 14:08:57 2020 UTC (5 years, 8 months ago) by iritscen
File size: 767 byte(s)
Log Message:
Adding OniSplit source code (v0.9.99.0). Many thanks to Neo for all his work over the years.

File Contents

# Content
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 }