object tags
This commit is contained in:
@@ -113,6 +113,11 @@ impl GameState {
|
||||
}
|
||||
}
|
||||
Action::Log(line) => logs.push(line),
|
||||
Action::SetTag { target, tag, present } => {
|
||||
if let Some(obj) = board.objects.get_mut(&target) {
|
||||
if present { obj.tags.insert(tag); } else { obj.tags.remove(&tag); }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user