This commit is contained in:
Rendo 2025-07-03 19:34:09 +05:00
commit b932e82555
39 changed files with 575 additions and 78 deletions

View file

@ -0,0 +1,20 @@
using Godot;
public partial class DisplayResource : Resource
{
[Export] public string display_name;
[Export(PropertyHint.MultilineText)] public string display_description;
[Export]
public float Cost;
[Export]
public PackedScene Scene;
[Export]
public float ReloadTime;
[Export(PropertyHint.Range, "0,1,0.01")]
public float ReloadProgress;
[Export]
public Texture2D Preview;
[Export] public CustomSeedpacketFrame customFrame;
[Export] public int Layer = 1;
public string internal_id;
}

View file

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

View file

@ -3,22 +3,6 @@ using Godot;
namespace Newlon;
[GlobalClass]
public partial class PlantResource : Resource
public partial class PlantResource : DisplayResource
{
[Export] public string display_name;
[Export(PropertyHint.MultilineText)] public string display_description;
[Export]
public int Cost;
[Export]
public PackedScene Scene;
[Export]
public float ReloadTime;
[Export(PropertyHint.Range, "0,1,0.01")]
public float ReloadProgress;
[Export]
public Texture2D Preview;
[Export] public int Layer = 1;
[Export] public CustomSeedpacketFrame customFrame;
public string internal_id;
}

View file

@ -1,10 +1,6 @@
using Godot;
[GlobalClass]
public partial class ZombieResource : Resource
public partial class ZombieResource : DisplayResource
{
[Export] public float cost;
[Export] public PackedScene scene;
public string internal_id;
}