<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://librae.cc/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Development%3AUnit</id>
	<title>Development:Unit - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://librae.cc/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Development%3AUnit"/>
	<link rel="alternate" type="text/html" href="https://librae.cc/mediawiki/index.php?title=Development:Unit&amp;action=history"/>
	<updated>2026-06-21T00:40:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://librae.cc/mediawiki/index.php?title=Development:Unit&amp;diff=59&amp;oldid=prev</id>
		<title>Librae: Created page with &quot;If something needs a unit (like distance, speed, resource amount), take a smallest amount that can be considered useful in gameplay, and make it 1 unit. If unit is produced from other units, make it relative to 1 other units.  Resulting unit should still be divisible to microunits (1e-6). When using Units struct, this is how a unit works by default. Maximum possible amount of a unit stored in a variable then is ~9 trillion (i64 max being 9e18, 1e6 for microunits, 9e12 le...&quot;</title>
		<link rel="alternate" type="text/html" href="https://librae.cc/mediawiki/index.php?title=Development:Unit&amp;diff=59&amp;oldid=prev"/>
		<updated>2024-10-05T10:51:12Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;If something needs a unit (like distance, speed, resource amount), take a smallest amount that can be considered useful in gameplay, and make it 1 unit. If unit is produced from other units, make it relative to 1 other units.  Resulting unit should still be divisible to microunits (1e-6). When using Units struct, this is how a unit works by default. Maximum possible amount of a unit stored in a variable then is ~9 trillion (i64 max being 9e18, 1e6 for microunits, 9e12 le...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;If something needs a unit (like distance, speed, resource amount), take a smallest amount that can be considered useful in gameplay, and make it 1 unit. If unit is produced from other units, make it relative to 1 other units.&lt;br /&gt;
&lt;br /&gt;
Resulting unit should still be divisible to microunits (1e-6). When using Units struct, this is how a unit works by default. Maximum possible amount of a unit stored in a variable then is ~9 trillion (i64 max being 9e18, 1e6 for microunits, 9e12 left).&lt;br /&gt;
&lt;br /&gt;
The amounts should be stored in special template type &amp;lt;code&amp;gt;rustorion::units::Unit&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Various relations between units (e.g. EC produced by 1 mil humans) should be stored as Ratio (rational 128bit number) until calculated down to final amount of units, which should be stored.&lt;/div&gt;</summary>
		<author><name>Librae</name></author>
	</entry>
</feed>