#include "battle/battle.h"
#include "mapfs/trd_bt05_shape.h"

#define NAMESPACE A(trd_05d)

#include "battle/common/stage/lib/BeachEffects.inc.c"

EvtScript N(EVS_PreBattle) = {
    Call(SetSpriteShading, SHADING_NONE)
    Call(SetCamBGColor, CAM_BATTLE, 0, 0, 0)
    Call(EnableModel, MODEL_yuka3, FALSE)
    Call(EnableModel, MODEL_hako, FALSE)
    Call(EnableModel, MODEL_kai, FALSE)
    Call(EnableModel, MODEL_kusari1, FALSE)
    Call(EnableModel, MODEL_mizu4, FALSE)
    Call(EnableModel, MODEL_hikari2, FALSE)
    Call(EnableModel, MODEL_o318, FALSE)
    Thread
        Set(LVar0, MODEL_mizu3)
        Exec(N(EVS_AnimateWave))
        Wait(5)
        Set(LVar0, MODEL_mizu2)
        Exec(N(EVS_AnimateWave))
        Wait(5)
        Set(LVar0, MODEL_mizu1)
        Exec(N(EVS_AnimateWave))
    EndThread
    Return
    End
};

EvtScript N(EVS_PostBattle) = {
    Return
    End
};

Stage NAMESPACE = {
    .texture = "trd_tex",
    .shape = "trd_bt05_shape",
    .hit = "trd_bt05_hit",
    .preBattle = &N(EVS_PreBattle),
    .postBattle = &N(EVS_PostBattle),
};
