mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 06:27:45 +00:00
more naming and style consistency in ScriptAPI
This commit is contained in:
parent
ba5fc6781d
commit
5802c813fe
2 changed files with 9 additions and 9 deletions
|
@ -102,8 +102,8 @@ namespace Sapphire::ScriptAPI
|
|||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
|
||||
EventScript::EventScript( uint32_t questId ) :
|
||||
ScriptObject( questId, typeid( EventScript ).hash_code() )
|
||||
EventScript::EventScript( uint32_t eventId ) :
|
||||
ScriptObject( eventId, typeid( EventScript ).hash_code() )
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -131,8 +131,8 @@ namespace Sapphire::ScriptAPI
|
|||
{
|
||||
}
|
||||
|
||||
void
|
||||
EventScript::onEventItem( Entity::Player& player, uint32_t eventItemId, uint32_t eventId, uint32_t castTime, uint64_t targetId )
|
||||
void EventScript::onEventItem( Entity::Player& player, uint32_t eventItemId, uint32_t eventId, uint32_t castTime,
|
||||
uint64_t targetId )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -161,7 +161,7 @@ namespace Sapphire::ScriptAPI
|
|||
}
|
||||
|
||||
public:
|
||||
explicit EventScript( uint32_t questId );
|
||||
explicit EventScript( uint32_t eventId );
|
||||
|
||||
virtual void onTalk( uint32_t eventId, Sapphire::Entity::Player& player, uint64_t actorId );
|
||||
|
||||
|
@ -171,12 +171,12 @@ namespace Sapphire::ScriptAPI
|
|||
|
||||
virtual void onEnterTerritory( Sapphire::Entity::Player& player, uint32_t eventId, uint16_t param1, uint16_t param2 );
|
||||
|
||||
virtual void onWithinRange( Sapphire::Entity::Player& player, uint32_t eventId, uint32_t param1, float x, float y, float z );
|
||||
virtual void onWithinRange( Sapphire::Entity::Player& player, uint32_t eventId, uint32_t param1,float x, float y, float z );
|
||||
|
||||
virtual void onOutsideRange( Sapphire::Entity::Player& player, uint32_t eventId, uint32_t param1, float x, float y, float z );
|
||||
|
||||
virtual void
|
||||
onEventItem( Sapphire::Entity::Player& player, uint32_t eventItemId, uint32_t eventId, uint32_t castTime, uint64_t targetId );
|
||||
virtual void onEventItem( Sapphire::Entity::Player& player, uint32_t eventItemId, uint32_t eventId, uint32_t castTime,
|
||||
uint64_t targetId );
|
||||
|
||||
virtual void onEventHandlerTradeReturn( Sapphire::Entity::Player& player, uint32_t eventId, uint16_t subEvent, uint16_t param,
|
||||
uint32_t catalogId );
|
||||
|
|
Loading…
Add table
Reference in a new issue