Macros | |
#define | BNM_CustomClass(_class_, _targetType_, _baseType_, _owner_, ...) |
Define info of C++ class for il2cpp. | |
#define | BNM_CustomField(_field_, _type_, _name_) |
Define info about C++ field for il2cpp. | |
#define | BNM_CustomMethod(_method_, _isStatic_, _type_, _name_, ...) |
Define info about C++ method for il2cpp. | |
#define | BNM_CustomMethodMarkAsInvokeHook(_method_) |
Mark method to prefer InvokeHook. | |
#define | BNM_CustomMethodMarkAsBasicHook(_method_) |
Mark method to prefer BasicHook. | |
#define | BNM_CustomMethodSkipTypeMatch(_method_) |
Skip method parameters type matching. | |
#define | BNM_CallCustomMethodOrigin(_method_, ...) |
Call method origin, if it exists. | |
Information about all macros of classes management.
#define BNM_CallCustomMethodOrigin | ( | _method_, | |
... ) |
Call method origin, if it exists.
This macro can be used to call overridden (base) method or origin (old code) of hooked method.
_method_ | Target method |
... | Method call arguments (for non-static method first argument should be this ) |
#define BNM_CustomClass | ( | _class_, | |
_targetType_, | |||
_baseType_, | |||
_owner_, | |||
... ) |
Define info of C++ class for il2cpp.
Use this macro to describe info about your C++ class to add it as valid class to il2cpp.
BNM will automatically convert all information to il2cpp valid format.
This macro adds static field BNMCustomClass
to target class. Using it you can access:
_class_ | Class itself |
_targetType_ | BNM::CompileTimeClass or how class will be presented in il2cpp |
_baseType_ | BNM::CompileTimeClass of base class type |
_owner_ | BNM::CompileTimeClass of owner class type (to make this class nested) |
... | BNM::CompileTimeClass of interfaces that class should override |
#define BNM_CustomField | ( | _field_, | |
_type_, | |||
_name_ ) |
Define info about C++ field for il2cpp.
This macro adds static field BNMCustomField_(_field_ param)
to target class. Using it you can access:
_field_ | Field itself |
_type_ | BNM::CompileTimeClass of field type that will be presented in il2cpp |
_name_ | Field name that will be presented in il2cpp |
#define BNM_CustomMethod | ( | _method_, | |
_isStatic_, | |||
_type_, | |||
_name_, | |||
... ) |
Define info about C++ method for il2cpp.
This macro adds static field BNMCustomMethod_(_method_ param)
to target class. Using it you can access:
_method_ | Method itself |
_isStatic_ | Set it to true if method is static |
_type_ | Method returns type that will be presented in il2cpp |
_name_ | Method name that will be presented in il2cpp |
... | Method parameter types that will be presented in il2cpp |
#define BNM_CustomMethodMarkAsBasicHook | ( | _method_ | ) |
Mark method to prefer BasicHook.
If this macro is applied to method, BNM will prefer to use basic hook for it.
_method_ | Target method |
#define BNM_CustomMethodMarkAsInvokeHook | ( | _method_ | ) |
Mark method to prefer InvokeHook.
If this macro is applied to method, BNM will prefer to use invoke hook for it.
_method_ | Target method |
#define BNM_CustomMethodSkipTypeMatch | ( | _method_ | ) |
Skip method parameters type matching.
If this macro is applied to method, BNM will skip type matching for method overriding/hooking and instead it will use parameters count.
_method_ | Target method |