Keen:Time Definition: Difference between revisions
Jump to navigation
Jump to search
CptTwinkie (talk | contribs) m (Protected "Official Content/Time Definition" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
CptTwinkie (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
{{ | To make it easier to define time in a human-readable and easily understandable format, we have introduced <code>TimeDefinition</code>. It is used in various definitions, including crafting, environment items, fuel, etc. | ||
'''Examples:''' | |||
<source lang="xml"> | |||
<CraftingTime Seconds="7.5"/> | |||
<CraftingTime Days="1" Hours="3" /> | |||
<CraftingTime Minutes="2" Seconds="2.2" Milliseconds="22" /> | |||
</source> | |||
Real number attributes for TimeDefinition: | |||
*Days | |||
*Hours | |||
*Minutes | |||
*Seconds | |||
*Milliseconds | |||
{{TextBox|NOTICE: Avoid using unreasonably big numbers for most of the attributes, especially Days.}} | |||
[[Category:Keen_Modding_Guides]] | [[Category:Keen_Modding_Guides]] |
Revision as of 16:06, 15 December 2017
To make it easier to define time in a human-readable and easily understandable format, we have introduced TimeDefinition
. It is used in various definitions, including crafting, environment items, fuel, etc.
Examples:
<CraftingTime Seconds="7.5"/>
<CraftingTime Days="1" Hours="3" />
<CraftingTime Minutes="2" Seconds="2.2" Milliseconds="22" />
Real number attributes for TimeDefinition:
- Days
- Hours
- Minutes
- Seconds
- Milliseconds
NOTICE: Avoid using unreasonably big numbers for most of the attributes, especially Days.