Last change
on this file since 1161 was 1114, checked in by iritscen, 5 years ago |
Adding OniSplit source code (v0.9.99.0). Many thanks to Neo for all his work over the years.
|
File size:
767 bytes
|
Rev | Line | |
---|
[1114] | 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 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.