Almanach
This commit is contained in:
parent
008fa31dd4
commit
b932e82555
39 changed files with 575 additions and 78 deletions
20
scripts/resources/DisplayResource.cs
Normal file
20
scripts/resources/DisplayResource.cs
Normal 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;
|
||||
}
|
||||
1
scripts/resources/DisplayResource.cs.uid
Normal file
1
scripts/resources/DisplayResource.cs.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://j7wr5mj7j81b
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue