MCPcopy Create free account
hub / github.com/AlexNisnevich/untrusted / wrapExposedMethod

Function wrapExposedMethod

scripts/dynamicObject.js:19–26  ·  view source on GitHub ↗
(f, object)

Source from the content-addressed store, hash-verified

17 /* wrapper */
18
19 function wrapExposedMethod(f, object) {
20 return function () {
21 var args = arguments;
22 return __game._callUnexposedMethod(function () {
23 return f.apply(object, args);
24 });
25 };
26 };
27
28 /* unexposed methods */
29

Callers 1

DynamicObjectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected