Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
357
float ContainerObject::craftingProgress() const {
358
if (!isCrafting())
359
return 1;
360
return clamp(m_craftingProgress.get(), 0.0f, 1.0f);
361
}
362
363
void ContainerObject::burnContainerContents() {
364
if (isSlave()) {
Callers
1
update
Method · 0.80
Calls
2
clamp
Function · 0.85
get
Method · 0.45
Tested by
no test coverage detected