1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-28 15:17:46 +00:00
sapphire/src/scripts/common/CmnDefWeatherForeCast.cpp

29 lines
No EOL
659 B
C++

#include <ScriptObject.h>
#include <Actor/Player.h>
using namespace Sapphire;
class CmnDefWeatherForeCast :
public Sapphire::ScriptAPI::EventScript
{
public:
CmnDefWeatherForeCast() :
Sapphire::ScriptAPI::EventScript( 721100 )
{
}
void Scene00000( Entity::Player& player )
{
eventMgr().playScene( player, getId(), 0, HIDE_HOTBAR,
[ & ]( Entity::Player& player, const Event::SceneResult& result )
{
} );
}
void onTalk( uint32_t eventId, Entity::Player& player, uint64_t actorId ) override
{
Scene00000( player );
}
};
EXPOSE_SCRIPT( CmnDefWeatherForeCast );