Solved Using functions from other classes

Status
Not open for further replies.

AZFernandez

Platinian
Greetings. Please tell me how can I connect a function from another class? I spent some time searching, but could only find how to connect a field from another class
I have the following:

Code:
public class CSUser // TypeDefIndex: 560

//Fields
private int <Rating>k__BackingField; // 0x50

Code:
public class DataManager : MonoBehaviour //

//Fields
public CSUser CurrentUser; // 0x18

// RVA: 0xDB8278 Offset: 0xDB8278 VA: 0xDB8278 public void Update() { }

I want to use the update function from the DataManager class for a field from the CSUser class, but unfortunately I lack the skills and knowledge
 
you can get the field like how you get the field normally
void Update(void* dataManager){
void* csuser = dataManager + offset;
void* field = csuser + offset;
}
To work with fields, I usually use examples from the template from lgl 3.2. Sorry, but your code is not very clear to me, it doesn't look like what I usually work with... maybe it's not compatible with lgl. Could you provide more detailed explanations?
 
Thread will be set to "solved" and closed.
When you're not happy with that just send me a message and i will re-open the thread for you.

Thanks.
 
Status
Not open for further replies.
Back
Top Bottom