Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_get
Method · 0.45
vehicles_get
Method · 0.45
tiles_get
Method · 0.45
Calls
1
NewInstance
Method · 0.45
Tested by
no test coverage detected