2017-05-18 17:56:50 +00:00
|
|
|
#ifndef OPENMW_FACTIONAPI_HPP
|
|
|
|
#define OPENMW_FACTIONAPI_HPP
|
|
|
|
|
|
|
|
#define FACTIONAPI \
|
|
|
|
{"GetFactionChangesSize", FactionFunctions::GetFactionChangesSize},\
|
2017-07-05 04:05:52 +00:00
|
|
|
{"GetFactionChangesAction", FactionFunctions::GetFactionChangesAction},\
|
2017-05-18 17:56:50 +00:00
|
|
|
\
|
|
|
|
{"AddFaction", FactionFunctions::AddFaction},\
|
|
|
|
\
|
|
|
|
{"GetFactionId", FactionFunctions::GetFactionId},\
|
|
|
|
{"GetFactionRank", FactionFunctions::GetFactionRank},\
|
|
|
|
{"GetFactionExpelledState", FactionFunctions::GetFactionExpelledState},\
|
|
|
|
\
|
|
|
|
{"SendFactionChanges", FactionFunctions::SendFactionChanges}
|
|
|
|
|
|
|
|
class FactionFunctions
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
static unsigned int GetFactionChangesSize(unsigned short pid) noexcept;
|
2017-07-05 04:05:52 +00:00
|
|
|
static unsigned char GetFactionChangesAction(unsigned short pid) noexcept;
|
2017-05-18 17:56:50 +00:00
|
|
|
|
|
|
|
static void AddFaction(unsigned short pid, const char* factionId, unsigned int rank, bool isExpelled) noexcept;
|
|
|
|
|
|
|
|
static const char *GetFactionId(unsigned short pid, unsigned int i) noexcept;
|
|
|
|
static int GetFactionRank(unsigned short pid, unsigned int i) noexcept;
|
2017-05-18 18:51:24 +00:00
|
|
|
static bool GetFactionExpelledState(unsigned short pid, unsigned int i) noexcept;
|
2017-05-18 17:56:50 +00:00
|
|
|
|
|
|
|
static void SendFactionChanges(unsigned short pid) noexcept;
|
|
|
|
private:
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //OPENMW_FACTIONAPI_HPP
|