mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-14 10:03:46 +00:00
Implemented vending machine
This commit is contained in:
parent
d78daf4e18
commit
e5ffb0cf94
32 changed files with 3074 additions and 1992 deletions
|
|
@ -30,6 +30,7 @@ public partial class LootItem : Resource
|
|||
[Export] public bool AutoPickup { get; private set; } = false;
|
||||
|
||||
[Export] public Texture2D InventorySprite;
|
||||
[Export] public Texture2D LargePreviewSprite;
|
||||
|
||||
//[Export] public SpriteFrames WorldSprite;
|
||||
//[Export] public PackedScene HudItemScene;
|
||||
|
|
|
|||
11
Scripts/Resources/VendingShopDefinition.cs
Normal file
11
Scripts/Resources/VendingShopDefinition.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
using Godot;
|
||||
using Godot.Collections;
|
||||
|
||||
namespace Cirno.Scripts.Resources;
|
||||
|
||||
[GlobalClass]
|
||||
[Tool]
|
||||
public partial class VendingShopDefinition : Resource
|
||||
{
|
||||
[Export] public Array<VendingShopEntry> Entries { get; set; } = [];
|
||||
}
|
||||
1
Scripts/Resources/VendingShopDefinition.cs.uid
Normal file
1
Scripts/Resources/VendingShopDefinition.cs.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://dg6j01fkmdhwd
|
||||
12
Scripts/Resources/VendingShopEntry.cs
Normal file
12
Scripts/Resources/VendingShopEntry.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
using Godot;
|
||||
|
||||
namespace Cirno.Scripts.Resources;
|
||||
|
||||
[GlobalClass]
|
||||
[Tool]
|
||||
public partial class VendingShopEntry : Resource
|
||||
{
|
||||
[Export] public LootItem Item { get; set; }
|
||||
[Export] public bool Unlimited { get; set; } = true;
|
||||
[Export] public int StartingQuantity { get; set; } = 1;
|
||||
}
|
||||
1
Scripts/Resources/VendingShopEntry.cs.uid
Normal file
1
Scripts/Resources/VendingShopEntry.cs.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://c0o5wfundmjk
|
||||
Loading…
Add table
Add a link
Reference in a new issue