/*
    Open1560 - An Open Source Re-Implementation of Midtown Madness 1 Beta
    Copyright (C) 2020 Brick

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#include "infobase.h"

class mmRecord final : public mmInfoBase
{
public:
    // ??0mmRecord@@QAE@XZ
    ARTS_IMPORT mmRecord();

    // ??1mmRecord@@UAE@XZ
    ARTS_EXPORT ~mmRecord() override = default;

    // ??4mmRecord@@QAEXAAV0@@Z
    ARTS_IMPORT void operator=(mmRecord& arg1);

    // ?ComputeCRC@mmRecord@@QAEIXZ
    ARTS_IMPORT u32 ComputeCRC();

    // ?GetCarName@mmRecord@@QAEPADXZ
    ARTS_IMPORT char* GetCarName();

    // ?GetClass@mmRecord@@UAEPAVMetaClass@@XZ
    ARTS_IMPORT MetaClass* GetClass() override;

    // ?GetName@mmRecord@@QAEPADXZ
    ARTS_IMPORT char* GetName();

    // ?GetScore@mmRecord@@QAEHXZ
    ARTS_IMPORT i32 GetScore();

    // ?GetTime@mmRecord@@QAEMXZ
    ARTS_IMPORT f32 GetTime();

    // ?LoadBinary@mmRecord@@QAEHPAVStream@@@Z
    ARTS_IMPORT i32 LoadBinary(Stream* arg1);

    // ?SaveBinary@mmRecord@@QAEHPAVStream@@@Z
    ARTS_IMPORT i32 SaveBinary(Stream* arg1);

    // ?SetCarName@mmRecord@@QAEXPAD@Z
    ARTS_IMPORT void SetCarName(char* arg1);

    // ?SetName@mmRecord@@QAEXPAD@Z
    ARTS_IMPORT void SetName(char* arg1);

    // ?SetPassed@mmRecord@@QAEXH@Z
    ARTS_IMPORT void SetPassed(i32 arg1);

    // ?SetScore@mmRecord@@QAEXH@Z
    ARTS_IMPORT void SetScore(i32 arg1);

    // ?SetTime@mmRecord@@QAEXM@Z
    ARTS_IMPORT void SetTime(f32 arg1);

    // ?DeclareFields@mmRecord@@SAXXZ
    ARTS_IMPORT static void DeclareFields();

    u8 gap88[0x80];
};

check_size(mmRecord, 0x108);
