Files
VirtualChemistry.Demo/Scenes/VirtualChemDemo.cs
2024-06-21 20:57:19 +08:00

31 lines
767 B
C#
Executable File

using Godot;
public partial class VirtualChemDemo : Node2D
{
public Flask Flask { get; set; }
public RichTextLabel FullRepr { get; set; }
public Bottle SelectedBottle { get; set; }
private StringLoader ExpressionLoader { get; set; }
public void OneStep()
{
Flask.Content.OneStep();
Flask.Update();
}
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
ExpressionLoader = GetNode<StringLoader>("ExpressionLoader");
ExpressionLoader.Visible = false;
FullRepr = GetNode<RichTextLabel>("HRepr/FullRepr");
Flask = GetNode<Flask>("Flask");
GlobalScene.Demo = this;
}
// Called every frame. 'delta' is the elapsed time since the previous frame.
public override void _Process(double delta)
{
}
}