1
0
Fork 0

add volume rounding prec stub to elements

This commit is contained in:
coaljoe 2020-10-27 20:20:47 +03:00
parent 899b8aae40
commit 1e91899307
1 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,9 @@ mut:
name string
elem_type ElemType
density int // kg/m3 // XXX per bit?
// XXX TODO: rounding precision: different precision
// for different elements (more crude means less precision for volume calculations)
prec int
flameable bool
liquid bool // XXX is technically a liquid in its normal state?
@ -100,6 +103,7 @@ fn new_elem() &Elem {
e := &Elem{
solid_state: .solid,
aggregate_state: .solid,
//prec: 4, // XXX what is default precision?
}
return e