1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 18:19:55 +00:00

[Server] Change signatures of GetLastEventAction & SetScriptEventAction

This commit is contained in:
Koncord 2017-02-23 15:17:00 +08:00
parent 059043fea9
commit b158e89f77
2 changed files with 4 additions and 4 deletions

View file

@ -30,7 +30,7 @@ unsigned int WorldFunctions::GetObjectChangesSize() noexcept
return mwmp::Networking::getPtr()->getLastEvent()->objectChanges.count; return mwmp::Networking::getPtr()->getLastEvent()->objectChanges.count;
} }
unsigned int WorldFunctions::GetLastEventAction() noexcept unsigned char WorldFunctions::GetLastEventAction() noexcept
{ {
return mwmp::Networking::getPtr()->getLastEvent()->action; return mwmp::Networking::getPtr()->getLastEvent()->action;
} }
@ -157,7 +157,7 @@ void WorldFunctions::SetScriptEventCell(const char* cellDescription) noexcept
} }
} }
void WorldFunctions::SetScriptEventAction(int action) noexcept void WorldFunctions::SetScriptEventAction(unsigned char action) noexcept
{ {
scriptEvent.action = action; scriptEvent.action = action;
} }

View file

@ -68,7 +68,7 @@ public:
static void InitScriptEvent(unsigned short pid) noexcept; static void InitScriptEvent(unsigned short pid) noexcept;
static unsigned int GetObjectChangesSize() noexcept; static unsigned int GetObjectChangesSize() noexcept;
static unsigned int GetLastEventAction() noexcept; static unsigned char GetLastEventAction() noexcept;
static const char *GetObjectRefId(unsigned int i) noexcept; static const char *GetObjectRefId(unsigned int i) noexcept;
static int GetObjectRefNumIndex(unsigned int i) noexcept; static int GetObjectRefNumIndex(unsigned int i) noexcept;
@ -92,7 +92,7 @@ public:
static int GetContainerItemActionCount(unsigned int objectIndex, unsigned int itemIndex) noexcept; static int GetContainerItemActionCount(unsigned int objectIndex, unsigned int itemIndex) noexcept;
static void SetScriptEventCell(const char* cellDescription) noexcept; static void SetScriptEventCell(const char* cellDescription) noexcept;
static void SetScriptEventAction(int action) noexcept; static void SetScriptEventAction(unsigned char action) noexcept;
static void SetObjectRefId(const char* refId) noexcept; static void SetObjectRefId(const char* refId) noexcept;
static void SetObjectRefNumIndex(int refNumIndex) noexcept; static void SetObjectRefNumIndex(int refNumIndex) noexcept;