devela 0.28.0

A development substrate of coherence.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// devela::vita::play::game::action

#[doc = crate::_tags!(game)]
/// A declared move or operation recognized by the rules of play.
#[doc = crate::_doc_meta!{location("vita/play/game")}]
///
/// Represents what an actor attempts or selects within the formal game.
///
/// An action is attempted in play and may resolve into one or more outcomes.
///
/// ## Uses
/// Move, attack, defend, pass, bid, draw, play card, choose branch, end turn…
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
pub struct GameAction<K> {
    /// The action kind or payload.
    pub kind: K,
}