mirror of
https://github.com/noisiver/mod-weekendbonus.git
synced 2026-01-28 07:56:27 +00:00
Restructured
Restructured the code layout to match my other modules.
This commit is contained in:
54
src/mod_weekendbonus.h
Normal file
54
src/mod_weekendbonus.h
Normal file
@@ -0,0 +1,54 @@
|
||||
#ifndef MOD_WEEKENDBONUS_H
|
||||
#define MOD_WEEKENDBONUS_H
|
||||
|
||||
#include "Chat.h"
|
||||
#include "Config.h"
|
||||
#include "Player.h"
|
||||
#include "ScriptMgr.h"
|
||||
|
||||
enum Day
|
||||
{
|
||||
SUNDAY = 0,
|
||||
MONDAY,
|
||||
TUESDAY,
|
||||
WEDNESDAY,
|
||||
THURSDAY,
|
||||
FRIDAY,
|
||||
SATURDAY
|
||||
};
|
||||
|
||||
class WeekendBonus : public PlayerScript, WorldScript
|
||||
{
|
||||
public:
|
||||
WeekendBonus();
|
||||
|
||||
// PlayerScript
|
||||
void OnLogin(Player* /*player*/) override;
|
||||
|
||||
// WorldScript
|
||||
void OnAfterConfigLoad(bool /*reload*/) override;
|
||||
void OnStartup() override;
|
||||
void OnUpdate(uint32 /*diff*/) override;
|
||||
|
||||
private:
|
||||
void LoadDefaultValues();
|
||||
void SetRates(bool /*active*/);
|
||||
|
||||
bool Triggered;
|
||||
time_t LocalTime;
|
||||
|
||||
float ExperienceMultiplier;
|
||||
float MoneyMultiplier;
|
||||
uint32 ProfessionsMultiplier;
|
||||
float ReputationMultiplier;
|
||||
uint32 ProficienciesMultiplier;
|
||||
|
||||
float DefaultExperienceMultiplier[6];
|
||||
float DefaultBattlegroundExperienceMultiplier[6];
|
||||
uint32 DefaultProfessionsMultiplier[2];
|
||||
uint32 DefaultProficienciesMultiplier[2];
|
||||
float DefaultMoneyMultiplier;
|
||||
float DefaultReputationMultiplier;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user