2020-02-08 09:21:35 +01:00
|
|
|
#include "polobject.h"
|
|
|
|
|
#include "uoexec.h"
|
2026-01-17 10:30:21 +01:00
|
|
|
|
|
|
|
|
namespace Pol::Core
|
2020-02-08 09:21:35 +01:00
|
|
|
{
|
|
|
|
|
using namespace Bscript;
|
|
|
|
|
BObjectImp* PolObjectImp::call_method( const char* methodname, Executor& ex )
|
|
|
|
|
{
|
|
|
|
|
passert( ex.type() == ExecutorType::POL );
|
|
|
|
|
auto& uoex = static_cast<Core::UOExecutor&>( ex );
|
|
|
|
|
return this->call_polmethod( methodname, uoex );
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-17 10:30:21 +01:00
|
|
|
BObjectImp* PolObjectImp::call_method_id( const int id, Executor& ex, bool forcebuiltin )
|
2020-02-08 09:21:35 +01:00
|
|
|
{
|
|
|
|
|
passert( ex.type() == ExecutorType::POL );
|
|
|
|
|
auto& uoex = static_cast<Core::UOExecutor&>( ex );
|
|
|
|
|
return this->call_polmethod_id( id, uoex, forcebuiltin );
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-17 10:30:21 +01:00
|
|
|
BObjectImp* PolObjectImp::call_polmethod( const char* methodname, Core::UOExecutor& uoex )
|
2020-02-08 09:21:35 +01:00
|
|
|
{
|
|
|
|
|
return BObjectImp::call_method( methodname, uoex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
BObjectImp* PolObjectImp::call_polmethod_id( const int id, Core::UOExecutor& uoex,
|
2026-01-17 10:30:21 +01:00
|
|
|
bool forcebuiltin )
|
2020-02-08 09:21:35 +01:00
|
|
|
{
|
|
|
|
|
return BObjectImp::call_method_id( id, uoex, forcebuiltin );
|
|
|
|
|
}
|
2026-01-17 10:30:21 +01:00
|
|
|
} // namespace Pol::Core
|