polserver/pol-core/bscript/execmodl.cpp
turleypol ebe884c2fe Merge remote-tracking branch 'origin/master' into utf8
* origin/master: (70 commits)
  Fix to items randomly loading with AOS props due to incorrect initalization of props on load of server.
  Rectify core not clearing mobiles from client during shadow realm shift.
  SendQuestArrow() fix for HSA clients (#91)
  Hotfix/start skill script (#90)
  Noninvasive dynaprops (#89)
  Update objref.xml
  Some network error conditions were missing...
  Final adjustments to core-changes
  Added Turley's missing core-changes :P
  Improved connection handling:  - Linux isn't limited to 1024 connections anymore  - Windows may have some slight performance boost
  removed senseless gitignore files
  use generator unspecific clean cmd in build_tools.sh always generate compile_commands.json force color diagnostic (to work with ninja)
  Curl building uses now the same compiler as pol
  fixed target_link_directories system header declaration
  check if container is orphan when adding items as content. for now it crashes the shard to have the backtrace. (would crash anyway later)
  add corechanges for doc changes
  new build target "clang_format" runs clang-format on current modified or new files in pol-core dir.
  Formatting
  Fix xml indentation
  fix indentation
  ...

Conflicts:
	pol-core/bscript/execmodl.cpp
	pol-core/doc/core-changes.txt
	pol-core/pol/getmsg.cpp
	pol-core/pol/module/unimod.cpp
2019-08-16 19:02:53 +02:00

121 lines
3.1 KiB
C++

/** @file
*
* @par History
*/
#include "execmodl.h"
#include <string>
#include "executor.h"
namespace Pol
{
namespace Bscript
{
ExecutorModule::ExecutorModule( const char* moduleName, Executor& iExec )
: exec( iExec ), moduleName( moduleName )
{
}
BObjectImp* ExecutorModule::getParamImp( unsigned param )
{
return exec.getParamImp( param );
}
BObjectImp* ExecutorModule::getParamImp( unsigned param, BObjectImp::BObjectType type )
{
return exec.getParamImp( param, type );
}
bool ExecutorModule::getParamImp( unsigned param, BObjectImp*& imp )
{
imp = exec.getParamImp( param );
return imp != nullptr;
}
const String* ExecutorModule::getStringParam( unsigned param )
{
return exec.getStringParam( param );
}
void* ExecutorModule::getApplicPtrParam( unsigned param, const BApplicObjType* pointer_type )
{
return exec.getApplicPtrParam( param, pointer_type );
}
BApplicObjBase* ExecutorModule::getApplicObjParam( unsigned param,
const BApplicObjType* object_type )
{
return exec.getApplicObjParam( param, object_type );
}
bool ExecutorModule::getStringParam( unsigned param, const String*& pstr )
{
return exec.getStringParam( param, pstr );
}
bool ExecutorModule::getUnicodeStringParam( unsigned param, const String*& pstr )
{
return exec.getUnicodeStringParam( param, pstr );
}
bool ExecutorModule::getRealParam( unsigned param, double& value )
{
return exec.getRealParam( param, value );
}
bool ExecutorModule::getObjArrayParam( unsigned param, ObjArray*& pobjarr )
{
return exec.getObjArrayParam( param, pobjarr );
}
bool ExecutorModule::getParam( unsigned param, int& value )
{
return exec.getParam( param, value );
}
bool ExecutorModule::getParam( unsigned param, int& value, int maxval )
{
return exec.getParam( param, value, maxval );
}
bool ExecutorModule::getParam( unsigned param, int& value, int minval, int maxval )
{
return exec.getParam( param, value, minval, maxval );
}
bool ExecutorModule::getParam( unsigned param, unsigned& value )
{
return exec.getParam( param, value );
}
bool ExecutorModule::getParam( unsigned param, short& value )
{
return exec.getParam( param, value );
}
bool ExecutorModule::getParam( unsigned param, short& value, short maxval )
{
return exec.getParam( param, value, maxval );
}
bool ExecutorModule::getParam( unsigned param, short& value, short minval, short maxval )
{
return exec.getParam( param, value, minval, maxval );
}
bool ExecutorModule::getParam( unsigned param, unsigned short& value )
{
return exec.getParam( param, value );
}
bool ExecutorModule::getParam( unsigned param, unsigned short& value, unsigned short maxval )
{
return exec.getParam( param, value, maxval );
}
bool ExecutorModule::getParam( unsigned param, unsigned short& value, unsigned short minval,
unsigned short maxval )
{
return exec.getParam( param, value, minval, maxval );
}
const std::string& ExecutorModule::scriptname() const
{
return exec.prog_->name;
}
size_t ExecutorModule::sizeEstimate() const
{
return sizeof( *this );
}
} // namespace Bscript
} // namespace Pol