1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-31 13:37:45 +00:00
sapphire/src/world/Action/ActionLut.h

38 lines
828 B
C
Raw Normal View History

2019-05-30 15:35:05 +10:00
#ifndef SAPPHIRE_ACTIONLUT_H
#define SAPPHIRE_ACTIONLUT_H
#include <unordered_map>
namespace Sapphire::World::Action
{
struct ActionEntry
{
uint16_t damagePotency;
uint16_t damageComboPotency;
uint16_t damageDirectionalPotency;
uint16_t healPotency;
uint16_t selfHealPotency;
uint16_t selfStatus;
uint16_t selfStatusDuration;
uint16_t selfStatusParam;
uint16_t targetStatus;
uint16_t targetStatusDuration;
uint16_t targetStatusParam;
uint16_t gainMPPercentage;
uint16_t gainJobResource;
2019-05-30 15:35:05 +10:00
};
class ActionLut
{
public:
using Lut = std::unordered_map< uint16_t, ActionEntry >;
static bool validEntryExists( uint16_t actionId );
2019-06-02 02:30:54 +10:00
static const ActionEntry& getEntry( uint16_t actionId );
2019-05-30 15:35:05 +10:00
static Lut m_actionLut;
};
}
#endif //SAPPHIRE_ACTIONLUT_H