droppable items and win
This commit is contained in:
parent
0f6445d677
commit
5bdbfa4d82
47 changed files with 820 additions and 85 deletions
13
scripts/resources/MoneyReward.cs
Normal file
13
scripts/resources/MoneyReward.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
using Godot;
|
||||
|
||||
[GlobalClass]
|
||||
[Tool]
|
||||
public partial class MoneyReward : RewardResource
|
||||
{
|
||||
[Export] public int Cost;
|
||||
public override PackedScene GetPreview()
|
||||
{
|
||||
return Scene;
|
||||
}
|
||||
|
||||
}
|
||||
1
scripts/resources/MoneyReward.cs.uid
Normal file
1
scripts/resources/MoneyReward.cs.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://dtfmy3los1si1
|
||||
|
|
@ -3,6 +3,7 @@ using Godot;
|
|||
namespace Newlon;
|
||||
|
||||
[GlobalClass]
|
||||
[Tool]
|
||||
public partial class PlantResource : DisplayResource
|
||||
{
|
||||
}
|
||||
|
|
|
|||
15
scripts/resources/PlantReward.cs
Normal file
15
scripts/resources/PlantReward.cs
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
1
scripts/resources/PlantReward.cs.uid
Normal file
1
scripts/resources/PlantReward.cs.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://c8e40t5nbo83r
|
||||
12
scripts/resources/RewardResource.cs
Normal file
12
scripts/resources/RewardResource.cs
Normal 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();
|
||||
}
|
||||
1
scripts/resources/RewardResource.cs.uid
Normal file
1
scripts/resources/RewardResource.cs.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://co3cs8suo67gw
|
||||
Loading…
Add table
Add a link
Reference in a new issue