Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
7192f5216This file is pinned to the selected release. Download the original to open it in your design tool.
using Godot;
namespace OpenScadGraphEditor.Widgets
{
/// <summary>
/// Wrapper class to get our own data in and out of Godot land.
/// </summary>
public class DragData : Reference
{
private readonly object _data;
public DragData(object data)
{
_data = data;
}
public bool TryGetData<T>(out T data)
{
if (_data is T t)
{
data = t;
return true;
}
data = default;
return false;
}
}
}