You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
615 lines
20 KiB
C++
615 lines
20 KiB
C++
#ifndef OPENMW_STATAPI_HPP
|
|
#define OPENMW_STATAPI_HPP
|
|
|
|
#include <Script/Platform.hpp>
|
|
|
|
#define STATAPI \
|
|
{"GetAttributeCount", StatsFunctions::GetAttributeCount},\
|
|
{"GetSkillCount", StatsFunctions::GetSkillCount},\
|
|
{"GetAttributeId", StatsFunctions::GetAttributeId},\
|
|
{"GetSkillId", StatsFunctions::GetSkillId},\
|
|
{"GetAttributeName", StatsFunctions::GetAttributeName},\
|
|
{"GetSkillName", StatsFunctions::GetSkillName},\
|
|
\
|
|
{"GetName", StatsFunctions::GetName},\
|
|
{"GetRace", StatsFunctions::GetRace},\
|
|
{"GetHead", StatsFunctions::GetHead},\
|
|
{"GetHair", StatsFunctions::GetHairstyle},\
|
|
{"GetIsMale", StatsFunctions::GetIsMale},\
|
|
{"GetBirthsign", StatsFunctions::GetBirthsign},\
|
|
\
|
|
{"GetLevel", StatsFunctions::GetLevel},\
|
|
{"GetLevelProgress", StatsFunctions::GetLevelProgress},\
|
|
\
|
|
{"GetHealthBase", StatsFunctions::GetHealthBase},\
|
|
{"GetHealthCurrent", StatsFunctions::GetHealthCurrent},\
|
|
\
|
|
{"GetMagickaBase", StatsFunctions::GetMagickaBase},\
|
|
{"GetMagickaCurrent", StatsFunctions::GetMagickaCurrent},\
|
|
\
|
|
{"GetFatigueBase", StatsFunctions::GetFatigueBase},\
|
|
{"GetFatigueCurrent", StatsFunctions::GetFatigueCurrent},\
|
|
\
|
|
{"GetAttributeBase", StatsFunctions::GetAttributeBase},\
|
|
{"GetAttributeModifier", StatsFunctions::GetAttributeModifier},\
|
|
\
|
|
{"GetSkillBase", StatsFunctions::GetSkillBase},\
|
|
{"GetSkillModifier", StatsFunctions::GetSkillModifier},\
|
|
{"GetSkillProgress", StatsFunctions::GetSkillProgress},\
|
|
{"GetSkillIncrease", StatsFunctions::GetSkillIncrease},\
|
|
\
|
|
{"GetBounty", StatsFunctions::GetBounty},\
|
|
\
|
|
{"SetName", StatsFunctions::SetName},\
|
|
{"SetRace", StatsFunctions::SetRace},\
|
|
{"SetHead", StatsFunctions::SetHead},\
|
|
{"SetHair", StatsFunctions::SetHairstyle},\
|
|
{"SetIsMale", StatsFunctions::SetIsMale},\
|
|
{"SetBirthsign", StatsFunctions::SetBirthsign},\
|
|
{"SetResetStats", StatsFunctions::SetResetStats},\
|
|
\
|
|
{"SetLevel", StatsFunctions::SetLevel},\
|
|
{"SetLevelProgress", StatsFunctions::SetLevelProgress},\
|
|
\
|
|
{"SetHealthBase", StatsFunctions::SetHealthBase},\
|
|
{"SetHealthCurrent", StatsFunctions::SetHealthCurrent},\
|
|
{"SetMagickaBase", StatsFunctions::SetMagickaBase},\
|
|
{"SetMagickaCurrent", StatsFunctions::SetMagickaCurrent},\
|
|
{"SetFatigueBase", StatsFunctions::SetFatigueBase},\
|
|
{"SetFatigueCurrent", StatsFunctions::SetFatigueCurrent},\
|
|
\
|
|
{"SetAttributeBase", StatsFunctions::SetAttributeBase},\
|
|
{"ClearAttributeModifier", StatsFunctions::ClearAttributeModifier},\
|
|
\
|
|
{"SetSkillBase", StatsFunctions::SetSkillBase},\
|
|
{"ClearSkillModifier", StatsFunctions::ClearSkillModifier},\
|
|
{"SetSkillProgress", StatsFunctions::SetSkillProgress},\
|
|
{"SetSkillIncrease", StatsFunctions::SetSkillIncrease},\
|
|
\
|
|
{"SetBounty", StatsFunctions::SetBounty},\
|
|
{"SetCharGenStage", StatsFunctions::SetCharGenStage},\
|
|
\
|
|
{"SendBaseInfo", StatsFunctions::SendBaseInfo},\
|
|
\
|
|
{"SendStatsDynamic", StatsFunctions::SendStatsDynamic},\
|
|
{"SendAttributes", StatsFunctions::SendAttributes},\
|
|
{"SendSkills", StatsFunctions::SendSkills},\
|
|
{"SendLevel", StatsFunctions::SendLevel},\
|
|
{"SendBounty", StatsFunctions::SendBounty}
|
|
|
|
namespace StatsFunctions
|
|
{
|
|
/**
|
|
* \brief Get the number of attributes.
|
|
*
|
|
* The number is 8 before any dehardcoding is done in OpenMW.
|
|
*
|
|
* \return The number of attributes.
|
|
*/
|
|
EXPORT_APIFUNCTION int CDECL GetAttributeCount() noexcept;
|
|
|
|
/**
|
|
* \brief Get the number of skills.
|
|
*
|
|
* The number is 27 before any dehardcoding is done in OpenMW.
|
|
*
|
|
* \return The number of skills.
|
|
*/
|
|
EXPORT_APIFUNCTION int CDECL GetSkillCount() noexcept;
|
|
|
|
/**
|
|
* \brief Get the numerical ID of an attribute with a certain name.
|
|
*
|
|
* If an invalid name is used, the ID returned is -1
|
|
*
|
|
* \param name The name of the attribute.
|
|
* \return The ID of the attribute.
|
|
*/
|
|
EXPORT_APIFUNCTION int CDECL GetAttributeId(const char *name) noexcept;
|
|
|
|
/**
|
|
* \brief Get the numerical ID of a skill with a certain name.
|
|
*
|
|
* If an invalid name is used, the ID returned is -1
|
|
*
|
|
* \param name The name of the skill.
|
|
* \return The ID of the skill.
|
|
*/
|
|
EXPORT_APIFUNCTION int CDECL GetSkillId(const char *name) noexcept;
|
|
|
|
/**
|
|
* \brief Get the name of the attribute with a certain numerical ID.
|
|
*
|
|
* If an invalid ID is used, "invalid" is returned.
|
|
*
|
|
* \param attributeId The ID of the attribute.
|
|
* \return The name of the attribute.
|
|
*/
|
|
EXPORT_APIFUNCTION const char *CDECL GetAttributeName(unsigned short attributeId) noexcept;
|
|
|
|
/**
|
|
* \brief Get the name of the skill with a certain numerical ID.
|
|
*
|
|
* If an invalid ID is used, "invalid" is returned.
|
|
*
|
|
* \param skillId The ID of the skill.
|
|
* \return The name of the skill.
|
|
*/
|
|
EXPORT_APIFUNCTION const char *CDECL GetSkillName(unsigned short skillId) noexcept;
|
|
|
|
/**
|
|
* \brief Get the name of a player.
|
|
*
|
|
* \param pid The player ID.
|
|
* \return The name of the player.
|
|
*/
|
|
EXPORT_APIFUNCTION const char *CDECL GetName(unsigned short pid) noexcept;
|
|
|
|
/**
|
|
* \brief Get the race of a player.
|
|
*
|
|
* \param pid The player ID.
|
|
* \return The race of the player.
|
|
*/
|
|
EXPORT_APIFUNCTION const char *CDECL GetRace(unsigned short pid) noexcept;
|
|
|
|
/**
|
|
* \brief Get the head mesh used by a player.
|
|
*
|
|
* \param pid The player ID.
|
|
* \return The head mesh of the player.
|
|
*/
|
|
EXPORT_APIFUNCTION const char *CDECL GetHead(unsigned short pid) noexcept;
|
|
|
|
/**
|
|
* \brief Get the hairstyle mesh used by a player.
|
|
*
|
|
* \param pid The player ID.
|
|
* \return The hairstyle mesh of the player.
|
|
*/
|
|
EXPORT_APIFUNCTION const char *CDECL GetHairstyle(unsigned short pid) noexcept;
|
|
|
|
/**
|
|
* \brief Check whether a player is male or not.
|
|
*
|
|
* \param pid The player ID.
|
|
* \return Whether the player is male.
|
|
*/
|
|
EXPORT_APIFUNCTION int CDECL GetIsMale(unsigned short pid) noexcept;
|
|
|
|
/**
|
|
* \brief Get the birthsign of a player.
|
|
*
|
|
* \param pid The player ID.
|
|
* \return The birthsign of the player.
|
|
*/
|
|
EXPORT_APIFUNCTION const char *CDECL GetBirthsign(unsigned short pid) noexcept;
|
|
|
|
/**
|
|
* \brief Get the character level of a player.
|
|
*
|
|
* \param pid The player ID.
|
|
* \return The level of the player.
|
|
*/
|
|
EXPORT_APIFUNCTION int CDECL GetLevel(unsigned short pid) noexcept;
|
|
|
|
/**
|
|
* \brief Get the player's progress to their next character level.
|
|
*
|
|
* \param pid The player ID.
|
|
* \return The level progress.
|
|
*/
|
|
EXPORT_APIFUNCTION int CDECL GetLevelProgress(unsigned short pid) noexcept;
|
|
|
|
/**
|
|
* \brief Get the base health of the player.
|
|
*
|
|
* \param pid The player ID.
|
|
* \return The base health.
|
|
*/
|
|
EXPORT_APIFUNCTION double CDECL GetHealthBase(unsigned short pid) noexcept;
|
|
|
|
/**
|
|
* \brief Get the current health of the player.
|
|
*
|
|
* \param pid The player ID.
|
|
* \return The current health.
|
|
*/
|
|
EXPORT_APIFUNCTION double CDECL GetHealthCurrent(unsigned short pid) noexcept;
|
|
|
|
/**
|
|
* \brief Get the base magicka of the player.
|
|
*
|
|
* \param pid The player ID.
|
|
* \return The base magicka.
|
|
*/
|
|
EXPORT_APIFUNCTION double CDECL GetMagickaBase(unsigned short pid) noexcept;
|
|
|
|
/**
|
|
* \brief Get the current magicka of the player.
|
|
*
|
|
* \param pid The player ID.
|
|
* \return The current magicka.
|
|
*/
|
|
EXPORT_APIFUNCTION double CDECL GetMagickaCurrent(unsigned short pid) noexcept;
|
|
|
|
/**
|
|
* \brief Get the base fatigue of the player.
|
|
*
|
|
* \param pid The player ID.
|
|
* \return The base fatigue.
|
|
*/
|
|
EXPORT_APIFUNCTION double CDECL GetFatigueBase(unsigned short pid) noexcept;
|
|
|
|
/**
|
|
* \brief Get the current fatigue of the player.
|
|
*
|
|
* \param pid The player ID.
|
|
* \return The current fatigue.
|
|
*/
|
|
EXPORT_APIFUNCTION double CDECL GetFatigueCurrent(unsigned short pid) noexcept;
|
|
|
|
/**
|
|
* \brief Get the base value of a player's attribute.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param attributeId The attribute ID.
|
|
* \return The base value of the attribute.
|
|
*/
|
|
EXPORT_APIFUNCTION int CDECL GetAttributeBase(unsigned short pid, unsigned short attributeId) noexcept;
|
|
|
|
/**
|
|
* \brief Get the modifier value of a player's attribute.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param attributeId The attribute ID.
|
|
* \return The modifier value of the attribute.
|
|
*/
|
|
EXPORT_APIFUNCTION int CDECL GetAttributeModifier(unsigned short pid, unsigned short attributeId) noexcept;
|
|
|
|
/**
|
|
* \brief Get the base value of a player's skill.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param skillId The skill ID.
|
|
* \return The base value of the skill.
|
|
*/
|
|
EXPORT_APIFUNCTION int CDECL GetSkillBase(unsigned short pid, unsigned short skillId) noexcept;
|
|
|
|
/**
|
|
* \brief Get the modifier value of a player's skill.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param skillId The skill ID.
|
|
* \return The modifier value of the skill.
|
|
*/
|
|
EXPORT_APIFUNCTION int CDECL GetSkillModifier(unsigned short pid, unsigned short skillId) noexcept;
|
|
|
|
/**
|
|
* \brief Get the progress the player has made towards increasing a certain skill by 1.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param skillId The skill ID.
|
|
* \return The skill progress.
|
|
*/
|
|
EXPORT_APIFUNCTION double CDECL GetSkillProgress(unsigned short pid, unsigned short skillId) noexcept;
|
|
|
|
/**
|
|
* \brief Get the bonus applied to a certain attribute at the next level up as a result
|
|
* of associated skill increases.
|
|
*
|
|
* Although confusing, the term "skill increase" for this is taken from OpenMW itself.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param skillId The attribute ID.
|
|
* \return The increase in the attribute caused by skills.
|
|
*/
|
|
EXPORT_APIFUNCTION int CDECL GetSkillIncrease(unsigned short pid, unsigned int attributeId) noexcept;
|
|
|
|
/**
|
|
* \brief Get the bounty of the player.
|
|
*
|
|
* \param pid The player ID.
|
|
* \return The bounty.
|
|
*/
|
|
EXPORT_APIFUNCTION int CDECL GetBounty(unsigned short pid) noexcept;
|
|
|
|
/**
|
|
* \brief Set the name of a player.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param name The new name of the player.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL SetName(unsigned short pid, const char *name) noexcept;
|
|
|
|
/**
|
|
* \brief Set the race of a player.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param race The new race of the player.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL SetRace(unsigned short pid, const char *race) noexcept;
|
|
|
|
/**
|
|
* \brief Set the head mesh used by a player.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param head The new head mesh of the player.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL SetHead(unsigned short pid, const char *head) noexcept;
|
|
|
|
/**
|
|
* \brief Set the hairstyle mesh used by a player.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param hairstyle The new hairstyle mesh of the player.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL SetHairstyle(unsigned short pid, const char *hairstyle) noexcept;
|
|
|
|
/**
|
|
* \brief Set whether a player is male or not.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param state Whether the player is male.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL SetIsMale(unsigned short pid, int state) noexcept;
|
|
|
|
/**
|
|
* \brief Set the birthsign of a player.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param name The new birthsign of the player.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL SetBirthsign(unsigned short pid, const char *name) noexcept;
|
|
|
|
/**
|
|
* \brief Set whether the player's stats should be reset based on their
|
|
* current race as the result of a PlayerBaseInfo packet.
|
|
*
|
|
* This changes the resetState for that player in the server memory, but does not by itself
|
|
* send a packet.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param resetStats The stat reset state.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL SetResetStats(unsigned short pid, bool resetStats) noexcept;
|
|
|
|
/**
|
|
* \brief Set the character level of a player.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param value The new level of the player.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL SetLevel(unsigned short pid, int value) noexcept;
|
|
|
|
/**
|
|
* \brief Set the player's progress to their next character level.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param value The new level progress of the player.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL SetLevelProgress(unsigned short pid, int value) noexcept;
|
|
|
|
/**
|
|
* \brief Set the base health of a player.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param name The new base health of the player.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL SetHealthBase(unsigned short pid, double value) noexcept;
|
|
|
|
/**
|
|
* \brief Set the current health of a player.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param name The new current health of the player.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL SetHealthCurrent(unsigned short pid, double value) noexcept;
|
|
|
|
/**
|
|
* \brief Set the base magicka of a player.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param name The new base magicka of the player.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL SetMagickaBase(unsigned short pid, double value) noexcept;
|
|
|
|
/**
|
|
* \brief Set the current magicka of a player.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param name The new current magicka of the player.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL SetMagickaCurrent(unsigned short pid, double value) noexcept;
|
|
|
|
/**
|
|
* \brief Set the base fatigue of a player.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param name The new base fatigue of the player.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL SetFatigueBase(unsigned short pid, double value) noexcept;
|
|
|
|
/**
|
|
* \brief Set the current fatigue of a player.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param name The new current fatigue of the player.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL SetFatigueCurrent(unsigned short pid, double value) noexcept;
|
|
|
|
/**
|
|
* \brief Set the base value of a player's attribute.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param attributeId The attribute ID.
|
|
* \param value The new base value of the player's attribute.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL SetAttributeBase(unsigned short pid, unsigned short attributeId, int value) noexcept;
|
|
|
|
/**
|
|
* \brief Clear the modifier value of a player's attribute.
|
|
*
|
|
* There's no way to set a modifier to a specific value because it can come from
|
|
* multiple different sources, but clearing it is a straightforward process that
|
|
* dispels associated effects on a client and, if necessary, unequips associated
|
|
* items.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param attributeId The attribute ID.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL ClearAttributeModifier(unsigned short pid, unsigned short attributeId) noexcept;
|
|
|
|
/**
|
|
* \brief Set the base value of a player's skill.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param skillId The skill ID.
|
|
* \param value The new base value of the player's skill.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL SetSkillBase(unsigned short pid, unsigned short skillId, int value) noexcept;
|
|
|
|
/**
|
|
* \brief Clear the modifier value of a player's skill.
|
|
*
|
|
* There's no way to set a modifier to a specific value because it can come from
|
|
* multiple different sources, but clearing it is a straightforward process that
|
|
* dispels associated effects on a client and, if necessary, unequips associated
|
|
* items.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param skillId The skill ID.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL ClearSkillModifier(unsigned short pid, unsigned short skillId) noexcept;
|
|
|
|
/**
|
|
* \brief Set the progress the player has made towards increasing a certain skill by 1.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param skillId The skill ID.
|
|
* \param value The progress value.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL SetSkillProgress(unsigned short pid, unsigned short skillId, double value) noexcept;
|
|
|
|
/**
|
|
* \brief Set the bonus applied to a certain attribute at the next level up as a result
|
|
* of associated skill increases.
|
|
*
|
|
* Although confusing, the term "skill increase" for this is taken from OpenMW itself.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param skillId The attribute ID.
|
|
* \param value The increase in the attribute caused by skills.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL SetSkillIncrease(unsigned short pid, unsigned int attributeId, int value) noexcept;
|
|
|
|
/**
|
|
* \brief Set the bounty of a player.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param value The new bounty.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL SetBounty(unsigned short pid, int value) noexcept;
|
|
|
|
/**
|
|
* \brief Set the current and ending stages of character generation for a player.
|
|
*
|
|
* This is used to repeat part of character generation or to only go through part of it.
|
|
*
|
|
* \param pid The player ID.
|
|
* \param currentStage The new current stage.
|
|
* \param endStage The new ending stage.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL SetCharGenStage(unsigned short pid, int currentStage, int endStage) noexcept;
|
|
|
|
/**
|
|
* \brief Send a PlayerBaseInfo packet with a player's name, race, head mesh,
|
|
* hairstyle mesh, birthsign and stat reset state.
|
|
*
|
|
* It is always sent to all players.
|
|
*
|
|
* \param pid The player ID.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL SendBaseInfo(unsigned short pid) noexcept;
|
|
|
|
/**
|
|
* \brief Send a PlayerStatsDynamic packet with a player's dynamic stats (health,
|
|
* magicka and fatigue).
|
|
*
|
|
* It is always sent to all players.
|
|
*
|
|
* \param pid The player ID.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL SendStatsDynamic(unsigned short pid) noexcept;
|
|
|
|
/**
|
|
* \brief Send a PlayerAttribute packet with a player's attributes and bonuses
|
|
* to those attributes at the next level up (the latter being called
|
|
* "skill increases" as in OpenMW).
|
|
*
|
|
* It is always sent to all players.
|
|
*
|
|
* \param pid The player ID.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL SendAttributes(unsigned short pid) noexcept;
|
|
|
|
/**
|
|
* \brief Send a PlayerSkill packet with a player's skills.
|
|
*
|
|
* It is always sent to all players.
|
|
*
|
|
* \param pid The player ID.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL SendSkills(unsigned short pid) noexcept;
|
|
|
|
/**
|
|
* \brief Send a PlayerLevel packet with a player's character level and
|
|
* progress towards the next level up
|
|
*
|
|
* It is always sent to all players.
|
|
*
|
|
* \param pid The player ID.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL SendLevel(unsigned short pid) noexcept;
|
|
|
|
/**
|
|
* \brief Send a PlayerBounty packet with a player's bounty.
|
|
*
|
|
* It is always sent to all players.
|
|
*
|
|
* \param pid The player ID.
|
|
* \return void
|
|
*/
|
|
EXPORT_APIFUNCTION void CDECL SendBounty(unsigned short pid) noexcept;
|
|
}
|
|
|
|
#endif //OPENMW_STATAPI_HPP
|