-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get address of BaseNode #19
Comments
A node doesn't know its address only the offset to the parent class. The real address is only important while rendering the node and then there is a related view object which knows the address.
I hope this helps. Should the ReadNodeInfo contain more informations? (Du kannst auch auf deutsch schreiben, wenns dann klarer wird.) |
Mein Fehler. Der IntPtr, der ReadNodeInfo übergeben wird, ist nicht die Adresse, sondern der Wert des Knotens an dieser Adresse. Ich habe jetzt noch einen neuen Parameter für die Knoten-Adresse hinzugefügt. |
I want to extend the TypeInfo plugin for FrostBite games with the members of each class. For that I need to know the "base address" of the current class.
So for example when I want to read the membername of address AB37C8B8 the method INodeInfoReader.ReadNodeInfo gets called with the BaseNode of this item and the IntPtr with value AB37CAF8. From these values there is no way (atleast I haven't found one) to get the needed base address AB37C870.
See:
From this address I could check if it's a TypeInfo address/class and with the offset inside the BaseNode I can get the exact member.
So basically, I'm missing a way to get the current address of a BaseNode. Since I can get the base address of a class by subtracting from the address of a BaseNode the offset of the BaseNode.
@KN4CK3R Is there any way you can add the address to a BaseNode?
I hope everyone understood what I want, I had hard times writing this up :'D
The text was updated successfully, but these errors were encountered: