import {NativeStruct} from "../struct/NativeStruct"; import {ProcessUtils} from "../../sausage/utils/ProcessUtils"; import {Il2cppString} from "../hacker/struct/Il2cppString"; import {UnityTransform} from "./UnityTransform"; import {Il2cppHackerApi} from "../hacker/Il2cppHackerApi"; export class UnityObject extends NativeStruct{ get_name(){ let methodAddr = Il2cppHackerApi.getMethodAddr("UnityEngine.CoreModule.dll", "UnityEngine", "Object", "get_name", 0); let nativeFunction = new NativeFunction(methodAddr,"pointer",['pointer']); let s = nativeFunction(this); return Il2cppString.parser(s); } }