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 potency;
|
|
|
|
uint16_t comboPotency;
|
|
|
|
uint16_t flankPotency;
|
|
|
|
uint16_t frontPotency;
|
|
|
|
uint16_t rearPotency;
|
|
|
|
uint16_t curePotency;
|
2020-01-05 17:09:27 +09:00
|
|
|
uint16_t restoreMPPercentage;
|
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
|