Replacing BasicEvent with EventProcessor
This commit is contained in:
parent
161d29515d
commit
bc6891d443
@ -4,7 +4,7 @@
|
|||||||
#include "ChatCommand.h"
|
#include "ChatCommand.h"
|
||||||
#include "Player.h"
|
#include "Player.h"
|
||||||
#include "GameObject.h"
|
#include "GameObject.h"
|
||||||
#include "BasicEvent.h"
|
#include "EventProcessor.h"
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
@ -12,10 +12,10 @@
|
|||||||
|
|
||||||
using namespace Acore::ChatCommands;
|
using namespace Acore::ChatCommands;
|
||||||
|
|
||||||
static constexpr float TELEPORT_DISTANCE = 250.0f;
|
static constexpr float TELEPORT_DISTANCE = 200.0f;
|
||||||
static constexpr float Z_BUMP = 1.5f;
|
static constexpr float Z_BUMP = 1.5f;
|
||||||
static constexpr float MIN_RETELEPORT_DIST = 1.0f;
|
static constexpr float MIN_RETELEPORT_DIST = 8.0f;
|
||||||
static constexpr uint32 RECHECK_DELAY_MS = 3000;
|
static constexpr uint32 RECHECK_DELAY_MS = 5000;
|
||||||
|
|
||||||
static const std::vector<uint32> kVeinEntries = {
|
static const std::vector<uint32> kVeinEntries = {
|
||||||
324,1610,1667,1731,1732,1733,1734,2054,2055,3763,3764,19903,
|
324,1610,1667,1731,1732,1733,1734,2054,2055,3763,3764,19903,
|
||||||
@ -57,7 +57,7 @@ public:
|
|||||||
TeleNodeRecheckEvent(Player* player, uint64 lastNodeGuidRaw)
|
TeleNodeRecheckEvent(Player* player, uint64 lastNodeGuidRaw)
|
||||||
: _player(player), _lastNodeGuidRaw(lastNodeGuidRaw) { }
|
: _player(player), _lastNodeGuidRaw(lastNodeGuidRaw) { }
|
||||||
|
|
||||||
bool Execute(uint64 /*time*/, uint32 /*diff*/) override
|
bool Execute(uint64, uint32) override
|
||||||
{
|
{
|
||||||
if (!_player || !_player->IsInWorld())
|
if (!_player || !_player->IsInWorld())
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user