ini
This commit is contained in:
31
Scenes/Atom.cs
Executable file
31
Scenes/Atom.cs
Executable file
@@ -0,0 +1,31 @@
|
||||
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)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user