more editor menus
This commit is contained in:
@@ -226,6 +226,11 @@ impl EditorState {
|
||||
));
|
||||
}
|
||||
|
||||
pub(crate) fn set_current(&mut self, archetype: Archetype) {
|
||||
self.current_archetype = archetype;
|
||||
self.current_glyph = self.current_archetype.default_glyph();
|
||||
}
|
||||
|
||||
/// Stamps the current drawing thing (archetype + glyph) into the cell under the
|
||||
/// cursor, applying the placement rules (see [`Board::place_archetype`]).
|
||||
pub(crate) fn place_current(&mut self) {
|
||||
|
||||
Reference in New Issue
Block a user