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

Method isDayTime

source/game/StarSky.cpp:338–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338bool Sky::isDayTime() const {
339 return dayLevel() >= 0.5;
340}
341
342float Sky::dayLevel() const {
343 // Turn the dayCycle value into a value that blends evenly between 0.0 at

Callers 2

updateMethod · 0.80
updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected