public override void ReadData(ESPReader reader, long dataEnd) { while (reader.BaseStream.Position < dataEnd) { string subTag = reader.PeekTag(); switch (subTag) { case "EDID": if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadBinary(reader); break; case "DATA": if (Data == null) { Data = new LightingTemplateData(); } Data.ReadBinary(reader); break; default: throw new Exception(); } } }
public override void ReadDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (ele.TryPathTo("EditorID", false, out subEle)) { if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadXML(subEle, master); } if (ele.TryPathTo("Data", false, out subEle)) { if (Data == null) { Data = new LightingTemplateData(); } Data.ReadXML(subEle, master); } }
public LightingTemplate(SimpleSubrecord <String> EditorID, LightingTemplateData Data) { this.EditorID = EditorID; this.Data = Data; }
public LightingTemplate() { EditorID = new SimpleSubrecord <String>("EDID"); Data = new LightingTemplateData("DATA"); }