mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-06 10:44:08 +00:00
Organize dScripts (#814)
* Organize dScripts whitespace Remove parent scope Remove parent scope from initial setter Remove debug Remove helper programs * Fix NtImagimeterVisibility script Co-authored-by: aronwk-aaron <aronwk.aaron@gmail.com>
This commit is contained in:
24
dScripts/02_server/Pets/DamagingPets.h
Normal file
24
dScripts/02_server/Pets/DamagingPets.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
#include "CppScripts.h"
|
||||
|
||||
/**
|
||||
* Information about pets regarding which effect to play when a skill is cast
|
||||
*/
|
||||
struct PetInfo {
|
||||
const std::vector<uint32_t> effect;
|
||||
const std::string skill;
|
||||
};
|
||||
|
||||
class DamagingPets : public CppScripts::Script {
|
||||
public:
|
||||
void OnStartup(Entity* self) override;
|
||||
void OnTimerDone(Entity* self, std::string message) override;
|
||||
void OnNotifyPetTamingMinigame(Entity* self, Entity* tamer, eNotifyType type) override;
|
||||
void OnSkillEventFired(Entity* self, Entity* target, const std::string& message) override;
|
||||
void OnPlayerLoaded(Entity* self, Entity* player) override;
|
||||
private:
|
||||
static void MakeUntamable(Entity* self);
|
||||
static PetInfo GetPetInfo(Entity* self);
|
||||
static void ClearEffects(Entity* self);
|
||||
static const std::map<LOT, PetInfo> petInfo;
|
||||
};
|
Reference in New Issue
Block a user