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::role

#[doc = crate::_tags!(game)]
/// A rule-bearing identity or seat in play.
#[doc = crate::_doc_meta!{location("vita/play/game")}]
///
/// Defines who or what occupies a structured position in the game system.
///
/// A role constrains or enables actions and responsibilities.
///
/// ## Uses
/// Player, side, team, faction, dealer, referee…
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub struct GameRole<K> {
    /// The role kind or payload.
    pub kind: K,
}