droppable items and win

This commit is contained in:
Rendo 2025-07-20 22:11:23 +05:00
commit 5bdbfa4d82
47 changed files with 820 additions and 85 deletions

View file

@ -0,0 +1,13 @@
using Godot;
[GlobalClass]
[Tool]
public partial class MoneyReward : RewardResource
{
[Export] public int Cost;
public override PackedScene GetPreview()
{
return Scene;
}
}

View file

@ -0,0 +1 @@
uid://dtfmy3los1si1

View file

@ -3,6 +3,7 @@ using Godot;
namespace Newlon;
[GlobalClass]
[Tool]
public partial class PlantResource : DisplayResource
{
}

View file

@ -0,0 +1,15 @@
using Godot;
using Newlon;
[GlobalClass]
[Tool]
public partial class PlantReward : RewardResource
{
[Export]
public PlantResource Plant { get; private set; }
public override PackedScene GetPreview()
{
return Plant.Scene;
}
}

View file

@ -0,0 +1 @@
uid://c8e40t5nbo83r

View file

@ -0,0 +1,12 @@
using Godot;
[GlobalClass]
[Tool]
public abstract partial class RewardResource : Resource
{
[Export]
public PackedScene Scene { get; private set; }
[Export] public string Name { get; private set; }
[Export] public string Description { get; private set; }
public abstract PackedScene GetPreview();
}

View file

@ -0,0 +1 @@
uid://co3cs8suo67gw