CommonLibSSE (Parapets fork)
|
#include <IVirtualMachine.h>
Classes | |
struct | Awaitable |
Public Types | |
using | Severity = BSScript::ErrorLogger::Severity |
Public Member Functions | |
virtual | ~IVirtualMachine () |
virtual void | SetLinkedCallback (ITypeLinkedCallback *a_callback)=0 |
virtual void | TraceStack (const char *a_str, VMStackID a_stackID, Severity a_severity=Severity::kInfo)=0 |
virtual void | Unk_03 (void)=0 |
virtual void | Update (float a_budget)=0 |
virtual void | UpdateTasklets (float a_budget)=0 |
virtual void | SetOverstressed (bool a_set)=0 |
virtual bool | IsCompletelyFrozen () const =0 |
virtual bool | RegisterObjectType (VMTypeID a_typeID, const char *a_className)=0 |
virtual bool | GetScriptObjectType1 (const BSFixedString &a_className, BSTSmartPointer< ObjectTypeInfo > &a_outTypeInfoPtr)=0 |
virtual bool | GetScriptObjectType2 (VMTypeID a_typeID, BSTSmartPointer< ObjectTypeInfo > &a_outTypeInfoPtr)=0 |
virtual bool | GetScriptObjectTypeNoLoad1 (const BSFixedString &a_className, BSTSmartPointer< ObjectTypeInfo > &a_typeInfoPtr) const =0 |
virtual bool | GetScriptObjectTypeNoLoad2 (VMTypeID a_typeID, BSTSmartPointer< ObjectTypeInfo > &a_outTypeInfoPtr) const =0 |
virtual bool | GetTypeIDForScriptObject (const BSFixedString &a_className, VMTypeID &a_typeID) const =0 |
virtual void | GetScriptObjectsWithATypeID (BSScrapArray< BSFixedString > &a_classes) const =0 |
virtual bool | GetParentNativeType (const BSFixedString &a_className, BSTSmartPointer< ObjectTypeInfo > &a_typeInfoPtr)=0 |
virtual bool | TypeIsValid (const BSFixedString &a_className)=0 |
virtual bool | ReloadType (const char *a_className)=0 |
virtual void | TasksToJobs (BSJobs::JobList &a_jobList)=0 |
virtual void | CalculateFullReloadList (void) const =0 |
virtual bool | CreateObject1 (const BSFixedString &a_className, void *a_property, BSTSmartPointer< Object > &a_objPtr)=0 |
virtual bool | CreateObject2 (const BSFixedString &a_className, BSTSmartPointer< Object > &a_result)=0 |
virtual bool | CreateArray1 (const TypeInfo &a_typeInfo, std::uint32_t a_size, BSTSmartPointer< Array > &a_arrayPtr)=0 |
virtual bool | CreateArray2 (TypeInfo::RawType a_typeID, const BSFixedString &a_className, std::uint32_t a_size, BSTSmartPointer< Array > &a_arrayPtr)=0 |
virtual bool | BindNativeMethod (IFunction *a_fn)=0 |
virtual void | SetCallableFromTasklets1 (const char *a_className, const char *a_stateName, const char *a_fnName, bool a_callable)=0 |
virtual void | SetCallableFromTasklets2 (const char *a_className, const char *a_fnName, bool a_callable)=0 |
virtual void | ForEachBoundObject (VMHandle a_handle, IForEachScriptObjectFunctor *a_functor)=0 |
virtual bool | FindBoundObject (VMHandle a_handle, const char *a_className, BSTSmartPointer< Object > &a_result) const =0 |
virtual void | MoveBoundObjects (VMHandle a_from, VMHandle a_to)=0 |
virtual void | ResetAllBoundObjects (VMHandle a_handle)=0 |
virtual bool | CastObject (const BSTSmartPointer< Object > &a_fromObjPtr, const BSTSmartPointer< ObjectTypeInfo > &a_toTypeInfoPtr, BSTSmartPointer< Object > &a_toObjPtr)=0 |
virtual bool | SetPropertyValue (BSTSmartPointer< Object > &a_obj, const char *a_propertyName, Variable &a_setVal)=0 |
virtual bool | GetPropertyValue (BSTSmartPointer< Object > &a_obj, const char *a_propertyName, Variable &a_getVal)=0 |
virtual bool | GetVariableValue1 (const BSTSmartPointer< Object > &a_objPtr, std::uint32_t a_index, Variable &a_out) const =0 |
virtual bool | GetVariableValue2 (VMHandle a_handle, const BSFixedString &a_className, std::int32_t a_variableIndex, Variable &a_out) const =0 |
virtual void | SendEvent (VMHandle a_handle, const BSFixedString &a_eventName, IFunctionArguments *a_args)=0 |
virtual void | SendEventAll (const BSFixedString &a_eventName, IFunctionArguments *a_args)=0 |
virtual bool | DispatchStaticCall (const BSFixedString &a_className, const BSFixedString &a_fnName, IFunctionArguments *a_args, BSTSmartPointer< IStackCallbackFunctor > &a_result)=0 |
virtual bool | DispatchMethodCall1 (BSTSmartPointer< Object > &a_obj, const BSFixedString &a_fnName, IFunctionArguments *a_args, BSTSmartPointer< IStackCallbackFunctor > &a_result)=0 |
virtual bool | DispatchMethodCall2 (VMHandle a_handle, const BSFixedString &a_className, const BSFixedString &a_fnName, IFunctionArguments *a_args, BSTSmartPointer< IStackCallbackFunctor > &a_result)=0 |
virtual bool | DispatchUnboundMethodCall (void)=0 |
virtual bool | IsWaitingOnLatent (VMStackID a_stackID) const =0 |
virtual void | ReturnFromLatent (VMStackID a_stackID, const Variable &a_val)=0 |
virtual ErrorLogger * | GetErrorLogger ()=0 |
virtual IObjectHandlePolicy * | GetObjectHandlePolicy1 ()=0 |
virtual const IObjectHandlePolicy * | GetObjectHandlePolicy2 () const =0 |
virtual ObjectBindPolicy * | GetObjectBindPolicy1 ()=0 |
virtual const ObjectBindPolicy * | GetObjectBindPolicy2 () const =0 |
virtual ISavePatcherInterface * | GetSavePatcherInterface ()=0 |
virtual void | RegisterForLogEvent (BSTEventSink< LogEvent > *a_sink)=0 |
virtual void | UnregisterForLogEvent (BSTEventSink< LogEvent > *a_sink)=0 |
virtual void | RegisterForStatsEvent (BSTEventSink< StatsEvent > *a_sink)=0 |
virtual void | UnregisterForStatsEvent (BSTEventSink< StatsEvent > *a_sink)=0 |
bool | CreateArray (const TypeInfo &a_typeInfo, std::uint32_t a_size, BSTSmartPointer< Array > &a_arrayPtr) |
bool | CreateArray (TypeInfo::RawType a_typeID, const BSFixedString &a_className, std::uint32_t a_size, BSTSmartPointer< Array > &a_arrayPtr) |
bool | CreateObject (const BSFixedString &a_className, void *a_property, BSTSmartPointer< Object > &a_objPtr) |
bool | CreateObject (const BSFixedString &a_className, BSTSmartPointer< Object > &a_result) |
bool | DispatchMethodCall (BSTSmartPointer< Object > &a_obj, const BSFixedString &a_fnName, IFunctionArguments *a_args, BSTSmartPointer< IStackCallbackFunctor > &a_result) |
Awaitable | DispatchMethodCall (BSTSmartPointer< Object > &a_obj, const BSFixedString &a_fnName, IFunctionArguments *a_args) |
bool | DispatchMethodCall (VMHandle a_handle, const BSFixedString &a_className, const BSFixedString &a_fnName, IFunctionArguments *a_args, BSTSmartPointer< IStackCallbackFunctor > &a_result) |
Awaitable | DispatchMethodCall (VMHandle a_handle, const BSFixedString &a_className, const BSFixedString &a_fnName, IFunctionArguments *a_args) |
Awaitable | DispatchStaticCall (const BSFixedString &a_className, const BSFixedString &a_fnName, IFunctionArguments *a_args) |
ObjectBindPolicy * | GetObjectBindPolicy () |
const ObjectBindPolicy * | GetObjectBindPolicy () const |
IObjectHandlePolicy * | GetObjectHandlePolicy () |
const IObjectHandlePolicy * | GetObjectHandlePolicy () const |
bool | GetScriptObjectType (const BSFixedString &a_className, BSTSmartPointer< ObjectTypeInfo > &a_outTypeInfoPtr) |
bool | GetScriptObjectType (VMTypeID a_typeID, BSTSmartPointer< ObjectTypeInfo > &a_outTypeInfoPtr) |
bool | GetScriptObjectTypeNoLoad (const BSFixedString &a_className, BSTSmartPointer< ObjectTypeInfo > &a_typeInfoPtr) const |
bool | GetScriptObjectTypeNoLoad (VMTypeID a_typeID, BSTSmartPointer< ObjectTypeInfo > &a_outTypeInfoPtr) const |
bool | GetVariableValue (const BSTSmartPointer< Object > &a_objPtr, std::uint32_t a_index, Variable &a_out) const |
bool | GetVariableValue (VMHandle a_handle, const BSFixedString &a_className, std::int32_t a_variableIndex, Variable &a_out) const |
template<class F > | |
void | RegisterFunction (std::string_view a_fnName, std::string_view a_className, F a_callback, bool a_callableFromTasklets=false) |
void | SetCallableFromTasklets (const char *a_className, const char *a_stateName, const char *a_fnName, bool a_callable) |
void | SetCallableFromTasklets (const char *a_className, const char *a_fnName, bool a_callable) |
void | TraceForm (TESForm *a_form, const char *a_str, VMStackID a_stackID, Severity a_severity) |
void | VTraceStack (const char *a_fmt, VMStackID a_stackID, Severity a_severity=Severity::kInfo,...) |
Public Member Functions inherited from RE::BSIntrusiveRefCounted | |
std::uint32_t | IncRef () const |
std::uint32_t | DecRef () const |
TES_HEAP_REDEFINE_NEW () | |
Public Attributes | |
std::uint32_t | pad0C |
Static Public Attributes | |
static constexpr auto | RTTI = RTTI_BSScript__IVirtualMachine |
Additional Inherited Members | |
Protected Attributes inherited from RE::BSIntrusiveRefCounted | |
volatile std::uint32_t | _refCount { 0 } |
|
virtual |
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
bool RE::BSScript::IVirtualMachine::CreateArray | ( | const TypeInfo & | a_typeInfo, |
std::uint32_t | a_size, | ||
BSTSmartPointer< Array > & | a_arrayPtr | ||
) |
bool RE::BSScript::IVirtualMachine::CreateArray | ( | TypeInfo::RawType | a_typeID, |
const BSFixedString & | a_className, | ||
std::uint32_t | a_size, | ||
BSTSmartPointer< Array > & | a_arrayPtr | ||
) |
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
bool RE::BSScript::IVirtualMachine::CreateObject | ( | const BSFixedString & | a_className, |
BSTSmartPointer< Object > & | a_result | ||
) |
bool RE::BSScript::IVirtualMachine::CreateObject | ( | const BSFixedString & | a_className, |
void * | a_property, | ||
BSTSmartPointer< Object > & | a_objPtr | ||
) |
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
Awaitable RE::BSScript::IVirtualMachine::DispatchMethodCall | ( | BSTSmartPointer< Object > & | a_obj, |
const BSFixedString & | a_fnName, | ||
IFunctionArguments * | a_args | ||
) |
bool RE::BSScript::IVirtualMachine::DispatchMethodCall | ( | BSTSmartPointer< Object > & | a_obj, |
const BSFixedString & | a_fnName, | ||
IFunctionArguments * | a_args, | ||
BSTSmartPointer< IStackCallbackFunctor > & | a_result | ||
) |
Awaitable RE::BSScript::IVirtualMachine::DispatchMethodCall | ( | VMHandle | a_handle, |
const BSFixedString & | a_className, | ||
const BSFixedString & | a_fnName, | ||
IFunctionArguments * | a_args | ||
) |
bool RE::BSScript::IVirtualMachine::DispatchMethodCall | ( | VMHandle | a_handle, |
const BSFixedString & | a_className, | ||
const BSFixedString & | a_fnName, | ||
IFunctionArguments * | a_args, | ||
BSTSmartPointer< IStackCallbackFunctor > & | a_result | ||
) |
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
Awaitable RE::BSScript::IVirtualMachine::DispatchStaticCall | ( | const BSFixedString & | a_className, |
const BSFixedString & | a_fnName, | ||
IFunctionArguments * | a_args | ||
) |
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
ObjectBindPolicy* RE::BSScript::IVirtualMachine::GetObjectBindPolicy | ( | ) |
const ObjectBindPolicy* RE::BSScript::IVirtualMachine::GetObjectBindPolicy | ( | ) | const |
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
IObjectHandlePolicy* RE::BSScript::IVirtualMachine::GetObjectHandlePolicy | ( | ) |
const IObjectHandlePolicy* RE::BSScript::IVirtualMachine::GetObjectHandlePolicy | ( | ) | const |
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
bool RE::BSScript::IVirtualMachine::GetScriptObjectType | ( | const BSFixedString & | a_className, |
BSTSmartPointer< ObjectTypeInfo > & | a_outTypeInfoPtr | ||
) |
bool RE::BSScript::IVirtualMachine::GetScriptObjectType | ( | VMTypeID | a_typeID, |
BSTSmartPointer< ObjectTypeInfo > & | a_outTypeInfoPtr | ||
) |
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
bool RE::BSScript::IVirtualMachine::GetScriptObjectTypeNoLoad | ( | const BSFixedString & | a_className, |
BSTSmartPointer< ObjectTypeInfo > & | a_typeInfoPtr | ||
) | const |
bool RE::BSScript::IVirtualMachine::GetScriptObjectTypeNoLoad | ( | VMTypeID | a_typeID, |
BSTSmartPointer< ObjectTypeInfo > & | a_outTypeInfoPtr | ||
) | const |
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
bool RE::BSScript::IVirtualMachine::GetVariableValue | ( | const BSTSmartPointer< Object > & | a_objPtr, |
std::uint32_t | a_index, | ||
Variable & | a_out | ||
) | const |
bool RE::BSScript::IVirtualMachine::GetVariableValue | ( | VMHandle | a_handle, |
const BSFixedString & | a_className, | ||
std::int32_t | a_variableIndex, | ||
Variable & | a_out | ||
) | const |
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
void RE::BSScript::IVirtualMachine::RegisterFunction | ( | std::string_view | a_fnName, |
std::string_view | a_className, | ||
F | a_callback, | ||
bool | a_callableFromTasklets = false |
||
) |
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
void RE::BSScript::IVirtualMachine::SetCallableFromTasklets | ( | const char * | a_className, |
const char * | a_fnName, | ||
bool | a_callable | ||
) |
void RE::BSScript::IVirtualMachine::SetCallableFromTasklets | ( | const char * | a_className, |
const char * | a_stateName, | ||
const char * | a_fnName, | ||
bool | a_callable | ||
) |
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
void RE::BSScript::IVirtualMachine::TraceForm | ( | TESForm * | a_form, |
const char * | a_str, | ||
VMStackID | a_stackID, | ||
Severity | a_severity | ||
) |
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
|
pure virtual |
Implemented in RE::BSScript::Internal::VirtualMachine.
void RE::BSScript::IVirtualMachine::VTraceStack | ( | const char * | a_fmt, |
VMStackID | a_stackID, | ||
Severity | a_severity = Severity::kInfo , |
||
... | |||
) |
std::uint32_t RE::BSScript::IVirtualMachine::pad0C |
|
inlinestaticconstexpr |