DarkflameServer/dGame/dGrim/ResistanceProfile.h
wincent 5973430720 Grim LU
Wincent's attempt at making LU into something it isn't supposed to be, an ARPG.
2023-07-15 10:54:41 +02:00

33 lines
707 B
C++

#pragma once
#ifndef __ERESISTANCEPROFILE__H__
#define __ERESISTANCEPROFILE__H__
#include <cstdint>
#include <vector>
#include <map>
#include "ItemModifierTemplate.h"
class ResistanceProfile {
public:
ResistanceProfile(int32_t lot);
~ResistanceProfile() = default;
void AddResistanceProfile(eStatTypes statType, float value);
float GetResistanceProfile(eStatTypes statType) const;
static void LoadResistanceProfiles(const std::string& filename);
static ResistanceProfile* FindResistanceProfile(int32_t lot);
private:
int32_t m_Lot;
std::map<eStatTypes, float> m_ResistanceProfile;
static std::map<int32_t, ResistanceProfile> s_ResistanceProfiles;
};
#endif //!__ERESISTANCEPROFILE__H__