Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
338
bool Sky::isDayTime() const {
339
return dayLevel() >= 0.5;
340
}
341
342
float Sky::dayLevel() const {
343
// Turn the dayCycle value into a value that blends evenly between 0.0 at
Callers
2
update
Method · 0.80
update
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected