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