|
|
constexpr | Field () noexcept=default |
| | Create empty field.
|
| |
| template<typename OtherType> |
| | Field (const Field< OtherType > &other) |
| | Copy field.
|
| |
| | Field (IL2CPP::FieldInfo *info) |
| | Create field from il2cpp field.
|
| |
| | Field (const FieldBase &other) |
| | Convert base field to typed field.
|
| |
|
T * | GetPointer () const |
| | Typed wrapper of GetFieldPointer.
|
| |
| T | Get () const |
| | Get field value.
|
| |
|
| operator T () const |
| | Operator to get field value.
|
| |
|
T | operator() () const |
| | Operator to get field value.
|
| |
| void | Set (T value) const |
| | Set field value.
|
| |
|
Field< T > & | operator= (T value) |
| | Operator to set field value.
|
| |
| Field< T > & | operator[] (void *instance) |
| | Operator for setting instance.
|
| |
| Field< T > & | operator[] (IL2CPP::Il2CppObject *instance) |
| | Operator for setting instance.
|
| |
| Field< T > & | operator[] (UnityEngine::Object *instance) |
| | Operator for setting instance.
|
| |
| Field< T > & | operator= (const FieldBase &other) |
| | Convert base field to typed.
|
| |
|
constexpr | FieldBase ()=default |
| | Create empty field base.
|
| |
| | FieldBase (const FieldBase &other)=default |
| | Copy field.
|
| |
| | FieldBase (IL2CPP::FieldInfo *info) |
| | Create event from il2cpp field.
|
| |
| FieldBase & | SetInstance (IL2CPP::Il2CppObject *val) |
| | Set field instance if it's non-static.
|
| |
| IL2CPP::FieldInfo * | GetInfo () const |
| | Get FieldInfo.
|
| |
| BNM_PTR | GetOffset () const |
| | Get field offset.
|
| |
| void * | GetFieldPointer () const |
| | Get field pointer.
|
| |
| BNM::Class | GetType () const |
| | Get field type.
|
| |
| BNM::Class | GetParentClass () const |
| | Get class that contains this field.
|
| |
| FieldBase & | operator[] (void *instance) |
| | Operator for setting instance.
|
| |
| FieldBase & | operator[] (IL2CPP::Il2CppObject *instance) |
| | Operator for setting instance.
|
| |
| FieldBase & | operator[] (UnityEngine::Object *instance) |
| | Operator for setting instance.
|
| |
| bool | IsValid () const noexcept |
| | Check if field is valid.
|
| |
| std::string | str () const |
| | Get full field name.
|
| |
|
template<typename NewType> |
| Field< NewType > & | cast () const |
| | Cast field to be able to get and set it with specified type.
|
| |
template<typename T>
struct BNM::Field< T >
Typed class for working with il2cpp fields.
This class provides API for getting and setting fields.
- Template Parameters
-