auts/processor.v

25 lines
295 B
Coq
Raw Normal View History

2020-04-30 00:34:02 +02:00
module main
struct Processor {
mut:
name string
in_elem &Elem
out_elem &Elem
output_factor f32
cond_temp int
req_electricity bool
req_power int
req_steam int
req_water int
}
fn new_processor() &Processor {
2020-09-05 13:06:27 +02:00
p := &Processor{
in_elem: &Elem(0),
out_elem: &Elem(0),
}
2020-04-30 00:34:02 +02:00
return p
}