Stand/Stand/CommandPlayerVehDelete.hpp
2024-10-16 11:20:42 +08:00

21 lines
493 B
C++

#pragma once
#include "CommandPlayerVehicleAction.hpp"
namespace Stand
{
class CommandPlayerVehDelete : public CommandPlayerVehicleAction
{
public:
explicit CommandPlayerVehDelete(CommandList* parent)
: CommandPlayerVehicleAction(parent, LOC("DEL"), { CMDNAME("delveh") }, NOLABEL, PV_CONTROL | PV_ALLOWSELF, COMMANDPERM_AGGRESSIVE)
{
}
void onClickImpl(AbstractPlayer p, AbstractEntity& veh, const Click& click) const final
{
veh.removeFromPlaneOfExistence();
}
};
}