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

Method craftingProgress

source/game/objects/StarContainerObject.cpp:357–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355}
356
357float ContainerObject::craftingProgress() const {
358 if (!isCrafting())
359 return 1;
360 return clamp(m_craftingProgress.get(), 0.0f, 1.0f);
361}
362
363void ContainerObject::burnContainerContents() {
364 if (isSlave()) {

Callers 1

updateMethod · 0.80

Calls 2

clampFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected