2 using Tagua
.Repository
;
4 using Tagua
.IVariantLoader
;
6 public class Chess5x5
{
7 public static Repository
initrepo(IVariantLoader loader
) {
8 Repository repo
= new Repository();
9 Repository chess
= loader
.getRepository("chess");
10 if (chess
== null) return null;
14 Component chess_state_factory
= chess
.getComponent("state_factory");
15 Component state_factory
= chess_state_factory
.invoke(
16 "createFactory", new Point(5, 5));
18 repo
.addComponent("state_factory", state_factory
);