2017-04-09 09:28:38 +00:00
|
|
|
#ifndef OPENMW_ACTORAPI_HPP
|
|
|
|
#define OPENMW_ACTORAPI_HPP
|
2017-04-09 09:24:33 +00:00
|
|
|
|
|
|
|
#define ACTORAPI \
|
2017-04-10 03:15:03 +00:00
|
|
|
{"InitScriptActorList", ActorFunctions::InitScriptActorList},\
|
2017-04-09 09:24:33 +00:00
|
|
|
\
|
2017-04-10 03:15:03 +00:00
|
|
|
{"GetActorListSize", ActorFunctions::GetActorListSize},\
|
|
|
|
{"GetLastActorListAction", ActorFunctions::GetLastActorListAction},\
|
2017-04-09 13:32:44 +00:00
|
|
|
\
|
2017-04-27 11:59:49 +00:00
|
|
|
{"GetActorCell", ActorFunctions::GetActorCell},\
|
2017-04-10 03:15:03 +00:00
|
|
|
{"GetActorRefId", ActorFunctions::GetActorRefId},\
|
|
|
|
{"GetActorRefNumIndex", ActorFunctions::GetActorRefNumIndex},\
|
|
|
|
{"GetActorMpNum", ActorFunctions::GetActorMpNum},\
|
2017-04-27 21:05:12 +00:00
|
|
|
{"GetActorPosX", ActorFunctions::GetActorPosX},\
|
|
|
|
{"GetActorPosY", ActorFunctions::GetActorPosY},\
|
|
|
|
{"GetActorPosZ", ActorFunctions::GetActorPosZ},\
|
|
|
|
{"GetActorRotX", ActorFunctions::GetActorRotX},\
|
|
|
|
{"GetActorRotY", ActorFunctions::GetActorRotY},\
|
|
|
|
{"GetActorRotZ", ActorFunctions::GetActorRotZ},\
|
2017-04-10 03:15:03 +00:00
|
|
|
\
|
|
|
|
{"SetScriptActorListCell", ActorFunctions::SetScriptActorListCell},\
|
|
|
|
{"SetScriptActorListAction", ActorFunctions::SetScriptActorListAction},\
|
|
|
|
\
|
|
|
|
{"SetActorRefId", ActorFunctions::SetActorRefId},\
|
|
|
|
{"SetActorRefNumIndex", ActorFunctions::SetActorRefNumIndex},\
|
|
|
|
{"SetActorMpNum", ActorFunctions::SetActorMpNum},\
|
|
|
|
\
|
|
|
|
{"AddActor", ActorFunctions::AddActor},\
|
|
|
|
\
|
|
|
|
{"SendActorList", ActorFunctions::SendActorList},\
|
|
|
|
{"SendActorAuthority", ActorFunctions::SendActorAuthority}
|
2017-04-09 09:24:33 +00:00
|
|
|
|
|
|
|
class ActorFunctions
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2017-04-10 03:15:03 +00:00
|
|
|
static void InitScriptActorList(unsigned short pid) noexcept;
|
2017-04-09 09:24:33 +00:00
|
|
|
|
|
|
|
static unsigned int GetActorListSize() noexcept;
|
2017-04-10 03:15:03 +00:00
|
|
|
static unsigned char GetLastActorListAction() noexcept;
|
|
|
|
|
2017-04-27 11:59:49 +00:00
|
|
|
static const char *GetActorCell(unsigned int i) noexcept;
|
2017-04-10 03:15:03 +00:00
|
|
|
static const char *GetActorRefId(unsigned int i) noexcept;
|
|
|
|
static int GetActorRefNumIndex(unsigned int i) noexcept;
|
|
|
|
static int GetActorMpNum(unsigned int i) noexcept;
|
2017-04-27 21:05:12 +00:00
|
|
|
static double GetActorPosX(unsigned int i) noexcept;
|
|
|
|
static double GetActorPosY(unsigned int i) noexcept;
|
|
|
|
static double GetActorPosZ(unsigned int i) noexcept;
|
|
|
|
static double GetActorRotX(unsigned int i) noexcept;
|
|
|
|
static double GetActorRotY(unsigned int i) noexcept;
|
|
|
|
static double GetActorRotZ(unsigned int i) noexcept;
|
2017-04-10 03:15:03 +00:00
|
|
|
|
|
|
|
static void SetScriptActorListCell(const char* cellDescription) noexcept;
|
|
|
|
static void SetScriptActorListAction(unsigned char action) noexcept;
|
|
|
|
|
|
|
|
static void SetActorRefId(const char* refId) noexcept;
|
|
|
|
static void SetActorRefNumIndex(int refNumIndex) noexcept;
|
|
|
|
static void SetActorMpNum(int mpNum) noexcept;
|
|
|
|
|
|
|
|
static void AddActor() noexcept;
|
2017-04-09 13:32:44 +00:00
|
|
|
|
|
|
|
static void SendActorList() noexcept;
|
|
|
|
static void SendActorAuthority() noexcept;
|
2017-04-09 09:24:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2017-04-09 09:28:38 +00:00
|
|
|
#endif //OPENMW_ACTORAPI_HPP
|