[Server] Fix order of CDECL

This commit is contained in:
Koncord 2019-01-15 18:40:48 +08:00
parent f24b8b8738
commit e7e374f7c5
18 changed files with 122 additions and 122 deletions

View file

@ -151,14 +151,14 @@ namespace ActorFunctions
* *
* \return The number of indexes. * \return The number of indexes.
*/ */
extern "C" unsigned int GetActorListSize() noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetActorListSize() noexcept;
/** /**
* \brief Get the action type used in the read actor list. * \brief Get the action type used in the read actor list.
* *
* \return The action type (0 for SET, 1 for ADD, 2 for REMOVE, 3 for REQUEST). * \return The action type (0 for SET, 1 for ADD, 2 for REMOVE, 3 for REQUEST).
*/ */
extern "C" unsigned char GetActorListAction() noexcept; EXPORT_APIFUNCTION unsigned char CDECL GetActorListAction() noexcept;
/** /**
* \brief Get the cell description of the actor at a certain index in the read actor list. * \brief Get the cell description of the actor at a certain index in the read actor list.
@ -166,7 +166,7 @@ namespace ActorFunctions
* \param index The index of the actor. * \param index The index of the actor.
* \return The cell description. * \return The cell description.
*/ */
extern "C" const char *GetActorCell(unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetActorCell(unsigned int index) noexcept;
/** /**
* \brief Get the refId of the actor at a certain index in the read actor list. * \brief Get the refId of the actor at a certain index in the read actor list.
@ -174,7 +174,7 @@ namespace ActorFunctions
* \param index The index of the actor. * \param index The index of the actor.
* \return The refId. * \return The refId.
*/ */
extern "C" const char *GetActorRefId(unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetActorRefId(unsigned int index) noexcept;
/** /**
* \brief Get the refNum of the actor at a certain index in the read actor list. * \brief Get the refNum of the actor at a certain index in the read actor list.
@ -182,7 +182,7 @@ namespace ActorFunctions
* \param index The index of the actor. * \param index The index of the actor.
* \return The refNum. * \return The refNum.
*/ */
extern "C" unsigned int GetActorRefNum(unsigned int index) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetActorRefNum(unsigned int index) noexcept;
/** /**
* \brief Get the mpNum of the actor at a certain index in the read actor list. * \brief Get the mpNum of the actor at a certain index in the read actor list.
@ -190,7 +190,7 @@ namespace ActorFunctions
* \param index The index of the actor. * \param index The index of the actor.
* \return The mpNum. * \return The mpNum.
*/ */
extern "C" unsigned int GetActorMpNum(unsigned int index) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetActorMpNum(unsigned int index) noexcept;
/** /**
* \brief Get the X position of the actor at a certain index in the read actor list. * \brief Get the X position of the actor at a certain index in the read actor list.
@ -320,7 +320,7 @@ namespace ActorFunctions
* \param slot The slot of the equipment item. * \param slot The slot of the equipment item.
* \return The refId. * \return The refId.
*/ */
extern "C" const char *GetActorEquipmentItemRefId(unsigned int index, unsigned short slot) noexcept; EXPORT_APIFUNCTION const char *CDECL GetActorEquipmentItemRefId(unsigned int index, unsigned short slot) noexcept;
/** /**
* \brief Get the count of the item in a certain slot of the equipment of the actor at a * \brief Get the count of the item in a certain slot of the equipment of the actor at a
@ -374,7 +374,7 @@ namespace ActorFunctions
* \param index The index of the actor. * \param index The index of the actor.
* \return The refId of the killer. * \return The refId of the killer.
*/ */
extern "C" const char *GetActorKillerRefId(unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetActorKillerRefId(unsigned int index) noexcept;
/** /**
* \brief Get the refNum of the actor killer of the actor at a certain index in the read actor list. * \brief Get the refNum of the actor killer of the actor at a certain index in the read actor list.
@ -382,7 +382,7 @@ namespace ActorFunctions
* \param index The index of the actor. * \param index The index of the actor.
* \return The refNum of the killer. * \return The refNum of the killer.
*/ */
extern "C" unsigned int GetActorKillerRefNum(unsigned int index) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetActorKillerRefNum(unsigned int index) noexcept;
/** /**
* \brief Get the mpNum of the actor killer of the actor at a certain index in the read actor list. * \brief Get the mpNum of the actor killer of the actor at a certain index in the read actor list.
@ -390,7 +390,7 @@ namespace ActorFunctions
* \param index The index of the actor. * \param index The index of the actor.
* \return The mpNum of the killer. * \return The mpNum of the killer.
*/ */
extern "C" unsigned int GetActorKillerMpNum(unsigned int index) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetActorKillerMpNum(unsigned int index) noexcept;
/** /**
* \brief Get the name of the actor killer of the actor at a certain index in the read actor list. * \brief Get the name of the actor killer of the actor at a certain index in the read actor list.
@ -398,7 +398,7 @@ namespace ActorFunctions
* \param index The index of the actor. * \param index The index of the actor.
* \return The name of the killer. * \return The name of the killer.
*/ */
extern "C" const char *GetActorKillerName(unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetActorKillerName(unsigned int index) noexcept;
/** /**
* \brief Check whether there is any positional data for the actor at a certain index in * \brief Check whether there is any positional data for the actor at a certain index in
@ -766,12 +766,12 @@ namespace ActorFunctions
// All methods below are deprecated versions of methods from above // All methods below are deprecated versions of methods from above
extern "C" void ReadLastActorList() noexcept; EXPORT_APIFUNCTION void CDECL ReadLastActorList() noexcept;
extern "C" void InitializeActorList(unsigned short pid) noexcept; EXPORT_APIFUNCTION void CDECL InitializeActorList(unsigned short pid) noexcept;
extern "C" void CopyLastActorListToStore() noexcept; EXPORT_APIFUNCTION void CDECL CopyLastActorListToStore() noexcept;
extern "C" unsigned int GetActorRefNumIndex(unsigned int index) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetActorRefNumIndex(unsigned int index) noexcept;
extern "C" unsigned int GetActorKillerRefNumIndex(unsigned int index) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetActorKillerRefNumIndex(unsigned int index) noexcept;
extern "C" void SetActorRefNumIndex(int refNum) noexcept; EXPORT_APIFUNCTION void CDECL SetActorRefNumIndex(int refNum) noexcept;
} }

View file

@ -33,7 +33,7 @@ namespace BookFunctions
* \param pid The player ID whose book changes should be used. * \param pid The player ID whose book changes should be used.
* \return The number of indexes. * \return The number of indexes.
*/ */
extern "C" unsigned int GetBookChangesSize(unsigned short pid) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetBookChangesSize(unsigned short pid) noexcept;
/** /**
* \brief Add a new book to the book changes for a player. * \brief Add a new book to the book changes for a player.
@ -51,7 +51,7 @@ namespace BookFunctions
* \param index The index of the book. * \param index The index of the book.
* \return The bookId. * \return The bookId.
*/ */
extern "C" const char *GetBookId(unsigned short pid, unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetBookId(unsigned short pid, unsigned int index) noexcept;
/** /**
* \brief Send a PlayerBook packet with a player's recorded book changes. * \brief Send a PlayerBook packet with a player's recorded book changes.

View file

@ -31,7 +31,7 @@ namespace CellFunctions
* \param pid The player ID whose cell state changes should be used. * \param pid The player ID whose cell state changes should be used.
* \return The number of indexes. * \return The number of indexes.
*/ */
extern "C" unsigned int GetCellStateChangesSize(unsigned short pid) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetCellStateChangesSize(unsigned short pid) noexcept;
/** /**
* \brief Get the cell state type at a certain index in a player's latest cell state changes. * \brief Get the cell state type at a certain index in a player's latest cell state changes.
@ -40,7 +40,7 @@ namespace CellFunctions
* \param index The index of the cell state. * \param index The index of the cell state.
* \return The cell state type (0 for LOAD, 1 for UNLOAD). * \return The cell state type (0 for LOAD, 1 for UNLOAD).
*/ */
extern "C" unsigned int GetCellStateType(unsigned short pid, unsigned int index) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetCellStateType(unsigned short pid, unsigned int index) noexcept;
/** /**
* \brief Get the cell description at a certain index in a player's latest cell state changes. * \brief Get the cell description at a certain index in a player's latest cell state changes.
@ -49,7 +49,7 @@ namespace CellFunctions
* \param index The index of the cell state. * \param index The index of the cell state.
* \return The cell description. * \return The cell description.
*/ */
extern "C" const char *GetCellStateDescription(unsigned short pid, unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetCellStateDescription(unsigned short pid, unsigned int index) noexcept;
/** /**
* \brief Get the cell description of a player's cell. * \brief Get the cell description of a player's cell.
@ -57,7 +57,7 @@ namespace CellFunctions
* \param pid The player ID. * \param pid The player ID.
* \return The cell description. * \return The cell description.
*/ */
extern "C" const char *GetCell(unsigned short pid) noexcept; EXPORT_APIFUNCTION const char *CDECL GetCell(unsigned short pid) noexcept;
/** /**
* \brief Get the X coordinate of the player's exterior cell. * \brief Get the X coordinate of the player's exterior cell.
@ -91,7 +91,7 @@ namespace CellFunctions
* \param pid The player ID. * \param pid The player ID.
* \return The region. * \return The region.
*/ */
extern "C" const char *GetRegion(unsigned short pid) noexcept; EXPORT_APIFUNCTION const char *CDECL GetRegion(unsigned short pid) noexcept;
/** /**
* \brief Check whether the player's last cell change has involved a region change. * \brief Check whether the player's last cell change has involved a region change.

View file

@ -36,7 +36,7 @@ namespace CharClassFunctions
* \param pid The player ID. * \param pid The player ID.
* \return The ID of the default class. * \return The ID of the default class.
*/ */
extern "C" const char *GetDefaultClass(unsigned short pid) noexcept; EXPORT_APIFUNCTION const char *CDECL GetDefaultClass(unsigned short pid) noexcept;
/** /**
* \brief Get the name of the custom class used by a player. * \brief Get the name of the custom class used by a player.
@ -44,7 +44,7 @@ namespace CharClassFunctions
* \param pid The player ID. * \param pid The player ID.
* \return The name of the custom class. * \return The name of the custom class.
*/ */
extern "C" const char *GetClassName(unsigned short pid) noexcept; EXPORT_APIFUNCTION const char *CDECL GetClassName(unsigned short pid) noexcept;
/** /**
* \brief Get the description of the custom class used by a player. * \brief Get the description of the custom class used by a player.
@ -52,7 +52,7 @@ namespace CharClassFunctions
* \param pid The player ID. * \param pid The player ID.
* \return The description of the custom class. * \return The description of the custom class.
*/ */
extern "C" const char *GetClassDesc(unsigned short pid) noexcept; EXPORT_APIFUNCTION const char *CDECL GetClassDesc(unsigned short pid) noexcept;
/** /**
* \brief Get the ID of one of the two major attributes of a custom class used by a player. * \brief Get the ID of one of the two major attributes of a custom class used by a player.

View file

@ -35,7 +35,7 @@ namespace DialogueFunctions
* \param pid The player ID whose topic changes should be used. * \param pid The player ID whose topic changes should be used.
* \return The number of indexes. * \return The number of indexes.
*/ */
extern "C" unsigned int GetTopicChangesSize(unsigned short pid) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetTopicChangesSize(unsigned short pid) noexcept;
/** /**
* \brief Add a new topic to the topic changes for a player. * \brief Add a new topic to the topic changes for a player.
@ -53,7 +53,7 @@ namespace DialogueFunctions
* \param index The index of the topic. * \param index The index of the topic.
* \return The topicId. * \return The topicId.
*/ */
extern "C" const char *GetTopicId(unsigned short pid, unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetTopicId(unsigned short pid, unsigned int index) noexcept;
/** /**
* \brief Send a PlayerTopic packet with a player's recorded topic changes. * \brief Send a PlayerTopic packet with a player's recorded topic changes.

View file

@ -42,7 +42,7 @@ namespace FactionFunctions
* \param pid The player ID whose faction changes should be used. * \param pid The player ID whose faction changes should be used.
* \return The number of indexes. * \return The number of indexes.
*/ */
extern "C" unsigned int GetFactionChangesSize(unsigned short pid) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetFactionChangesSize(unsigned short pid) noexcept;
/** /**
* \brief Get the action type used in a player's latest faction changes. * \brief Get the action type used in a player's latest faction changes.
@ -50,7 +50,7 @@ namespace FactionFunctions
* \param pid The player ID whose faction changes should be used. * \param pid The player ID whose faction changes should be used.
* \return The action type (0 for RANK, 1 for EXPULSION, 2 for REPUTATION). * \return The action type (0 for RANK, 1 for EXPULSION, 2 for REPUTATION).
*/ */
extern "C" unsigned char GetFactionChangesAction(unsigned short pid) noexcept; EXPORT_APIFUNCTION unsigned char CDECL GetFactionChangesAction(unsigned short pid) noexcept;
/** /**
* \brief Get the factionId at a certain index in a player's latest faction changes. * \brief Get the factionId at a certain index in a player's latest faction changes.
@ -59,7 +59,7 @@ namespace FactionFunctions
* \param index The index of the faction. * \param index The index of the faction.
* \return The factionId. * \return The factionId.
*/ */
extern "C" const char *GetFactionId(unsigned short pid, unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetFactionId(unsigned short pid, unsigned int index) noexcept;
/** /**
* \brief Get the rank at a certain index in a player's latest faction changes. * \brief Get the rank at a certain index in a player's latest faction changes.

View file

@ -107,7 +107,7 @@ namespace GUIFunctions
* \param pid The player ID whose quick key changes should be used. * \param pid The player ID whose quick key changes should be used.
* \return The number of indexes. * \return The number of indexes.
*/ */
extern "C" unsigned int GetQuickKeyChangesSize(unsigned short pid) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetQuickKeyChangesSize(unsigned short pid) noexcept;
/** /**
* \brief Add a new quick key to the quick key changes for a player. * \brief Add a new quick key to the quick key changes for a player.
@ -145,7 +145,7 @@ namespace GUIFunctions
* \param index The index of the quick key in the quick key changes vector. * \param index The index of the quick key in the quick key changes vector.
* \return The itemId. * \return The itemId.
*/ */
extern "C" const char *GetQuickKeyItemId(unsigned short pid, unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetQuickKeyItemId(unsigned short pid, unsigned int index) noexcept;
/** /**
* \brief Send a PlayerQuickKeys packet with a player's recorded quick key changes. * \brief Send a PlayerQuickKeys packet with a player's recorded quick key changes.

View file

@ -68,7 +68,7 @@ namespace ItemFunctions
* \param pid The player ID whose inventory changes should be used. * \param pid The player ID whose inventory changes should be used.
* \return The number of indexes. * \return The number of indexes.
*/ */
extern "C" unsigned int GetInventoryChangesSize(unsigned short pid) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetInventoryChangesSize(unsigned short pid) noexcept;
/** /**
* \brief Get the action type used in a player's latest inventory changes. * \brief Get the action type used in a player's latest inventory changes.
@ -76,7 +76,7 @@ namespace ItemFunctions
* \param pid The player ID whose inventory changes should be used. * \param pid The player ID whose inventory changes should be used.
* \return The action type (0 for SET, 1 for ADD, 2 for REMOVE). * \return The action type (0 for SET, 1 for ADD, 2 for REMOVE).
*/ */
extern "C" unsigned int GetInventoryChangesAction(unsigned short pid) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetInventoryChangesAction(unsigned short pid) noexcept;
/** /**
* \brief Set the action type in a player's inventory changes. * \brief Set the action type in a player's inventory changes.
@ -140,7 +140,7 @@ namespace ItemFunctions
* \param slot The slot of the equipment item. * \param slot The slot of the equipment item.
* \return The refId. * \return The refId.
*/ */
extern "C" const char *GetEquipmentItemRefId(unsigned short pid, unsigned short slot) noexcept; EXPORT_APIFUNCTION const char *CDECL GetEquipmentItemRefId(unsigned short pid, unsigned short slot) noexcept;
/** /**
* \brief Get the count of the item in a certain slot of the equipment of a player. * \brief Get the count of the item in a certain slot of the equipment of a player.
@ -178,7 +178,7 @@ namespace ItemFunctions
* \param index The index of the inventory item. * \param index The index of the inventory item.
* \return The refId. * \return The refId.
*/ */
extern "C" const char *GetInventoryItemRefId(unsigned short pid, unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetInventoryItemRefId(unsigned short pid, unsigned int index) noexcept;
/** /**
* \brief Get the count of the item at a certain index in a player's latest inventory * \brief Get the count of the item at a certain index in a player's latest inventory
@ -218,7 +218,7 @@ namespace ItemFunctions
* \param index The index of the inventory item. * \param index The index of the inventory item.
* \return The soul. * \return The soul.
*/ */
extern "C" const char *GetInventoryItemSoul(unsigned short pid, unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetInventoryItemSoul(unsigned short pid, unsigned int index) noexcept;
/** /**
* \brief Get the refId of the item last used by a player. * \brief Get the refId of the item last used by a player.
@ -226,7 +226,7 @@ namespace ItemFunctions
* \param pid The player ID. * \param pid The player ID.
* \return The refId. * \return The refId.
*/ */
extern "C" const char *GetUsedItemRefId(unsigned short pid) noexcept; EXPORT_APIFUNCTION const char *CDECL GetUsedItemRefId(unsigned short pid) noexcept;
/** /**
* \brief Get the count of the item last used by a player. * \brief Get the count of the item last used by a player.
@ -258,7 +258,7 @@ namespace ItemFunctions
* \param pid The player ID. * \param pid The player ID.
* \return The soul. * \return The soul.
*/ */
extern "C" const char *GetUsedItemSoul(unsigned short pid) noexcept; EXPORT_APIFUNCTION const char *CDECL GetUsedItemSoul(unsigned short pid) noexcept;
/** /**
* \brief Send a PlayerEquipment packet with a player's equipment. * \brief Send a PlayerEquipment packet with a player's equipment.

View file

@ -46,7 +46,7 @@ namespace MechanicsFunctions
* \param pid The player ID. * \param pid The player ID.
* \return The type. * \return The type.
*/ */
extern "C" unsigned char GetMiscellaneousChangeType(unsigned short pid) noexcept; EXPORT_APIFUNCTION unsigned char CDECL GetMiscellaneousChangeType(unsigned short pid) noexcept;
/** /**
* \brief Get the cell description of a player's Mark cell. * \brief Get the cell description of a player's Mark cell.
@ -54,7 +54,7 @@ namespace MechanicsFunctions
* \param pid The player ID. * \param pid The player ID.
* \return The cell description. * \return The cell description.
*/ */
extern "C" const char *GetMarkCell(unsigned short pid) noexcept; EXPORT_APIFUNCTION const char *CDECL GetMarkCell(unsigned short pid) noexcept;
/** /**
* \brief Get the X position of a player's Mark. * \brief Get the X position of a player's Mark.
@ -102,7 +102,7 @@ namespace MechanicsFunctions
* \param pid The player ID. * \param pid The player ID.
* \return The spell ID. * \return The spell ID.
*/ */
extern "C" const char *GetSelectedSpellId(unsigned short pid) noexcept; EXPORT_APIFUNCTION const char *CDECL GetSelectedSpellId(unsigned short pid) noexcept;
/** /**
* \brief Check whether the killer of a certain player is also a player. * \brief Check whether the killer of a certain player is also a player.
@ -126,7 +126,7 @@ namespace MechanicsFunctions
* \param pid The player ID of the killed player. * \param pid The player ID of the killed player.
* \return The refId of the killer. * \return The refId of the killer.
*/ */
extern "C" const char *GetPlayerKillerRefId(unsigned short pid) noexcept; EXPORT_APIFUNCTION const char *CDECL GetPlayerKillerRefId(unsigned short pid) noexcept;
/** /**
* \brief Get the refNum of the actor killer of a certain player. * \brief Get the refNum of the actor killer of a certain player.
@ -134,7 +134,7 @@ namespace MechanicsFunctions
* \param pid The player ID of the killed player. * \param pid The player ID of the killed player.
* \return The refNum of the killer. * \return The refNum of the killer.
*/ */
extern "C" unsigned int GetPlayerKillerRefNum(unsigned short pid) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetPlayerKillerRefNum(unsigned short pid) noexcept;
/** /**
* \brief Get the mpNum of the actor killer of a certain player. * \brief Get the mpNum of the actor killer of a certain player.
@ -142,7 +142,7 @@ namespace MechanicsFunctions
* \param pid The player ID of the killed player. * \param pid The player ID of the killed player.
* \return The mpNum of the killer. * \return The mpNum of the killer.
*/ */
extern "C" unsigned int GetPlayerKillerMpNum(unsigned short pid) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetPlayerKillerMpNum(unsigned short pid) noexcept;
/** /**
* \brief Get the name of the actor killer of a certain player. * \brief Get the name of the actor killer of a certain player.
@ -150,7 +150,7 @@ namespace MechanicsFunctions
* \param pid The player ID of the killed player. * \param pid The player ID of the killed player.
* \return The name of the killer. * \return The name of the killer.
*/ */
extern "C" const char *GetPlayerKillerName(unsigned short pid) noexcept; EXPORT_APIFUNCTION const char *CDECL GetPlayerKillerName(unsigned short pid) noexcept;
/** /**
* \brief Get the draw state of a player (0 for nothing, 1 for drawn weapon, * \brief Get the draw state of a player (0 for nothing, 1 for drawn weapon,
@ -159,7 +159,7 @@ namespace MechanicsFunctions
* \param pid The player ID. * \param pid The player ID.
* \return The draw state. * \return The draw state.
*/ */
extern "C" unsigned int GetDrawState(unsigned short pid) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetDrawState(unsigned short pid) noexcept;
/** /**
* \brief Get the sneak state of a player. * \brief Get the sneak state of a player.
@ -276,8 +276,8 @@ namespace MechanicsFunctions
// All methods below are deprecated versions of methods from above // All methods below are deprecated versions of methods from above
extern "C" const char *GetDeathReason(unsigned short pid) noexcept; EXPORT_APIFUNCTION const char *CDECL GetDeathReason(unsigned short pid) noexcept;
extern "C" unsigned int GetPlayerKillerRefNumIndex(unsigned short pid) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetPlayerKillerRefNumIndex(unsigned short pid) noexcept;
} }
#endif //OPENMW_MECHANICSAPI_HPP #endif //OPENMW_MECHANICSAPI_HPP

View file

@ -36,7 +36,7 @@ namespace MiscellaneousFunctions
* *
* \return The filename that matches. * \return The filename that matches.
*/ */
extern "C" const char *GetCaseInsensitiveFilename(const char *folderPath, const char *filename) noexcept; EXPORT_APIFUNCTION const char *CDECL GetCaseInsensitiveFilename(const char *folderPath, const char *filename) noexcept;
/** /**
* \brief Get the last player ID currently connected to the server. * \brief Get the last player ID currently connected to the server.
@ -46,7 +46,7 @@ namespace MiscellaneousFunctions
* *
* \return The player ID. * \return The player ID.
*/ */
extern "C" unsigned int GetLastPlayerId() noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetLastPlayerId() noexcept;
/** /**
* \brief Get the current (latest) mpNum generated by the server. * \brief Get the current (latest) mpNum generated by the server.

View file

@ -174,7 +174,7 @@ namespace ObjectFunctions
* *
* \return The number of indexes. * \return The number of indexes.
*/ */
extern "C" unsigned int GetObjectListSize() noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetObjectListSize() noexcept;
/** /**
* \brief Get the origin of the read object list. * \brief Get the origin of the read object list.
@ -183,7 +183,7 @@ namespace ObjectFunctions
* CLIENT_DIALOGUE, 3 for CLIENT_SCRIPT_LOCAL, 4 for CLIENT_SCRIPT_GLOBAL, * CLIENT_DIALOGUE, 3 for CLIENT_SCRIPT_LOCAL, 4 for CLIENT_SCRIPT_GLOBAL,
* 5 for SERVER_SCRIPT). * 5 for SERVER_SCRIPT).
*/ */
extern "C" unsigned char GetObjectListOrigin() noexcept; EXPORT_APIFUNCTION unsigned char CDECL GetObjectListOrigin() noexcept;
/** /**
* \brief Get the client script that the read object list originated from. * \brief Get the client script that the read object list originated from.
@ -192,21 +192,21 @@ namespace ObjectFunctions
* *
* \return The ID of the client script. * \return The ID of the client script.
*/ */
extern "C" const char *GetObjectListClientScript() noexcept; EXPORT_APIFUNCTION const char *CDECL GetObjectListClientScript() noexcept;
/** /**
* \brief Get the action type used in the read object list. * \brief Get the action type used in the read object list.
* *
* \return The action type (0 for SET, 1 for ADD, 2 for REMOVE, 3 for REQUEST). * \return The action type (0 for SET, 1 for ADD, 2 for REMOVE, 3 for REQUEST).
*/ */
extern "C" unsigned char GetObjectListAction() noexcept; EXPORT_APIFUNCTION unsigned char CDECL GetObjectListAction() noexcept;
/** /**
* \brief Get the container subaction type used in the read object list. * \brief Get the container subaction type used in the read object list.
* *
* \return The action type (0 for NONE, 1 for DRAG, 2 for DROP, 3 for TAKE_ALL). * \return The action type (0 for NONE, 1 for DRAG, 2 for DROP, 3 for TAKE_ALL).
*/ */
extern "C" unsigned char GetObjectListContainerSubAction() noexcept; EXPORT_APIFUNCTION unsigned char CDECL GetObjectListContainerSubAction() noexcept;
/** /**
* \brief Check whether the object at a certain index in the read object list is a * \brief Check whether the object at a certain index in the read object list is a
@ -239,7 +239,7 @@ namespace ObjectFunctions
* \param index The index of the object. * \param index The index of the object.
* \return The refId. * \return The refId.
*/ */
extern "C" const char *GetObjectRefId(unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetObjectRefId(unsigned int index) noexcept;
/** /**
* \brief Get the refNum of the object at a certain index in the read object list. * \brief Get the refNum of the object at a certain index in the read object list.
@ -247,7 +247,7 @@ namespace ObjectFunctions
* \param index The index of the object. * \param index The index of the object.
* \return The refNum. * \return The refNum.
*/ */
extern "C" unsigned int GetObjectRefNum(unsigned int index) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetObjectRefNum(unsigned int index) noexcept;
/** /**
* \brief Get the mpNum of the object at a certain index in the read object list. * \brief Get the mpNum of the object at a certain index in the read object list.
@ -255,7 +255,7 @@ namespace ObjectFunctions
* \param index The index of the object. * \param index The index of the object.
* \return The mpNum. * \return The mpNum.
*/ */
extern "C" unsigned int GetObjectMpNum(unsigned int index) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetObjectMpNum(unsigned int index) noexcept;
/** /**
* \brief Get the count of the object at a certain index in the read object list. * \brief Get the count of the object at a certain index in the read object list.
@ -287,7 +287,7 @@ namespace ObjectFunctions
* \param index The index of the object. * \param index The index of the object.
* \return The soul. * \return The soul.
*/ */
extern "C" const char *GetObjectSoul(unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetObjectSoul(unsigned int index) noexcept;
/** /**
* \brief Get the gold value of the object at a certain index in the read object list. * \brief Get the gold value of the object at a certain index in the read object list.
@ -356,7 +356,7 @@ namespace ObjectFunctions
* \param index The index of the object. * \param index The index of the object.
* \return The refId of the activating actor. * \return The refId of the activating actor.
*/ */
extern "C" const char *GetObjectActivatingRefId(unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetObjectActivatingRefId(unsigned int index) noexcept;
/** /**
* \brief Get the refNum of the actor activating the object at a certain index in the read * \brief Get the refNum of the actor activating the object at a certain index in the read
@ -365,7 +365,7 @@ namespace ObjectFunctions
* \param index The index of the object. * \param index The index of the object.
* \return The refNum of the activating actor. * \return The refNum of the activating actor.
*/ */
extern "C" unsigned int GetObjectActivatingRefNum(unsigned int index) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetObjectActivatingRefNum(unsigned int index) noexcept;
/** /**
* \brief Get the mpNum of the actor activating the object at a certain index in the read * \brief Get the mpNum of the actor activating the object at a certain index in the read
@ -374,7 +374,7 @@ namespace ObjectFunctions
* \param index The index of the object. * \param index The index of the object.
* \return The mpNum of the activating actor. * \return The mpNum of the activating actor.
*/ */
extern "C" unsigned int GetObjectActivatingMpNum(unsigned int index) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetObjectActivatingMpNum(unsigned int index) noexcept;
/** /**
* \brief Get the name of the actor activating the object at a certain index in the read * \brief Get the name of the actor activating the object at a certain index in the read
@ -383,7 +383,7 @@ namespace ObjectFunctions
* \param index The index of the object. * \param index The index of the object.
* \return The name of the activating actor. * \return The name of the activating actor.
*/ */
extern "C" const char *GetObjectActivatingName(unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetObjectActivatingName(unsigned int index) noexcept;
/** /**
* \brief Check whether the object at a certain index in the read object list is a * \brief Check whether the object at a certain index in the read object list is a
@ -432,7 +432,7 @@ namespace ObjectFunctions
* \param index The index of the object. * \param index The index of the object.
* \return The refId of the summoner. * \return The refId of the summoner.
*/ */
extern "C" const char *GetObjectSummonerRefId(unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetObjectSummonerRefId(unsigned int index) noexcept;
/** /**
* \brief Get the refNum of the actor summoner of the object at a certain index in the read object * \brief Get the refNum of the actor summoner of the object at a certain index in the read object
@ -441,7 +441,7 @@ namespace ObjectFunctions
* \param index The index of the object. * \param index The index of the object.
* \return The refNum of the summoner. * \return The refNum of the summoner.
*/ */
extern "C" unsigned int GetObjectSummonerRefNum(unsigned int index) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetObjectSummonerRefNum(unsigned int index) noexcept;
/** /**
* \brief Get the mpNum of the actor summoner of the object at a certain index in the read object list. * \brief Get the mpNum of the actor summoner of the object at a certain index in the read object list.
@ -449,7 +449,7 @@ namespace ObjectFunctions
* \param index The index of the object. * \param index The index of the object.
* \return The mpNum of the summoner. * \return The mpNum of the summoner.
*/ */
extern "C" unsigned int GetObjectSummonerMpNum(unsigned int index) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetObjectSummonerMpNum(unsigned int index) noexcept;
/** /**
* \brief Get the X position of the object at a certain index in the read object list. * \brief Get the X position of the object at a certain index in the read object list.
@ -504,7 +504,7 @@ namespace ObjectFunctions
* *
* \return The videoFilename. * \return The videoFilename.
*/ */
extern "C" const char *GetVideoFilename(unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetVideoFilename(unsigned int index) noexcept;
/** /**
* \brief Get the number of container item indexes of the object at a certain index in the * \brief Get the number of container item indexes of the object at a certain index in the
@ -513,7 +513,7 @@ namespace ObjectFunctions
* \param index The index of the object. * \param index The index of the object.
* \return The number of container item indexes. * \return The number of container item indexes.
*/ */
extern "C" unsigned int GetContainerChangesSize(unsigned int objectIndex) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetContainerChangesSize(unsigned int objectIndex) noexcept;
/** /**
* \brief Get the refId of the container item at a certain itemIndex in the container changes * \brief Get the refId of the container item at a certain itemIndex in the container changes
@ -523,7 +523,7 @@ namespace ObjectFunctions
* \param itemIndex The index of the container item. * \param itemIndex The index of the container item.
* \return The refId. * \return The refId.
*/ */
extern "C" const char *GetContainerItemRefId(unsigned int objectIndex, unsigned int itemIndex) noexcept; EXPORT_APIFUNCTION const char *CDECL GetContainerItemRefId(unsigned int objectIndex, unsigned int itemIndex) noexcept;
/** /**
* \brief Get the item count of the container item at a certain itemIndex in the container * \brief Get the item count of the container item at a certain itemIndex in the container
@ -563,7 +563,7 @@ namespace ObjectFunctions
* \param itemIndex The index of the container item. * \param itemIndex The index of the container item.
* \return The soul. * \return The soul.
*/ */
extern "C" const char *GetContainerItemSoul(unsigned int objectIndex, unsigned int itemIndex) noexcept; EXPORT_APIFUNCTION const char *CDECL GetContainerItemSoul(unsigned int objectIndex, unsigned int itemIndex) noexcept;
/** /**
* \brief Get the action count of the container item at a certain itemIndex in the container * \brief Get the action count of the container item at a certain itemIndex in the container
@ -1069,21 +1069,21 @@ namespace ObjectFunctions
// All methods below are deprecated versions of methods from above // All methods below are deprecated versions of methods from above
extern "C" void ReadLastObjectList() noexcept; EXPORT_APIFUNCTION void CDECL ReadLastObjectList() noexcept;
extern "C" void ReadLastEvent() noexcept; EXPORT_APIFUNCTION void CDECL ReadLastEvent() noexcept;
extern "C" void InitializeObjectList(unsigned short pid) noexcept; EXPORT_APIFUNCTION void CDECL InitializeObjectList(unsigned short pid) noexcept;
extern "C" void InitializeEvent(unsigned short pid) noexcept; EXPORT_APIFUNCTION void CDECL InitializeEvent(unsigned short pid) noexcept;
extern "C" void CopyLastObjectListToStore() noexcept; EXPORT_APIFUNCTION void CDECL CopyLastObjectListToStore() noexcept;
extern "C" unsigned int GetObjectChangesSize() noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetObjectChangesSize() noexcept;
extern "C" unsigned char GetEventAction() noexcept; EXPORT_APIFUNCTION unsigned char CDECL GetEventAction() noexcept;
extern "C" unsigned char GetEventContainerSubAction() noexcept; EXPORT_APIFUNCTION unsigned char CDECL GetEventContainerSubAction() noexcept;
extern "C" unsigned int GetObjectRefNumIndex(unsigned int index) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetObjectRefNumIndex(unsigned int index) noexcept;
extern "C" unsigned int GetObjectSummonerRefNumIndex(unsigned int index) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetObjectSummonerRefNumIndex(unsigned int index) noexcept;
extern "C" void SetEventCell(const char* cellDescription) noexcept; EXPORT_APIFUNCTION void CDECL SetEventCell(const char* cellDescription) noexcept;
extern "C" void SetEventAction(unsigned char action) noexcept; EXPORT_APIFUNCTION void CDECL SetEventAction(unsigned char action) noexcept;
extern "C" void SetEventConsoleCommand(const char* consoleCommand) noexcept; EXPORT_APIFUNCTION void CDECL SetEventConsoleCommand(const char* consoleCommand) noexcept;
extern "C" void SetObjectRefNumIndex(int refNum) noexcept; EXPORT_APIFUNCTION void CDECL SetObjectRefNumIndex(int refNum) noexcept;
extern "C" void AddWorldObject() noexcept; EXPORT_APIFUNCTION void CDECL AddWorldObject() noexcept;
} }

View file

@ -59,7 +59,7 @@ namespace QuestFunctions
* \param pid The player ID whose journal changes should be used. * \param pid The player ID whose journal changes should be used.
* \return The number of indexes. * \return The number of indexes.
*/ */
extern "C" unsigned int GetJournalChangesSize(unsigned short pid) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetJournalChangesSize(unsigned short pid) noexcept;
/** /**
* \brief Get the number of indexes in a player's latest kill count changes. * \brief Get the number of indexes in a player's latest kill count changes.
@ -67,7 +67,7 @@ namespace QuestFunctions
* \param pid The player ID whose kill count changes should be used. * \param pid The player ID whose kill count changes should be used.
* \return The number of indexes. * \return The number of indexes.
*/ */
extern "C" unsigned int GetKillChangesSize(unsigned short pid) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetKillChangesSize(unsigned short pid) noexcept;
/** /**
* \brief Add a new journal item of type ENTRY to the journal changes for a player, * \brief Add a new journal item of type ENTRY to the journal changes for a player,
@ -133,7 +133,7 @@ namespace QuestFunctions
* \param index The index of the journalItem. * \param index The index of the journalItem.
* \return The quest. * \return The quest.
*/ */
extern "C" const char *GetJournalItemQuest(unsigned short pid, unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetJournalItemQuest(unsigned short pid, unsigned int index) noexcept;
/** /**
* \brief Get the quest index at a certain index in a player's latest journal changes. * \brief Get the quest index at a certain index in a player's latest journal changes.
@ -162,7 +162,7 @@ namespace QuestFunctions
* \param index The index of the journalItem. * \param index The index of the journalItem.
* \return The actor refId. * \return The actor refId.
*/ */
extern "C" const char *GetJournalItemActorRefId(unsigned short pid, unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetJournalItemActorRefId(unsigned short pid, unsigned int index) noexcept;
/** /**
* \brief Get the refId at a certain index in a player's latest kill count changes. * \brief Get the refId at a certain index in a player's latest kill count changes.
@ -171,7 +171,7 @@ namespace QuestFunctions
* \param index The index of the kill count. * \param index The index of the kill count.
* \return The refId. * \return The refId.
*/ */
extern "C" const char *GetKillRefId(unsigned short pid, unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetKillRefId(unsigned short pid, unsigned int index) noexcept;
/** /**
* \brief Get the number of kills at a certain index in a player's latest kill count changes. * \brief Get the number of kills at a certain index in a player's latest kill count changes.

View file

@ -125,14 +125,14 @@ namespace RecordsDynamicFunctions
* \return The type of records (0 for SPELL, 1 for POTION, 2 for ENCHANTMENT, * \return The type of records (0 for SPELL, 1 for POTION, 2 for ENCHANTMENT,
* 3 for NPC). * 3 for NPC).
*/ */
extern "C" unsigned short GetRecordType() noexcept; EXPORT_APIFUNCTION unsigned short CDECL GetRecordType() noexcept;
/** /**
* \brief Get the number of records in the read worldstate's dynamic records. * \brief Get the number of records in the read worldstate's dynamic records.
* *
* \return The number of records. * \return The number of records.
*/ */
extern "C" unsigned int GetRecordCount() noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetRecordCount() noexcept;
/** /**
* \brief Get the number of effects for the record at a certain index in the read * \brief Get the number of effects for the record at a certain index in the read
@ -141,7 +141,7 @@ namespace RecordsDynamicFunctions
* \param recordIndex The index of the record. * \param recordIndex The index of the record.
* \return The number of effects. * \return The number of effects.
*/ */
extern "C" unsigned int GetRecordEffectCount(unsigned int recordIndex) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetRecordEffectCount(unsigned int recordIndex) noexcept;
/** /**
* \brief Get the id of the record at a certain index in the read worldstate's * \brief Get the id of the record at a certain index in the read worldstate's
@ -150,7 +150,7 @@ namespace RecordsDynamicFunctions
* \param index The index of the record. * \param index The index of the record.
* \return The id of the record. * \return The id of the record.
*/ */
extern "C" const char *GetRecordId(unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetRecordId(unsigned int index) noexcept;
/** /**
* \brief Get the base id (i.e. the id this record should inherit default * \brief Get the base id (i.e. the id this record should inherit default
@ -160,7 +160,7 @@ namespace RecordsDynamicFunctions
* \param index The index of the record. * \param index The index of the record.
* \return The base id of the record. * \return The base id of the record.
*/ */
extern "C" const char *GetRecordBaseId(unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetRecordBaseId(unsigned int index) noexcept;
/** /**
* \brief Get the subtype of the record at a certain index in the read worldstate's * \brief Get the subtype of the record at a certain index in the read worldstate's
@ -178,7 +178,7 @@ namespace RecordsDynamicFunctions
* \param index The index of the record. * \param index The index of the record.
* \return The name of the record. * \return The name of the record.
*/ */
extern "C" const char *GetRecordName(unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetRecordName(unsigned int index) noexcept;
/** /**
* \brief Get the model of the record at a certain index in the read worldstate's * \brief Get the model of the record at a certain index in the read worldstate's
@ -187,7 +187,7 @@ namespace RecordsDynamicFunctions
* \param index The index of the record. * \param index The index of the record.
* \return The model of the record. * \return The model of the record.
*/ */
extern "C" const char *GetRecordModel(unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetRecordModel(unsigned int index) noexcept;
/** /**
* \brief Get the icon of the record at a certain index in the read worldstate's * \brief Get the icon of the record at a certain index in the read worldstate's
@ -196,7 +196,7 @@ namespace RecordsDynamicFunctions
* \param index The index of the record. * \param index The index of the record.
* \return The icon of the record. * \return The icon of the record.
*/ */
extern "C" const char *GetRecordIcon(unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetRecordIcon(unsigned int index) noexcept;
/** /**
* \brief Get the script of the record at a certain index in the read worldstate's * \brief Get the script of the record at a certain index in the read worldstate's
@ -205,7 +205,7 @@ namespace RecordsDynamicFunctions
* \param index The index of the record. * \param index The index of the record.
* \return The script of the record. * \return The script of the record.
*/ */
extern "C" const char *GetRecordScript(unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetRecordScript(unsigned int index) noexcept;
/** /**
* \brief Get the enchantment id of the record at a certain index in the read * \brief Get the enchantment id of the record at a certain index in the read
@ -214,7 +214,7 @@ namespace RecordsDynamicFunctions
* \param index The index of the record. * \param index The index of the record.
* \return The enchantment id of the record. * \return The enchantment id of the record.
*/ */
extern "C" const char *GetRecordEnchantmentId(unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetRecordEnchantmentId(unsigned int index) noexcept;
/** /**
* \brief Get the enchantment charge of the record at a certain index in * \brief Get the enchantment charge of the record at a certain index in
@ -287,7 +287,7 @@ namespace RecordsDynamicFunctions
* \param effectIndex The index of the effect. * \param effectIndex The index of the effect.
* \return The ID of the effect. * \return The ID of the effect.
*/ */
extern "C" unsigned int GetRecordEffectId(unsigned int recordIndex, unsigned int effectIndex) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetRecordEffectId(unsigned int recordIndex, unsigned int effectIndex) noexcept;
/** /**
* \brief Get the ID of the attribute modified by the effect at a certain index in the * \brief Get the ID of the attribute modified by the effect at a certain index in the
@ -317,7 +317,7 @@ namespace RecordsDynamicFunctions
* \param effectIndex The index of the effect. * \param effectIndex The index of the effect.
* \return The range of the effect. * \return The range of the effect.
*/ */
extern "C" unsigned int GetRecordEffectRangeType(unsigned int recordIndex, unsigned int effectIndex) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetRecordEffectRangeType(unsigned int recordIndex, unsigned int effectIndex) noexcept;
/** /**
* \brief Get the area of the effect at a certain index in the read worldstate's current * \brief Get the area of the effect at a certain index in the read worldstate's current

View file

@ -89,14 +89,14 @@ namespace ServerFunctions
* *
* \return The server version. * \return The server version.
*/ */
extern "C" const char *GetServerVersion() noexcept; EXPORT_APIFUNCTION const char *CDECL GetServerVersion() noexcept;
/** /**
* \brief Get the protocol version of the server. * \brief Get the protocol version of the server.
* *
* \return The protocol version. * \return The protocol version.
*/ */
extern "C" const char *GetProtocolVersion() noexcept; EXPORT_APIFUNCTION const char *CDECL GetProtocolVersion() noexcept;
/** /**
* \brief Get the average ping of a certain player. * \brief Get the average ping of a certain player.
@ -119,14 +119,14 @@ namespace ServerFunctions
* *
* \return Port * \return Port
*/ */
extern "C" unsigned short GetPort() noexcept; EXPORT_APIFUNCTION unsigned short CDECL GetPort() noexcept;
/** /**
* \brief Get the maximum number of players. * \brief Get the maximum number of players.
* *
* \return Max players * \return Max players
*/ */
extern "C" unsigned int GetMaxPlayers() noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetMaxPlayers() noexcept;
/** /**
* \brief Checking if the server requires a password to connect. * \brief Checking if the server requires a password to connect.

View file

@ -42,7 +42,7 @@ namespace ShapeshiftFunctions
* \param pid The player ID. * \param pid The player ID.
* \return The creature refId. * \return The creature refId.
*/ */
extern "C" const char *GetCreatureRefId(unsigned short pid) noexcept; EXPORT_APIFUNCTION const char *CDECL GetCreatureRefId(unsigned short pid) noexcept;
/** /**
* \brief Check whether a player's name is replaced by that of the creature they are * \brief Check whether a player's name is replaced by that of the creature they are

View file

@ -34,7 +34,7 @@ namespace SpellFunctions
* \param pid The player ID whose spellbook changes should be used. * \param pid The player ID whose spellbook changes should be used.
* \return The number of indexes. * \return The number of indexes.
*/ */
extern "C" unsigned int GetSpellbookChangesSize(unsigned short pid) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetSpellbookChangesSize(unsigned short pid) noexcept;
/** /**
* \brief Get the action type used in a player's latest spellbook changes. * \brief Get the action type used in a player's latest spellbook changes.
@ -42,7 +42,7 @@ namespace SpellFunctions
* \param pid The player ID whose spellbook changes should be used. * \param pid The player ID whose spellbook changes should be used.
* \return The action type (0 for SET, 1 for ADD, 2 for REMOVE). * \return The action type (0 for SET, 1 for ADD, 2 for REMOVE).
*/ */
extern "C" unsigned int GetSpellbookChangesAction(unsigned short pid) noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetSpellbookChangesAction(unsigned short pid) noexcept;
/** /**
* \brief Set the action type in a player's spellbook changes. * \brief Set the action type in a player's spellbook changes.
@ -69,7 +69,7 @@ namespace SpellFunctions
* \param index The index of the spell. * \param index The index of the spell.
* \return The spellId. * \return The spellId.
*/ */
extern "C" const char *GetSpellId(unsigned short pid, unsigned int index) noexcept; EXPORT_APIFUNCTION const char *CDECL GetSpellId(unsigned short pid, unsigned int index) noexcept;
/** /**
* \brief Send a PlayerSpellbook packet with a player's recorded spellbook changes. * \brief Send a PlayerSpellbook packet with a player's recorded spellbook changes.

View file

@ -123,7 +123,7 @@ namespace StatsFunctions
* \param attributeId The ID of the attribute. * \param attributeId The ID of the attribute.
* \return The name of the attribute. * \return The name of the attribute.
*/ */
extern "C" const char *GetAttributeName(unsigned short attributeId) noexcept; EXPORT_APIFUNCTION const char *CDECL GetAttributeName(unsigned short attributeId) noexcept;
/** /**
* \brief Get the name of the skill with a certain numerical ID. * \brief Get the name of the skill with a certain numerical ID.
@ -133,7 +133,7 @@ namespace StatsFunctions
* \param skillId The ID of the skill. * \param skillId The ID of the skill.
* \return The name of the skill. * \return The name of the skill.
*/ */
extern "C" const char *GetSkillName(unsigned short skillId) noexcept; EXPORT_APIFUNCTION const char *CDECL GetSkillName(unsigned short skillId) noexcept;
/** /**
* \brief Get the name of a player. * \brief Get the name of a player.
@ -141,7 +141,7 @@ namespace StatsFunctions
* \param pid The player ID. * \param pid The player ID.
* \return The name of the player. * \return The name of the player.
*/ */
extern "C" const char *GetName(unsigned short pid) noexcept; EXPORT_APIFUNCTION const char *CDECL GetName(unsigned short pid) noexcept;
/** /**
* \brief Get the race of a player. * \brief Get the race of a player.
@ -149,7 +149,7 @@ namespace StatsFunctions
* \param pid The player ID. * \param pid The player ID.
* \return The race of the player. * \return The race of the player.
*/ */
extern "C" const char *GetRace(unsigned short pid) noexcept; EXPORT_APIFUNCTION const char *CDECL GetRace(unsigned short pid) noexcept;
/** /**
* \brief Get the head mesh used by a player. * \brief Get the head mesh used by a player.
@ -157,7 +157,7 @@ namespace StatsFunctions
* \param pid The player ID. * \param pid The player ID.
* \return The head mesh of the player. * \return The head mesh of the player.
*/ */
extern "C" const char *GetHead(unsigned short pid) noexcept; EXPORT_APIFUNCTION const char *CDECL GetHead(unsigned short pid) noexcept;
/** /**
* \brief Get the hairstyle mesh used by a player. * \brief Get the hairstyle mesh used by a player.
@ -165,7 +165,7 @@ namespace StatsFunctions
* \param pid The player ID. * \param pid The player ID.
* \return The hairstyle mesh of the player. * \return The hairstyle mesh of the player.
*/ */
extern "C" const char *GetHairstyle(unsigned short pid) noexcept; EXPORT_APIFUNCTION const char *CDECL GetHairstyle(unsigned short pid) noexcept;
/** /**
* \brief Check whether a player is male or not. * \brief Check whether a player is male or not.
@ -181,7 +181,7 @@ namespace StatsFunctions
* \param pid The player ID. * \param pid The player ID.
* \return The birthsign of the player. * \return The birthsign of the player.
*/ */
extern "C" const char *GetBirthsign(unsigned short pid) noexcept; EXPORT_APIFUNCTION const char *CDECL GetBirthsign(unsigned short pid) noexcept;
/** /**
* \brief Get the character level of a player. * \brief Get the character level of a player.

View file

@ -93,14 +93,14 @@ namespace WorldstateFunctions
* *
* \return The number of indexes. * \return The number of indexes.
*/ */
extern "C" unsigned int GetMapChangesSize() noexcept; EXPORT_APIFUNCTION unsigned int CDECL GetMapChangesSize() noexcept;
/** /**
* \brief Get the weather region in the read worldstate. * \brief Get the weather region in the read worldstate.
* *
* \return The weather region. * \return The weather region.
*/ */
extern "C" const char *GetWeatherRegion() noexcept; EXPORT_APIFUNCTION const char *CDECL GetWeatherRegion() noexcept;
/** /**
* \brief Get the current weather in the read worldstate. * \brief Get the current weather in the read worldstate.