1 # Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
11 Theme = Struct.new(:pieces, :board, :layout)
14 Theme.new.tap do |theme|
15 theme.pieces = loader.
16 get_matching(:pieces, game.keywords || []).
17 new(:game => game, :shadow => true)
19 get_matching(:board, game.keywords || []).
21 theme.layout = loader.
22 get_matching(:layout, game.keywords || []).