reactions
This commit is contained in:
parent
2f559639fb
commit
5e20eeb8bf
74 changed files with 891 additions and 19 deletions
13
src/resources/substance.gd
Normal file
13
src/resources/substance.gd
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
extends Resource
|
||||
|
||||
class_name Substance
|
||||
|
||||
@export var formula: StringName
|
||||
@export var scientific_name: StringName
|
||||
@export var melting_point: float
|
||||
@export var boiling_point: float
|
||||
@export var color: Color
|
||||
@export var prefer_scientific_name: bool
|
||||
|
||||
func get_formula() -> StringName:
|
||||
return scientific_name if prefer_scientific_name else formula
|
||||
Loading…
Add table
Add a link
Reference in a new issue