MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / GetTimeUnits

Method GetTimeUnits

TombEngine/Scripting/Internal/TEN/Types/Time/Time.cpp:93–103  ·  view source on GitHub ↗

Get the time in hours, minutes, seconds, and centiseconds as a table. @function Time:GetTimeUnits @treturn table A table in the format {HH, MM, SS, CC}.

Source from the content-addressed store, hash-verified

91 // @function Time:GetTimeUnits
92 // @treturn table A table in the format {HH, MM, SS, CC}.
93 sol::table Time::GetTimeUnits(sol::this_state state) const
94 {
95 auto hmsc = GetHmsc();
96 auto table = sol::state_view(state).create_table();
97
98 table.add(hmsc.Hours);
99 table.add(hmsc.Minutes);
100 table.add(hmsc.Seconds);
101 table.add(hmsc.Centiseconds);
102 return table;
103 }
104
105 /// (int) Hours component.
106 // @mem h

Callers

nothing calls this directly

Calls 3

create_tableMethod · 0.80
state_viewClass · 0.50
addMethod · 0.45

Tested by

no test coverage detected