|
|
|
@ -234,33 +234,15 @@ void ESM4::Npc::load(ESM4::Reader& reader)
|
|
|
|
|
case ESM4::SUB_DPLT:
|
|
|
|
|
reader.getFormId(mDefaultPkg);
|
|
|
|
|
break; // AI package list
|
|
|
|
|
case ESM4::SUB_DAMC: // Destructible
|
|
|
|
|
case ESM4::SUB_DEST:
|
|
|
|
|
case ESM4::SUB_DMDC:
|
|
|
|
|
case ESM4::SUB_DMDL:
|
|
|
|
|
case ESM4::SUB_DMDT:
|
|
|
|
|
case ESM4::SUB_DMDS:
|
|
|
|
|
case ESM4::SUB_DSTA:
|
|
|
|
|
case ESM4::SUB_DSTD:
|
|
|
|
|
case ESM4::SUB_DSTF:
|
|
|
|
|
{
|
|
|
|
|
#if 0
|
|
|
|
|
std::vector<unsigned char> dataBuf(subHdr.dataSize);
|
|
|
|
|
reader.get(dataBuf.data(), subHdr.dataSize);
|
|
|
|
|
|
|
|
|
|
std::ostringstream ss;
|
|
|
|
|
ss << mEditorId << " " << ESM::printName(subHdr.typeId) << ":size " << subHdr.dataSize << "\n";
|
|
|
|
|
for (std::size_t i = 0; i < subHdr.dataSize; ++i)
|
|
|
|
|
{
|
|
|
|
|
if (dataBuf[i] > 64 && dataBuf[i] < 91) // looks like printable ascii char
|
|
|
|
|
ss << (char)(dataBuf[i]) << " ";
|
|
|
|
|
else
|
|
|
|
|
ss << std::setfill('0') << std::setw(2) << std::hex << (int)(dataBuf[i]);
|
|
|
|
|
if ((i & 0x000f) == 0xf) // wrap around
|
|
|
|
|
ss << "\n";
|
|
|
|
|
else if (i < (size_t)(subHdr.dataSize - 1)) // quiesce gcc
|
|
|
|
|
ss << " ";
|
|
|
|
|
}
|
|
|
|
|
std::cout << ss.str() << std::endl;
|
|
|
|
|
#else
|
|
|
|
|
reader.skipSubRecordData();
|
|
|
|
|
#endif
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case ESM4::SUB_DSTF: // Destructible end
|
|
|
|
|
case ESM4::SUB_NAM6: // height mult
|
|
|
|
|
case ESM4::SUB_NAM7: // weight mult
|
|
|
|
|
case ESM4::SUB_ATKR:
|
|
|
|
|