migration
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
migration [2019/09/26 16:52] – maxime | migration [2019/10/09 14:27] – maxime | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Migration Notes ====== | ====== Migration Notes ====== | ||
+ | |||
+ | ===== Foundation 1.4.5.1009 ===== | ||
+ | |||
+ | ==== Building Part Function ==== | ||
+ | |||
+ | For assets from type '' | ||
+ | |||
+ | Migration example for the //Example 02// mod: | ||
+ | <file lua building_parts.lua> | ||
+ | mod: | ||
+ | DataType = " | ||
+ | ... | ||
+ | |||
+ | -- OLD | ||
+ | -- BuildingFunction = { | ||
+ | -- DataType = " | ||
+ | -- WorkerCapacity = 4, | ||
+ | -- RelatedJob = { Job = " | ||
+ | -- ResourceProduced = { | ||
+ | -- { Resource = " | ||
+ | -- } | ||
+ | -- }, | ||
+ | |||
+ | -- NEW | ||
+ | BuildingFunction = " | ||
+ | |||
+ | ... | ||
+ | }) | ||
+ | |||
+ | -- ALSO NEW | ||
+ | mod: | ||
+ | DataType = " | ||
+ | Id = " | ||
+ | WorkerCapacity = 4, | ||
+ | RelatedJob = { Job = " | ||
+ | ResourceProduced = { | ||
+ | { Resource = " | ||
+ | } | ||
+ | }) | ||
+ | </ | ||
+ | |||
+ | ==== Resource Type List ==== | ||
+ | The enumeration '' | ||
+ | |||
+ | Another change is that resource, markets, granaries and warehouses can now have multiple resource types. This, combined with new customizable resource types, will be useful to customize where resources can be stocked and sold. This means that the property '' | ||
+ | |||
+ | For example, before this change, the wine was a resource of type '' | ||
+ | |||
+ | The complete list of core resource types can be found: [[api: | ||
+ | |||
+ | Migration example: | ||
+ | <file lua> | ||
+ | mod: | ||
+ | DataType = " | ||
+ | ... | ||
+ | |||
+ | -- OLD | ||
+ | -- ResourceType = " | ||
+ | |||
+ | -- NEW | ||
+ | ResourceTypeList = { | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | |||
+ | ... | ||
+ | }) | ||
+ | </ | ||
===== Foundation 1.3.1.0802 ===== | ===== Foundation 1.3.1.0802 ===== |
migration.txt · Last modified: 2023/09/05 11:21 by mathieu