chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
386ea8c
)
Provide GPlayers as a type
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 13 Feb 2021 19:04:50 +0000
(19:04 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 13 Feb 2021 19:14:39 +0000
(19:14 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/gamestate.rs
patch
|
blob
|
history
diff --git
a/src/gamestate.rs
b/src/gamestate.rs
index 74a09c74abdf507ce02bef7cdec8dfc7314efbcc..dfb29fdd4cec529c3455c4beabe03844eddf10a3 100644
(file)
--- a/
src/gamestate.rs
+++ b/
src/gamestate.rs
@@
-57,10
+57,12
@@
pub struct GameState {
pub gen: Generation,
pub log: VecDeque<(Generation, Arc<CommittedLogEntry>)>,
pub max_z: ZCoord,
- pub players:
DenseSlotMap<PlayerId, GPlayerState>
,
+ pub players:
GPlayers
,
pub occults: GameOccults,
}
+pub type GPlayers = DenseSlotMap<PlayerId, GPlayerState>;
+
#[derive(Debug,Serialize,Deserialize,Clone)]
pub struct GPlayerState {
pub nick: String,