nimble_step_types/
lib.rs

1use nimble_participant::ParticipantId;
2use std::collections::HashMap;
3
4#[derive(Debug, Eq, PartialEq, Clone)]
5pub struct AuthoritativeStep<StepT> {
6    pub authoritative_participants: HashMap<ParticipantId, StepT>,
7}
8
9pub type LocalIndex = u8;
10
11#[derive(Debug, PartialEq, Clone)]
12pub struct PredictedStep<StepT> {
13    pub predicted_players: HashMap<LocalIndex, StepT>,
14}