MCPcopy Create free account
hub / github.com/carbonengine/trinity / IsWeekend

Function IsWeekend

trinity/Controllers/Tr2ControllerExpression.cpp:345–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343#endif
344
345float IsWeekend()
346{
347 if( int( GetServerDayOfWeek() ) % 6 == 0 )
348 {
349 return 1.f;
350 }
351 else
352 {
353 return 0.f;
354 }
355}
356
357float TimePhase( float period )
358{

Callers

nothing calls this directly

Calls 1

GetServerDayOfWeekFunction · 0.85

Tested by

no test coverage detected