Il2CppPropertyInfo.js 477 B

12345678910111213141516171819
  1. import {NativeStruct} from "./NativeStruct";
  2. import {il2cppApi} from "../il2cppApi";
  3. export class Il2CppPropertyInfo extends NativeStruct{
  4. /**
  5. * 获取方法信息
  6. * @returns {MethodInfo}
  7. */
  8. getMethod(){
  9. return il2cppApi.il2cpp_property_get_get_method(this);
  10. }
  11. setMethod(){
  12. return il2cppApi.il2cpp_property_get_set_method(this);
  13. }
  14. getName(){
  15. return il2cppApi.il2cpp_property_get_name(this).readCString();
  16. }
  17. }