summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-06-01 21:45:43 -0500
committerJesse Luehrs <doy@tozt.net>2009-06-01 21:45:43 -0500
commit6778932372f5a51d8000ca3ef011e36ab083bd2d (patch)
tree9becfb29aa51de4da5769525754bdbdc5c4fc420
parent8177ff4ccdcc04b636b52aeeb1a0b3d901a60c54 (diff)
downloadbot-games-6778932372f5a51d8000ca3ef011e36ab083bd2d.tar.gz
bot-games-6778932372f5a51d8000ca3ef011e36ab083bd2d.zip
use the new mxah, with traits support
-rw-r--r--dist.ini2
-rw-r--r--lib/Bot/Games/Game.pm7
2 files changed, 2 insertions, 7 deletions
diff --git a/dist.ini b/dist.ini
index 43237f1..5453865 100644
--- a/dist.ini
+++ b/dist.ini
@@ -12,7 +12,7 @@ Bot::BasicBot = 0
DateTime = 0
Math::Expression::Evaluator = 0
Module::Pluggable = 0
-MooseX::AttributeHelpers = 0
+MooseX::AttributeHelpers = 0.18_01
Moose = 0.64
List::Util = 1.05
Games::Word = 0.04
diff --git a/lib/Bot/Games/Game.pm b/lib/Bot/Games/Game.pm
index 610ee58..d57461d 100644
--- a/lib/Bot/Games/Game.pm
+++ b/lib/Bot/Games/Game.pm
@@ -11,13 +11,8 @@ 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 => ['Bot::Games::Trait::Attribute::Command',
- 'Bot::Games::Trait::Attribute::Formatted'],
+ traits => ['Collection::Array'],
is => 'ro',
isa => 'ArrayRef[Str]',
auto_deref => 1,