summaryrefslogtreecommitdiff
path: root/src/REL/d/t/d_t_sound_area_mgr.cpp
blob: a9e215d2ec6cbcdde6a9061ed9fdd60cdd7fb9d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "d/t/d_t_sound_area_mgr.h"

#include "d/a/d_a_player.h"

SPECIAL_ACTOR_PROFILE(SOUND_AREA_MGR, dTgSndMg_c, fProfile::SOUND_AREA_MGR, 0x0145, 0, 0);

int dTgSndMg_c::create() {
    s8 tmpRoomId = mRoomID;
    addActorToRoom(-1);
    mRoomID = tmpRoomId;
    return SUCCEEDED;
}

int dTgSndMg_c::doDelete() {
    return SUCCEEDED;
}

int dTgSndMg_c::actorExecute() {
    if (dAcPy_c::LINK != nullptr) {
        dAcPy_c::LINK->mTgSndAreaFlags = 0;
    }
    mSndFlags = 0;
    return SUCCEEDED;
}

int dTgSndMg_c::draw() {
    return SUCCEEDED;
}