MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / New

Method New

src/openrct2/scripting/bindings/object/ScObject.hpp:62–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 }
61
62 static JSValue New(JSContext* ctx, ObjectType type, int32_t index)
63 {
64 return gScObject.NewInstance(ctx, type, index);
65 }
66
67 private:
68 static void Finalize(JSRuntime* rt, JSValue thisVal)

Callers 3

installedObject_getMethod · 0.45
vehicles_getMethod · 0.45
tiles_getMethod · 0.45

Calls 1

NewInstanceMethod · 0.45

Tested by

no test coverage detected