diff --git a/config/game/factions.yaml b/config/game/factions.yaml new file mode 100644 index 000000000..f3be1ebdf --- /dev/null +++ b/config/game/factions.yaml @@ -0,0 +1,8 @@ +--- +game_factions: + factions: + akhena: + id: !php:const/App\Modules\Demeter\Model\Color::IDENTIFIER_AKHENA + regime: !php:const/App\Modules\Demeter\Model\Color::REGIME_DEMOCRATIC + bonuses: + mandate_duration: 604800 diff --git a/src/Modules/Demeter/Configuration/FactionConfiguration.php b/src/Modules/Demeter/Configuration/FactionConfiguration.php new file mode 100644 index 000000000..82eb80857 --- /dev/null +++ b/src/Modules/Demeter/Configuration/FactionConfiguration.php @@ -0,0 +1,38 @@ +getRootNode() + ->isRequired() + ->children() + ->arrayNode('factions') + ->useAttributeAsKey('name') + ->arrayPrototype() + ->children() + ->integerNode('id')->end() + ->scalarNode('officielName')->end() + ->scalarNode('popularName')->end() + ->scalarNode('government')->end() + ->scalarNode('demonym')->end() + ->scalarNode('factionPoint')->end() + ->end() + ->end() + ->end() + ->end() + ; + + + return $treeBuilder; + } +}