Fix texture stuff

This commit is contained in:
2025-03-09 12:24:30 -07:00
parent b93630756c
commit d8c5bc8f78
112 changed files with 671 additions and 355 deletions

View File

@@ -0,0 +1,12 @@
namespace Zennysoft.Ma.Adapter;
public interface IInventory
{
public List<InventoryItem> Items { get; }
public bool TryAdd(InventoryItem inventoryItem);
public void Remove(InventoryItem inventoryItem);
public void Sort();
}

View File

@@ -0,0 +1,24 @@
using Chickensoft.Introspection;
using Chickensoft.Serialization;
using Godot;
namespace Zennysoft.Ma.Adapter;
[Meta, Id("inventory_item")]
public abstract partial class InventoryItem : Node3D
{
[Save("inventory_item_id")]
public Guid ID => Guid.NewGuid();
[Save("inventory_item_name")]
public abstract string ItemName { get; }
[Save("inventory_item_description")]
public abstract string Description { get; }
[Save("inventory_item_spawn_rate")]
public abstract float SpawnRate { get; }
[Save("inventory_item_throw_damage")]
public abstract double ThrowDamage { get; }
[Save("inventory_item_throw_speed")]
public abstract float ThrowSpeed { get; }
public abstract Texture2D GetTexture();
}

View File

@@ -0,0 +1,17 @@
using Chickensoft.Introspection;
using Chickensoft.Serialization;
using Zennysoft.Game.Abstractions;
namespace Zennysoft.Ma.Adapter;
[Meta, Id("rescued_items")]
public partial class RescuedItemDatabase
{
[Save("rescued_item_list")]
public List<InventoryItem> Items { get; init; }
public RescuedItemDatabase()
{
Items = new List<InventoryItem>();
}
}

View File

@@ -1,4 +1,4 @@
namespace Zennysoft.Ma.Godot.Adapter;
namespace Zennysoft.Ma.Adapter;
public enum AccessoryTag
{

View File

@@ -1,4 +1,4 @@
namespace Zennysoft.Ma.Godot.Adapter;
namespace Zennysoft.Ma.Adapter;
public enum BoxItemTag
{

View File

@@ -1,4 +1,4 @@
namespace Zennysoft.Ma.Godot.Adapter;
namespace Zennysoft.Ma.Adapter;
public enum ElementType
{

View File

@@ -1,4 +1,4 @@
namespace Zennysoft.Ma.Godot.Adapter;
namespace Zennysoft.Ma.Adapter;
public enum ItemTag
{

View File

@@ -1,4 +1,4 @@
namespace Zennysoft.Ma.Godot.Adapter;
namespace Zennysoft.Ma.Adapter;
public enum ThrowableItemTag
{

View File

@@ -1,4 +1,4 @@
namespace Zennysoft.Ma.Godot.Adapter;
namespace Zennysoft.Ma.Adapter;
public enum UsableItemTag
{

View File

@@ -1,4 +1,4 @@
namespace Zennysoft.Ma.Godot.Adapter;
namespace Zennysoft.Ma.Adapter;
public enum WeaponTag
{