1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-21 18:39:40 +00:00

[General] Use clearer method name for tracking InterpreterContext type

This commit is contained in:
David Cernat 2020-07-26 20:03:33 +02:00
parent 63480a0012
commit 2cb16e778c
7 changed files with 10 additions and 10 deletions

View file

@ -251,7 +251,7 @@ void OMW::Engine::executeLocalScripts()
so that packets sent by the Interpreter can have their so that packets sent by the Interpreter can have their
origin determined by serverside scripts origin determined by serverside scripts
*/ */
interpreterContext.setContextType(Interpreter::Context::SCRIPT_LOCAL); interpreterContext.trackContextType(Interpreter::Context::SCRIPT_LOCAL);
/* /*
End of tes3mp addition End of tes3mp addition
*/ */

View file

@ -262,7 +262,7 @@ namespace MWDialogue
so that packets sent by the Interpreter can have their so that packets sent by the Interpreter can have their
origin determined by serverside scripts origin determined by serverside scripts
*/ */
interpreterContext.setContextType(Interpreter::Context::DIALOGUE); interpreterContext.trackContextType(Interpreter::Context::DIALOGUE);
/* /*
End of tes3mp addition End of tes3mp addition
*/ */

View file

@ -216,7 +216,7 @@ namespace MWGui
so that packets sent by the Interpreter can have their so that packets sent by the Interpreter can have their
origin determined by serverside scripts origin determined by serverside scripts
*/ */
interpreterContext.setContextType(Interpreter::Context::CONSOLE); interpreterContext.trackContextType(Interpreter::Context::CONSOLE);
mwmp::ObjectList *objectList = mwmp::Main::get().getNetworking()->getObjectList(); mwmp::ObjectList *objectList = mwmp::Main::get().getNetworking()->getObjectList();
objectList->reset(); objectList->reset();

View file

@ -178,7 +178,7 @@ namespace MWScript
so that packets sent by the Interpreter can have their so that packets sent by the Interpreter can have their
origin determined by serverside scripts origin determined by serverside scripts
*/ */
context.setContextType(Interpreter::Context::SCRIPT_GLOBAL); context.trackContextType(Interpreter::Context::SCRIPT_GLOBAL);
/* /*
End of tes3mp addition End of tes3mp addition
*/ */

View file

@ -45,14 +45,14 @@ namespace MWScript
/* /*
Start of tes3mp addition Start of tes3mp addition
Used for setting and checking the type of this InterpreterContext Used for tracking and checking the type of this InterpreterContext
*/ */
unsigned short InterpreterContext::getContextType() const unsigned short InterpreterContext::getContextType() const
{ {
return mContextType; return mContextType;
} }
void InterpreterContext::setContextType(unsigned short contextType) void InterpreterContext::trackContextType(unsigned short contextType)
{ {
mContextType = contextType; mContextType = contextType;
} }

View file

@ -71,13 +71,13 @@ namespace MWScript
/* /*
Start of tes3mp addition Start of tes3mp addition
Used for setting and checking the type of this InterpreterContext Used for tracking and checking the type of this InterpreterContext
*/ */
unsigned short mContextType; unsigned short mContextType;
virtual unsigned short getContextType() const; virtual unsigned short getContextType() const;
virtual void setContextType(unsigned short contextType); virtual void trackContextType(unsigned short contextType);
/* /*
End of tes3mp addition End of tes3mp addition
*/ */

View file

@ -109,10 +109,10 @@ namespace Interpreter
/* /*
Start of tes3mp addition Start of tes3mp addition
Used for setting and checking the type of this Context Used for tracking and checking the type of this Context
*/ */
virtual unsigned short getContextType() const = 0; virtual unsigned short getContextType() const = 0;
virtual void setContextType(unsigned short interpreterType) = 0; virtual void trackContextType(unsigned short interpreterType) = 0;
/* /*
End of tes3mp addition End of tes3mp addition
*/ */