|
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.
|
|
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.
|
|
Class base for working with il2cpp fields.
This class provides fields and some basic functions to allow to get and set fields.