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
|
|
|
|
{
|
2020-01-09 01:29:09 +09:00
|
|
|
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 >;
|
|
|
|
|
2019-06-02 00:34:07 +10:00
|
|
|
static bool validEntryExists( uint16_t actionId );
|
2019-06-02 02:30:54 +10:00
|
|
|
static const ActionEntry& getEntry( uint16_t actionId );
|
2019-06-02 00:34:07 +10:00
|
|
|
|
2019-05-30 15:35:05 +10:00
|
|
|
static Lut m_actionLut;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //SAPPHIRE_ACTIONLUT_H
|