5 of those, "targets", "doingAction", "selectEntity", "actions", "startAction" could be put inside a single object actions that can have the properties targets, doingAction etc.
This would make it easier to use the CardModel as you wouldn't have to pass all those properties all the time.
Currently
CardModel
has:props: ["card", "targets", "doingAction", "selectEntity", "actions", "startAction"],
5 of those,
"targets", "doingAction", "selectEntity", "actions", "startAction"
could be put inside a single objectactions
that can have the propertiestargets
,doingAction
etc.This would make it easier to use the
CardModel
as you wouldn't have to pass all those properties all the time.