public Record(string type, string editor_id, UInt32 flags) { this.type = type.ToCharArray(0, 4); this.flags = flags; this.id = FormID.set(editor_id); this.revision = 5906; this.version = 43; this.unknown = 0; }
public void clone(Record r, string editor_id) { this.compressed = r.isCompressed(); this.type = r.type; this.dataSize = r.dataSize; this.flags = r.flags; Field EDID = r.find_field_OR_FAIL("EDID", "To Be Cloned Record has no Editor_ID, is it a REFR?"); EDID.replaceData(Text.editor_id(editor_id)); this.id = FormID.set(editor_id); this.revision = r.revision; this.version = r.version; this.unknown = r.unknown; this.fields = new List <Field>();// r.fields; foreach (Field f in r.fields) { this.fields.Add(new Field(f)); } }
// Call to assign new formid. LGTM calls this public void reset_formid(string editor_id) { this.id = FormID.set(editor_id); }