...smaller effective types when they are not translatable.
This patch considerably reduces the memory footprint of WML and speeds it up.
It should not change any WML behavior, except for a few corner cases
detailled below:
- "off" is no longer a synonym for "no" (it wasn't used anyway),
- _"42" is no longer an integer,
- untranslatable "true" and "false" are stored as booleans, hence
displayed as "yes" and "no",
- "042" is now understood as octal notation (hence 34) rather than decimal,
- hexadecimal notation "0x42" is now recognized.
...missing column and wrong order of info in some multiplayer UI.
This mainly revert 2008-10-04T19:43:57Z!esr@thyrsus.com except the change in playcampaign.cpp
which seems to have changed too much to need it. Not sure yet how to
backport it to 1.6.
It also resurrects a (internal, I think) user_description key but any
name works
...and midgame-reloads, leaders and recall lists are now loaded and
synchronized in MP campaign start-of-scenario saves, but loading
start-of-scenario saves can still trigger bugs regarding side control
and client-server interaction.
Break the dependency of string_utils.cpp on formula ai since it pulls
in practically everything else as result. Since servers use
string_utils.cpp this is unacceptable.
This add a new key "image" allowing to kill the ugly hack which
inserted image url in the "name" key. This hack is still supported but
not team-colored.
Fix a bug about replacing faction by the leader image only when using
the hack. Data changed in the next commit.
Now called "Choose your faction" and displays "Starting position: 3"
to show you which slot you will have.
Also team-color the leader preview. Faction and leader menus not TC-ed
yet.
A bit safer for full game and maybe fix "allow_changes" key for side > 1.
This will also allow joiner to know which side and color they will
get, before choosing its faction and leader (UI feature in next
commit).
- get rid of redundant functionality
- make the unit_type_data interface more easily accessible
- reduce the public interface of unit_type_data
- rename unit_type_factory to unit_type_map_wrapper
- add a whole lot of "const"