|
|
constexpr | Method () noexcept=default |
| | Create empty method.
|
| |
| template<typename OtherType> |
| | Method (const Method< OtherType > &other) |
| | Copy method.
|
| |
| | Method (const IL2CPP::MethodInfo *info) |
| | Create method from il2cpp method.
|
| |
| | Method (const IL2CPP::Il2CppReflectionMethod *reflectionMethod) |
| | Create method from il2cpp reflection method.
|
| |
| | Method (const MethodBase &other) |
| | Convert base method to typed method.
|
| |
| Method< Ret > & | operator[] (void *instance) |
| | Operator for setting instance.
|
| |
| Method< Ret > & | operator[] (IL2CPP::Il2CppObject *instance) |
| | Operator for setting instance.
|
| |
| Method< Ret > & | operator[] (UnityEngine::Object *instance) |
| | Operator for setting instance.
|
| |
| template<typename ... Parameters> |
| Ret | Call (Parameters ...parameters) const |
| | Call method.
|
| |
|
template<typename ... Parameters> |
| Ret | operator() (Parameters ...parameters) const |
| | Call method operator. Alias for BNM::Method::Call.
|
| |
| Method< Ret > & | operator= (const MethodBase &other) |
| | Convert base method to typed method.
|
| |
|
constexpr | MethodBase ()=default |
| | Create empty method base.
|
| |
| | MethodBase (const MethodBase &other)=default |
| | Copy method.
|
| |
| | MethodBase (const IL2CPP::MethodInfo *info) |
| | Create method from il2cpp method.
|
| |
| | MethodBase (const IL2CPP::Il2CppReflectionMethod *reflectionMethod) |
| | Create method from il2cpp reflection method.
|
| |
| MethodBase & | SetInstance (IL2CPP::Il2CppObject *val) |
| | Set method instance if it's non-static.
|
| |
| IL2CPP::MethodInfo * | GetInfo () const |
| | Get MethodInfo.
|
| |
| BNM_PTR | GetOffset () const |
| | Get method offset.
|
| |
| MethodBase | GetGeneric (const std::initializer_list< CompileTimeClass > &templateTypes) const |
| | Get typed version of current generic method.
|
| |
| MethodBase | GetOverride () const |
| | Get overridden method of current virtual method.
|
| |
| BNM::Class | GetReturnType () const |
| | Get return type of method.
|
| |
| BNM::Class | GetParentClass () const |
| | Get class that contains this method.
|
| |
| MethodBase & | operator[] (void *instance) |
| | Operator for setting instance.
|
| |
| MethodBase & | operator[] (IL2CPP::Il2CppObject *instance) |
| | Operator for setting instance.
|
| |
| MethodBase & | operator[] (UnityEngine::Object *instance) |
| | Operator for setting instance.
|
| |
| bool | IsValid () const noexcept |
| | Check if method is valid.
|
| |
| std::string | str () const |
| | Get full method name.
|
| |
|
template<typename NewType> |
| Method< NewType > & | cast () const |
| | Cast method to be able to call it.
|
| |
template<typename Ret>
struct BNM::Method< Ret >
Typed class for working with il2cpp methods.
This class provides API for calling methods.
- Template Parameters
-