コード例 #1
0
// serialization
bool DispelMgefHandler::LoadHandlerChunk(TESFile& file, UInt32 RecordVersion)
{
    if (file.currentChunk.chunkLength != kEHNDChunkSize) return false;  // wrong chunk size
    file.GetChunkData(&ehCode,kEHNDChunkSize);
    TESFileFormats::ResolveModValue(mgefCode,file,TESFileFormats::kResType_MgefCode);  // resolve targeted mgefCode  
    TESFileFormats::ResolveModValue(magicitemFormID,file,TESFileFormats::kResType_FormID);  // resolve targeted magic item
    return true;
}
コード例 #2
0
// serialization
bool ScriptMgefHandler::LoadHandlerChunk(TESFile& file, UInt32 RecordVersion)
{
    if (file.currentChunk.chunkLength != kEHNDChunkSize) return false;  // wrong chunk size
    file.GetChunkData(&scriptFormID,kEHNDChunkSize);
    TESFileFormats::ResolveModValue(scriptFormID,file,TESFileFormats::kResType_FormID);  // resolve script formID    
    TESFileFormats::ResolveModValue(customParam,file,customParamResType);  // resolve script formID
    return true;
}