editor stuff
This commit is contained in:
parent
365035a64d
commit
f71502f32a
2 changed files with 46 additions and 29 deletions
|
@ -180,6 +180,12 @@ impl RulePattern {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn set(&mut self, x: usize, y: usize, cell: Option<Cell>) {
|
||||
if x < self.width && y < self.height {
|
||||
self.contents[x + self.width * y] = cell
|
||||
}
|
||||
}
|
||||
|
||||
pub fn height(&self) -> usize {
|
||||
self.height
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue