mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
* [Feature] Add Data Bucket support for scaling of Heroic Stats. * update * fixes, still reworking logic * fixes, still reworking logic * logic done * logic done * fixes * Cleanup * Cleanup * Cleanup naming, verify behaviors * formatting * formatting * fix issue with endurance and mana. * update rule desc * cleanup * DataBucket Struct * Cleanup data_bucket.cpp and add constants * cleanup * changes * formatting * fix from merge * escape keyword `key` * Add `key` to generator, run repository-generator.pl * fix for change to key * cleanup * formatting * formatting * typo
28 lines
841 B
C++
28 lines
841 B
C++
//
|
|
// Created by Akkadius on 7/7/18.
|
|
//
|
|
|
|
#ifndef EQEMU_DATABUCKET_H
|
|
#define EQEMU_DATABUCKET_H
|
|
|
|
#include <string>
|
|
#include "../common/types.h"
|
|
#include "../common/repositories/data_buckets_repository.h"
|
|
#include "mob.h"
|
|
|
|
class DataBucket {
|
|
public:
|
|
static void SetData(const std::string& bucket_key, const std::string& bucket_value, std::string expires_time = "");
|
|
static bool DeleteData(const std::string& bucket_key);
|
|
static std::string GetData(const std::string& bucket_key);
|
|
static std::string GetDataExpires(const std::string& bucket_key);
|
|
static std::string GetDataRemaining(const std::string& bucket_key);
|
|
static bool GetDataBuckets(Mob* mob);
|
|
static std::string CheckBucketKey(const Mob* mob, std::string_view full_name);
|
|
|
|
private:
|
|
static uint64 DoesBucketExist(const std::string& bucket_key);
|
|
};
|
|
|
|
#endif //EQEMU_DATABUCKET_H
|