protected override void OnParse(VoidPtr address) { sDataUnknown22 *hdr = (sDataUnknown22 *)address; _unk1 = hdr->_unk1; _unk2 = hdr->_unk2; _actionOffset = hdr->_actionOffset; if (_actionOffset > 0) { _script = Parse <Script>(_actionOffset); } }
protected override void OnWrite(VoidPtr address) { RebuildAddress = address; sDataUnknown22 *data = (sDataUnknown22 *)address; data->_unk1 = _unk1; data->_unk2 = _unk2; if (_script != null && _script.Count > 0) { data->_actionOffset = Offset(_script.RebuildAddress); _lookupOffsets.Add(&data->_actionOffset); } }