예제 #1
0
파일: adt.cpp 프로젝트: Rastrian/CataCore
bool adt_MCNK::prepareLoadedData()
{
    if (fcc != MCNKMagic.fcc)
        return false;

    // Check height map
    if (offsMCVT && !getMCVT()->prepareLoadedData())
        return false;
    // Check liquid data
    if (offsMCLQ && !getMCLQ()->prepareLoadedData())
        return false;

    return true;
}
예제 #2
0
파일: adt.cpp 프로젝트: Aincent/server
bool adt_MCNK::prepareLoadedData()
{
    if (fcc != 'MCNK')
        { return false; }

    // Check height map
    if (offsMCVT && !getMCVT()->prepareLoadedData())
        { return false; }
    // Check liquid data
    if (offsMCLQ && !getMCLQ()->prepareLoadedData())
        { return false; }

    return true;
}
예제 #3
0
bool adt_MCNK::prepareLoadedData()
{
    if (fcc != 'MCNK')
        return false;

    // Check height map
    if (offsMCVT && !getMCVT()->prepareLoadedData())
        return false;
    // Check liquid data
    if (offsMCLQ && !getMCLQ()->prepareLoadedData())
        return false;

    (void)this->size;

    return true;
}
예제 #4
0
bool adt_MCNK::prepareLoadedData()
{
    if( ( fcc_txt[ 3 ] != 'M' ) ||
		( fcc_txt[ 2 ] != 'C' ) ||
		( fcc_txt[ 1 ] != 'N' ) ||
		( fcc_txt[ 0 ] != 'K' ) )
		return false;

    // Check height map
    if (offsMCVT && !getMCVT()->prepareLoadedData())
        return false;
    // Check liquid data
    if (offsMCLQ && !getMCLQ()->prepareLoadedData())
        return false;

    return true;
}