reactions
This commit is contained in:
parent
2f559639fb
commit
5e20eeb8bf
74 changed files with 891 additions and 19 deletions
7
src/resources/draggable.gd
Normal file
7
src/resources/draggable.gd
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
|
||||
extends Resource
|
||||
|
||||
class_name Draggable
|
||||
|
||||
@export var scene_to_spawn: PackedScene
|
||||
@export var icon: Texture2D
|
||||
1
src/resources/draggable.gd.uid
Normal file
1
src/resources/draggable.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://b3i73cilpra74
|
||||
7
src/resources/reaction.gd
Normal file
7
src/resources/reaction.gd
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
extends Resource
|
||||
|
||||
class_name Reaction
|
||||
|
||||
@export var input_substances: Array[Substance]
|
||||
@export var output_substances: Array[Substance]
|
||||
@export var reaction_temperature: float = -1
|
||||
1
src/resources/reaction.gd.uid
Normal file
1
src/resources/reaction.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://dwks86y6383p4
|
||||
6
src/resources/reagent.gd
Normal file
6
src/resources/reagent.gd
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
extends Resource
|
||||
|
||||
class_name Reagent
|
||||
|
||||
@export var substance: Substance
|
||||
@export var storage: PackedScene
|
||||
1
src/resources/reagent.gd.uid
Normal file
1
src/resources/reagent.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://bditqax8ibmxw
|
||||
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
|
||||
1
src/resources/substance.gd.uid
Normal file
1
src/resources/substance.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://b8q5buwgvppyh
|
||||
Loading…
Add table
Add a link
Reference in a new issue