pub pieces : DenseSlotMap<PieceId,PieceState>,
pub players : DenseSlotMap<PlayerId,PlayerState>,
pub gen : Generation,
- pub log : Vec<(Generation,LogEntryRef)>,
+ pub log : Vec<(Generation,Arc<LogEntry>)>,
}
#[derive(Debug,Serialize,Deserialize)]
pub nick : String,
}
-pub type LogEntryRef = Arc<LogEntry>;
-
#[derive(Debug,Serialize,Deserialize)]
pub struct LogEntry {
pub html : String,
defs : Vec<(VisiblePieceId,String)>,
nick : String,
load : String,
- log : Vec<(Generation, LogEntryRef)>,
+ log : Vec<(Generation,Arc<LogEntry>)>,
}
#[derive(Serialize,Debug)]