mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-20 19:39:41 +00:00
[General] Use clearer method name for tracking InterpreterContext type
This commit is contained in:
parent
63480a0012
commit
2cb16e778c
7 changed files with 10 additions and 10 deletions
|
@ -251,7 +251,7 @@ void OMW::Engine::executeLocalScripts()
|
|||
so that packets sent by the Interpreter can have their
|
||||
origin determined by serverside scripts
|
||||
*/
|
||||
interpreterContext.setContextType(Interpreter::Context::SCRIPT_LOCAL);
|
||||
interpreterContext.trackContextType(Interpreter::Context::SCRIPT_LOCAL);
|
||||
/*
|
||||
End of tes3mp addition
|
||||
*/
|
||||
|
|
|
@ -262,7 +262,7 @@ namespace MWDialogue
|
|||
so that packets sent by the Interpreter can have their
|
||||
origin determined by serverside scripts
|
||||
*/
|
||||
interpreterContext.setContextType(Interpreter::Context::DIALOGUE);
|
||||
interpreterContext.trackContextType(Interpreter::Context::DIALOGUE);
|
||||
/*
|
||||
End of tes3mp addition
|
||||
*/
|
||||
|
|
|
@ -216,7 +216,7 @@ namespace MWGui
|
|||
so that packets sent by the Interpreter can have their
|
||||
origin determined by serverside scripts
|
||||
*/
|
||||
interpreterContext.setContextType(Interpreter::Context::CONSOLE);
|
||||
interpreterContext.trackContextType(Interpreter::Context::CONSOLE);
|
||||
|
||||
mwmp::ObjectList *objectList = mwmp::Main::get().getNetworking()->getObjectList();
|
||||
objectList->reset();
|
||||
|
|
|
@ -178,7 +178,7 @@ namespace MWScript
|
|||
so that packets sent by the Interpreter can have their
|
||||
origin determined by serverside scripts
|
||||
*/
|
||||
context.setContextType(Interpreter::Context::SCRIPT_GLOBAL);
|
||||
context.trackContextType(Interpreter::Context::SCRIPT_GLOBAL);
|
||||
/*
|
||||
End of tes3mp addition
|
||||
*/
|
||||
|
|
|
@ -45,14 +45,14 @@ namespace MWScript
|
|||
/*
|
||||
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
|
||||
{
|
||||
return mContextType;
|
||||
}
|
||||
|
||||
void InterpreterContext::setContextType(unsigned short contextType)
|
||||
void InterpreterContext::trackContextType(unsigned short contextType)
|
||||
{
|
||||
mContextType = contextType;
|
||||
}
|
||||
|
|
|
@ -71,13 +71,13 @@ namespace MWScript
|
|||
/*
|
||||
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;
|
||||
|
||||
virtual unsigned short getContextType() const;
|
||||
|
||||
virtual void setContextType(unsigned short contextType);
|
||||
virtual void trackContextType(unsigned short contextType);
|
||||
/*
|
||||
End of tes3mp addition
|
||||
*/
|
||||
|
|
|
@ -109,10 +109,10 @@ namespace Interpreter
|
|||
/*
|
||||
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 void setContextType(unsigned short interpreterType) = 0;
|
||||
virtual void trackContextType(unsigned short interpreterType) = 0;
|
||||
/*
|
||||
End of tes3mp addition
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue