ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/OniSplit/ImporterDescriptor.cs
Revision: 1114
Committed: Wed Jan 22 14:08:57 2020 UTC (5 years, 8 months ago) by iritscen
File size: 768 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 namespace Oni
2 {
3 internal abstract class ImporterDescriptor
4 {
5 private readonly ImporterFile file;
6 private readonly TemplateTag tag;
7 private readonly int index;
8 private readonly string name;
9
10 protected ImporterDescriptor(ImporterFile file, TemplateTag tag, int index, string name)
11 {
12 this.file = file;
13 this.tag = tag;
14 this.index = index;
15 this.name = name;
16 }
17
18 public ImporterFile File => file;
19 public TemplateTag Tag => tag;
20 public int Index => index;
21 public string Name => name;
22
23 public abstract BinaryWriter OpenWrite();
24 public abstract BinaryWriter OpenWrite(int offset);
25 }
26 }