Implemented vending machine

This commit is contained in:
MaddoScientisto 2026-03-07 16:49:06 +01:00
commit e5ffb0cf94
32 changed files with 3074 additions and 1992 deletions

View file

@ -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;

View 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; } = [];
}

View file

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

View 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;
}

View file

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