implement brush cost gauges
they're a little ugly at the moment, and can be a little useless for most simple brushes, but whatever we'll make them better later
This commit is contained in:
parent
43e6951f7d
commit
913d65b0a8
19 changed files with 378 additions and 65 deletions
|
@ -73,10 +73,18 @@ impl Vm {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn num_refs(&self) -> usize {
|
||||
self.refs.len()
|
||||
}
|
||||
|
||||
pub fn remaining_fuel(&self) -> usize {
|
||||
self.fuel
|
||||
}
|
||||
|
||||
pub fn remaining_memory(&self) -> usize {
|
||||
self.memory
|
||||
}
|
||||
|
||||
pub fn set_fuel(&mut self, fuel: usize) {
|
||||
self.fuel = fuel;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue