1
0
Fork 0
This commit is contained in:
coaljoe 2020-09-14 01:14:26 +03:00
parent 12610d6595
commit 5daca9a047
1 changed files with 22 additions and 4 deletions

View File

@ -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),