Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenStarbound/OpenStarbound
/ percent
Method
percent
source/game/StarGameTimers.cpp:41–46 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
39
}
40
41
float GameTimer::percent() const {
42
if (time)
43
return timer / time;
44
else
45
return 0.0f;
46
}
47
48
DataStream& operator>>(DataStream& ds, GameTimer& gt) {
49
ds >> gt.time;
Callers
3
render
Method · 0.80
update
Method · 0.80
update
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected