sync
This commit is contained in:
parent
12610d6595
commit
5daca9a047
|
@ -1,10 +1,9 @@
|
|||
module bits
|
||||
|
||||
// A convertor from one element to another
|
||||
struct Processor {
|
||||
// One to [Many]
|
||||
struct ProcessorOutputTableRecord {
|
||||
mut:
|
||||
name string
|
||||
in_elem &Elem
|
||||
//out_elems map[string]&Elem
|
||||
out_elem &Elem
|
||||
|
||||
output_factor f32
|
||||
|
@ -16,6 +15,25 @@ mut:
|
|||
req_water int
|
||||
}
|
||||
|
||||
// A convertor from one element to another
|
||||
struct Processor {
|
||||
mut:
|
||||
name string
|
||||
in_elem &Elem
|
||||
//out_elem &Elem
|
||||
// [One] to Many
|
||||
out_elems []&ProcessorOutputTableRecord
|
||||
//out_elems_map map[string][]&ProcessorOutputTableRecord
|
||||
|
||||
//output_factor f32
|
||||
|
||||
//cond_temp int
|
||||
//req_electricity bool
|
||||
//req_power int
|
||||
//req_steam int
|
||||
//req_water int
|
||||
}
|
||||
|
||||
fn new_processor() &Processor {
|
||||
p := &Processor{
|
||||
in_elem: &Elem(0),
|
||||
|
|
Loading…
Reference in New Issue