MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / getRect

Method getRect

source/base/StarAssets.cpp:97–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97Maybe<RectU> FramesSpecification::getRect(String const& frame) const {
98 if (auto alias = aliases.ptr(frame)) {
99 return frames.get(*alias);
100 } else {
101 return frames.maybe(frame);
102 }
103}
104
105Json FramesSpecification::toJson() const {
106 return JsonObject{

Callers 1

calculateImageSizeMethod · 0.80

Calls 3

ptrMethod · 0.45
getMethod · 0.45
maybeMethod · 0.45

Tested by

no test coverage detected