32 lines
898 B
C#
Executable File
32 lines
898 B
C#
Executable File
using Godot;
|
|
using VirtualChemistry.Chemistry.Atoms.Implements;
|
|
|
|
public partial class Atom : TextureRect
|
|
{
|
|
private Sprite2D ConnectPending { get; set; }
|
|
private Label PendingBond { get; set; }
|
|
public BaseAtom BaseAtom { get; set; } = BaseAtom.Null;
|
|
private Label ElementName { get; set; }
|
|
public AtomActions AtomActions { get; set; }
|
|
|
|
// Called when the node enters the scene tree for the first time.
|
|
public override void _Ready()
|
|
{
|
|
ElementName = GetNode<Label>("ElementName");
|
|
ElementName.Text = BaseAtom.Element;
|
|
ConnectPending = GetNode<Sprite2D>("ConnectPending");
|
|
PendingBond = GetNode<Label>("PendingBond");
|
|
AtomActions = GetNode<AtomActions>("AtomActions");
|
|
}
|
|
|
|
public override Variant _GetDragData(Vector2 atPosition)
|
|
{
|
|
return this;
|
|
}
|
|
|
|
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
public override void _Process(double delta)
|
|
{
|
|
}
|
|
}
|