mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 05:49:56 +00:00
32 lines
1.1 KiB
C++
32 lines
1.1 KiB
C++
#ifndef OPENMW_FACTIONAPI_HPP
|
|
#define OPENMW_FACTIONAPI_HPP
|
|
|
|
#define FACTIONAPI \
|
|
{"GetFactionChangesSize", FactionFunctions::GetFactionChangesSize},\
|
|
\
|
|
{"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;
|
|
|
|
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;
|
|
static int GetFactionExpelledState(unsigned short pid, unsigned int i) noexcept;
|
|
|
|
static void SendFactionChanges(unsigned short pid) noexcept;
|
|
private:
|
|
|
|
};
|
|
|
|
#endif //OPENMW_FACTIONAPI_HPP
|