Keen:Time Definition: Difference between revisions
Jump to navigation
Jump to search
CptTwinkie (talk | contribs) mNo edit summary |
CptTwinkie (talk | contribs) mNo edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{SEO|image_url=http://www.medievalengineerswiki.com/images/b/b7/KeenLogoBig.png|description=To make it easier to define time in a human-readable and easily understandable format, we have introduced TimeDefinition.}} | |||
{{Keen:OCH}} | |||
{{Version <!-- Do not change the version until the entire page is up-to-date --> | {{Version <!-- Do not change the version until the entire page is up-to-date --> | ||
|release=0 | |release=0|major=6|minor=1|suppress=true}} | ||
|major=6 | |||
|minor=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. | 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:''' | '''Examples:''' | ||
< | <syntaxhighlight lang="xml" line> | ||
<CraftingTime Seconds="7.5"/> | <CraftingTime Seconds="7.5"/> | ||
Line 14: | Line 17: | ||
<CraftingTime Minutes="2" Seconds="2.2" Milliseconds="22" /> | <CraftingTime Minutes="2" Seconds="2.2" Milliseconds="22" /> | ||
</ | </syntaxhighlight> | ||
Real number attributes for TimeDefinition: | Real number attributes for TimeDefinition: |
Latest revision as of 20:40, 18 July 2022
OFFICIAL CONTENT NOTICE |
---|
OFFICIAL CONTENT This article contains official content from or verified by the developers at Keen Software House. This information is intended to be accurate at the time it is posted, but may become obsolete over time. If you find errors in this article please describe the errors in the Discussion Page. |
Version: | 0.6.1 |
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.