MCPcopy 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
41float GameTimer::percent() const {
42 if (time)
43 return timer / time;
44 else
45 return 0.0f;
46}
47
48DataStream& operator>>(DataStream& ds, GameTimer& gt) {
49 ds >> gt.time;

Callers 3

renderMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected