MCPcopy Create free account
hub / github.com/axhlzy/Il2CppHookScripts / tryOverload

Method tryOverload

Il2cppHook/_Ufunc.js:11922–11926  ·  view source on GitHub ↗

Gets the overloaded method with the given parameter types.

(...parameterTypes)

Source from the content-addressed store, hash-verified

11920 }
11921 /** Gets the overloaded method with the given parameter types. */
11922 tryOverload(...parameterTypes) {
11923 return this.class.methods.find(e => e.name == this.name &&
11924 e.parameterCount == parameterTypes.length &&
11925 e.parameters.every((e, i) => e.type.name == parameterTypes[i]));
11926 }
11927 /** Gets the parameter with the given name. */
11928 tryParameter(name) {
11929 return this.parameters.find(e => e.name == name);

Callers 1

overloadMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected