mirror of
https://codeberg.org/Ikatono/TierMaker.git
synced 2025-10-28 20:45:35 -05:00
24 lines
589 B
C#
24 lines
589 B
C#
using Godot;
|
|
using System;
|
|
|
|
public partial class RowCardContainer : HFlowContainer
|
|
{
|
|
// Called when the node enters the scene tree for the first time.
|
|
public override void _Ready()
|
|
{
|
|
}
|
|
|
|
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
public override void _Process(double delta)
|
|
{
|
|
}
|
|
public override bool _CanDropData(Vector2 atPosition, Variant data)
|
|
{
|
|
return data.As<card>() is not null;
|
|
}
|
|
public override void _DropData(Vector2 atPosition, Variant data)
|
|
{
|
|
this.GetParentOfType<row>().DropOn(atPosition, data);
|
|
}
|
|
}
|