From 1839a2df59c1271b8700790ad3868f1241510053 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 24 Sep 2009 21:59:43 +0000 Subject: [PATCH] A lot rewrites, engine base template added, naval architecture added: - All templates are now rewritten to use nodes instead of attributes. Still 'extends' should be used which is fine. - New template 'base_engine.xml' added which respresents the engine in general - New technology 'naval architects' added (basicly finished, maybe need changes) - Some fixes to XML templates --- .gitattributes | 3 + .../de/game/electronic/base_electronic.xml | 23 ++++++++ .../templates/de/game/engine/.htaccess | 1 + .../templates/de/game/engine/base_engine.xml | 25 +++++++++ .../de/game/merchant/base_merchant.xml | 38 ++++++++----- .../de/game/mineral/base_mineral.xml | 14 +++-- .../de/game/research/base_research.xml | 26 ++++++--- .../de/game/resource/base_resource.xml | 8 +-- .../templates/de/game/ship/base_ship.xml | 15 +++++ .../de/game/technology/architecture.xml | 2 +- .../de/game/technology/base_technology.xml | 20 +++---- .../de/game/technology/glass_making.xml | 8 +-- .../de/game/technology/naval_architecture.xml | 56 +++++++++++++++++++ .../templates/de/game/technology/plastics.xml | 11 ++-- .../templates/de/game/technology/statics.xml | 2 +- .../de/game/types/technology_types.xml | 6 +- 16 files changed, 203 insertions(+), 55 deletions(-) create mode 100644 application/ship-simu/templates/de/game/engine/.htaccess create mode 100644 application/ship-simu/templates/de/game/engine/base_engine.xml create mode 100644 application/ship-simu/templates/de/game/technology/naval_architecture.xml diff --git a/.gitattributes b/.gitattributes index ac05578..3beebd7 100644 --- a/.gitattributes +++ b/.gitattributes @@ -286,6 +286,8 @@ application/ship-simu/templates/de/game/contract/.htaccess -text application/ship-simu/templates/de/game/contract/base_contract.xml -text application/ship-simu/templates/de/game/electronic/.htaccess -text application/ship-simu/templates/de/game/electronic/base_electronic.xml -text +application/ship-simu/templates/de/game/engine/.htaccess -text +application/ship-simu/templates/de/game/engine/base_engine.xml -text application/ship-simu/templates/de/game/merchant/.htaccess -text application/ship-simu/templates/de/game/merchant/base_merchant.xml -text application/ship-simu/templates/de/game/mineral/.htaccess -text @@ -303,6 +305,7 @@ application/ship-simu/templates/de/game/technology/base_technology.xml -text application/ship-simu/templates/de/game/technology/drawings.xml -text application/ship-simu/templates/de/game/technology/glass_making.xml -text application/ship-simu/templates/de/game/technology/laboratory_equipment.xml -text +application/ship-simu/templates/de/game/technology/naval_architecture.xml -text application/ship-simu/templates/de/game/technology/plastics.xml -text application/ship-simu/templates/de/game/technology/statics.xml -text application/ship-simu/templates/de/game/types/.htaccess -text diff --git a/application/ship-simu/templates/de/game/electronic/base_electronic.xml b/application/ship-simu/templates/de/game/electronic/base_electronic.xml index c6a2326..1a45f15 100644 --- a/application/ship-simu/templates/de/game/electronic/base_electronic.xml +++ b/application/ship-simu/templates/de/game/electronic/base_electronic.xml @@ -32,6 +32,7 @@ along with this program. If not, see {?id?} + {?name?} {?type?} @@ -41,4 +42,26 @@ along with this program. If not, see {?length?} + + + + + + + {?technology_id?} + {?technology_name?} + {?technology_type?} + + + + + + + {?research_id?} + {?research_name?} + {?research_type?} + + + diff --git a/application/ship-simu/templates/de/game/engine/.htaccess b/application/ship-simu/templates/de/game/engine/.htaccess new file mode 100644 index 0000000..3a42882 --- /dev/null +++ b/application/ship-simu/templates/de/game/engine/.htaccess @@ -0,0 +1 @@ +Deny from all diff --git a/application/ship-simu/templates/de/game/engine/base_engine.xml b/application/ship-simu/templates/de/game/engine/base_engine.xml new file mode 100644 index 0000000..9ca0423 --- /dev/null +++ b/application/ship-simu/templates/de/game/engine/base_engine.xml @@ -0,0 +1,25 @@ + + + + diff --git a/application/ship-simu/templates/de/game/merchant/base_merchant.xml b/application/ship-simu/templates/de/game/merchant/base_merchant.xml index d075c00..dbbf124 100644 --- a/application/ship-simu/templates/de/game/merchant/base_merchant.xml +++ b/application/ship-simu/templates/de/game/merchant/base_merchant.xml @@ -25,26 +25,34 @@ along with this program. If not, see {?id?} + {?name?} {?type? - + - + - + - + - + + + + - - - {?resource_id?} - {?resource_amount?} - {?resource_added?} - {?resource_remoed?} - - + with every goods. //--> + + + + {?goods_id?} + {?goods_name?} + {?goods_type?} + {?goods_amount?} + {?goods_added?} + {?goods_remoed?} + + diff --git a/application/ship-simu/templates/de/game/mineral/base_mineral.xml b/application/ship-simu/templates/de/game/mineral/base_mineral.xml index e114e4b..e7fa976 100644 --- a/application/ship-simu/templates/de/game/mineral/base_mineral.xml +++ b/application/ship-simu/templates/de/game/mineral/base_mineral.xml @@ -30,18 +30,22 @@ along with this program. If not, see {?id?} {?type?} - + - + - + - + - + + {?technology_id?} + {?technology_name?} + {?technology_level?} + diff --git a/application/ship-simu/templates/de/game/research/base_research.xml b/application/ship-simu/templates/de/game/research/base_research.xml index c067967..8a99495 100644 --- a/application/ship-simu/templates/de/game/research/base_research.xml +++ b/application/ship-simu/templates/de/game/research/base_research.xml @@ -45,13 +45,13 @@ along with this program. If not, see - + - + - + - + @@ -77,13 +77,25 @@ along with this program. If not, see 'dependency types'. We are doing this this way to keep this XML simple but still flexible enougth to fit all proposal needs. //--> - + + {?technology_id? + {?technology_name? + {?technology_level?} + - + + {?research_id?} + {?research_id?} + {?research_level?} + - + + {?building_id?} + {?building_name?} + {?building_level?} + diff --git a/application/ship-simu/templates/de/game/resource/base_resource.xml b/application/ship-simu/templates/de/game/resource/base_resource.xml index 2b5ba5d..01db9b1 100644 --- a/application/ship-simu/templates/de/game/resource/base_resource.xml +++ b/application/ship-simu/templates/de/game/resource/base_resource.xml @@ -30,13 +30,13 @@ along with this program. If not, see {?name?} {?type?} - + - + - + - + diff --git a/application/ship-simu/templates/de/game/ship/base_ship.xml b/application/ship-simu/templates/de/game/ship/base_ship.xml index 1e900f5..b5431a0 100644 --- a/application/ship-simu/templates/de/game/ship/base_ship.xml +++ b/application/ship-simu/templates/de/game/ship/base_ship.xml @@ -108,4 +108,19 @@ along with this program. If not, see + + + + + + + + + + + + + + + diff --git a/application/ship-simu/templates/de/game/technology/architecture.xml b/application/ship-simu/templates/de/game/technology/architecture.xml index 2c075fd..ef99147 100644 --- a/application/ship-simu/templates/de/game/technology/architecture.xml +++ b/application/ship-simu/templates/de/game/technology/architecture.xml @@ -41,7 +41,7 @@ along with this program. If not, see 5 - + mathematics diff --git a/application/ship-simu/templates/de/game/technology/base_technology.xml b/application/ship-simu/templates/de/game/technology/base_technology.xml index 6e2ae92..299e1d4 100644 --- a/application/ship-simu/templates/de/game/technology/base_technology.xml +++ b/application/ship-simu/templates/de/game/technology/base_technology.xml @@ -30,13 +30,13 @@ along with this program. If not, see - + - + - + - + @@ -50,9 +50,9 @@ along with this program. If not, see - + - + @@ -65,9 +65,9 @@ along with this program. If not, see {?technology_level_level?} - + - + {?research_level_id?} {?research_level_name?} @@ -89,9 +89,9 @@ along with this program. If not, see {?technology_level?} - + - + {?research_id?} {?research_name?} diff --git a/application/ship-simu/templates/de/game/technology/glass_making.xml b/application/ship-simu/templates/de/game/technology/glass_making.xml index 85d63d5..0dca821 100644 --- a/application/ship-simu/templates/de/game/technology/glass_making.xml +++ b/application/ship-simu/templates/de/game/technology/glass_making.xml @@ -44,9 +44,9 @@ along with this program. If not, see {?technology_level_level?} - + - + {?research_level_name?} {?research_level_level?} @@ -66,9 +66,9 @@ along with this program. If not, see {?technology_level?} - + - + {?research_name?} {?research_level?} diff --git a/application/ship-simu/templates/de/game/technology/naval_architecture.xml b/application/ship-simu/templates/de/game/technology/naval_architecture.xml new file mode 100644 index 0000000..27f5b1b --- /dev/null +++ b/application/ship-simu/templates/de/game/technology/naval_architecture.xml @@ -0,0 +1,56 @@ + + + + + + naval_architecture + ship_construction + + + + + + + architecture + 3 + + + statics + 5 + + + drawings + 6 + + + + + + mathematics + 8 + + + + diff --git a/application/ship-simu/templates/de/game/technology/plastics.xml b/application/ship-simu/templates/de/game/technology/plastics.xml index 5556915..4a84343 100644 --- a/application/ship-simu/templates/de/game/technology/plastics.xml +++ b/application/ship-simu/templates/de/game/technology/plastics.xml @@ -44,9 +44,9 @@ along with this program. If not, see {?technology_level_level?} - + - + {?research_level_name?} {?research_level_level?} @@ -65,12 +65,11 @@ along with this program. If not, see chemicals - + - - {?research_name?} - {?research_level?} + chemistry + 3 diff --git a/application/ship-simu/templates/de/game/technology/statics.xml b/application/ship-simu/templates/de/game/technology/statics.xml index 2a0148e..924b861 100644 --- a/application/ship-simu/templates/de/game/technology/statics.xml +++ b/application/ship-simu/templates/de/game/technology/statics.xml @@ -30,7 +30,7 @@ along with this program. If not, see - + mathematics diff --git a/application/ship-simu/templates/de/game/types/technology_types.xml b/application/ship-simu/templates/de/game/types/technology_types.xml index 68bf5f8..ed27d29 100644 --- a/application/ship-simu/templates/de/game/types/technology_types.xml +++ b/application/ship-simu/templates/de/game/types/technology_types.xml @@ -27,12 +27,14 @@ along with this program. If not, see + + - - + + -- 2.39.5