コード例 #1
0
ファイル: Record.cs プロジェクト: Hashmi1/IndorilConverter
        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;
        }
コード例 #2
0
ファイル: Record.cs プロジェクト: Hashmi1/IndorilConverter
        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));
            }
        }
コード例 #3
0
ファイル: Record.cs プロジェクト: Hashmi1/IndorilConverter
 // Call to assign new formid. LGTM calls this
 public void reset_formid(string editor_id)
 {
     this.id = FormID.set(editor_id);
 }