summaryrefslogtreecommitdiffstats
path: root/lib/Bot/Games/Game.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Bot/Games/Game.pm')
-rw-r--r--lib/Bot/Games/Game.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Bot/Games/Game.pm b/lib/Bot/Games/Game.pm
index b9a17b0..3bf8f7b 100644
--- a/lib/Bot/Games/Game.pm
+++ b/lib/Bot/Games/Game.pm
@@ -10,8 +10,12 @@ has help => (
needs_init => 0,
);
+# XXX: traits has to be specified manually here because the metaclass option
+# overrides anything set up by MetaRole - once MXAH can use traits, we should
+# just use that instead.
has players => (
metaclass => 'Collection::Array',
+ traits => [qw/Bot::Games::Meta::Role::Attribute/],
is => 'ro',
isa => 'ArrayRef[Str]',
auto_deref => 1,