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,18 @@
using Chickensoft.Introspection;
using Chickensoft.Serialization;
using Zennysoft.Game.Ma;
namespace Zennysoft.Ma.Adapter;
[Meta, Id("game_data")]
public partial record GameData
{
[Save("player_data")]
public required PlayerData PlayerData { get; init; }
[Save("map_data")]
public required MapData MapData { get; init; }
[Save("rescued_items")]
public required RescuedItemDatabase RescuedItems { get; init; }
}

View File

@@ -1,4 +1,4 @@
namespace Zennysoft.Ma.Godot.Adapter;
namespace Zennysoft.Ma.Adapter;
public partial class GameLogic
{

View File

@@ -1,4 +1,4 @@
namespace Zennysoft.Ma.Godot.Adapter;
namespace Zennysoft.Ma.Adapter;
public partial class GameLogic
{

View File

@@ -1,7 +1,7 @@
using Chickensoft.Introspection;
using Chickensoft.LogicBlocks;
namespace Zennysoft.Ma.Godot.Adapter;
namespace Zennysoft.Ma.Adapter;
public partial class GameLogic
{

View File

@@ -1,7 +1,7 @@
using Chickensoft.Introspection;
using Chickensoft.LogicBlocks;
namespace Zennysoft.Ma.Godot.Adapter;
namespace Zennysoft.Ma.Adapter;
public interface IGameLogic : ILogicBlock<GameLogic.State>;

View File

@@ -1,8 +1,7 @@
using Chickensoft.Collections;
using Godot;
using Zennysoft.Game.Abstractions;
namespace Zennysoft.Ma.Godot.Adapter;
namespace Zennysoft.Ma.Adapter;
public interface IGameRepo : IDisposable
{
@@ -18,7 +17,7 @@ public interface IGameRepo : IDisposable
event Action? DoubleExpTimeEnd;
event Action<IInventoryItem>? RemoveItemFromInventoryEvent;
event Action<InventoryItem>? RemoveItemFromInventoryEvent;
void Pause();
@@ -34,7 +33,7 @@ public interface IGameRepo : IDisposable
public void AnnounceMessageInInventory(string message);
public void RemoveItemFromInventory(IInventoryItem item);
public void RemoveItemFromInventory(InventoryItem item);
public void CloseInventory();
@@ -51,7 +50,7 @@ public class GameRepo : IGameRepo
public event Action<string>? AnnounceMessageInInventoryEvent;
public event Action<int>? DoubleExpTimeStart;
public event Action? DoubleExpTimeEnd;
public event Action<IInventoryItem>? RemoveItemFromInventoryEvent;
public event Action<InventoryItem>? RemoveItemFromInventoryEvent;
public IAutoProp<bool> IsPaused => _isPaused;
private readonly AutoProp<bool> _isPaused;
@@ -101,7 +100,7 @@ public class GameRepo : IGameRepo
AnnounceMessageInInventoryEvent?.Invoke(message);
}
public void RemoveItemFromInventory(IInventoryItem item)
public void RemoveItemFromInventory(InventoryItem item)
{
RemoveItemFromInventoryEvent?.Invoke(item);
}

View File

@@ -1,6 +1,6 @@
using Chickensoft.Introspection;
namespace Zennysoft.Ma.Godot.Adapter;
namespace Zennysoft.Ma.Adapter;
public partial class GameLogic
{

View File

@@ -1,6 +1,6 @@
using Chickensoft.Introspection;
namespace Zennysoft.Ma.Godot.Adapter;
namespace Zennysoft.Ma.Adapter;
public partial class GameLogic
{

View File

@@ -1,4 +1,4 @@
namespace Zennysoft.Ma.Godot.Adapter;
namespace Zennysoft.Ma.Adapter;
using Chickensoft.Introspection;
using Zennysoft.Game.Abstractions;

View File

@@ -1,7 +1,7 @@
using Chickensoft.Introspection;
using Chickensoft.LogicBlocks;
namespace Zennysoft.Ma.Godot.Adapter;
namespace Zennysoft.Ma.Adapter;
public partial class GameLogic
{

View File

@@ -1,6 +1,6 @@
using Chickensoft.Introspection;
namespace Zennysoft.Ma.Godot.Adapter;
namespace Zennysoft.Ma.Adapter;
public partial class GameLogic
{

View File

@@ -1,7 +1,7 @@
using Chickensoft.Introspection;
using Chickensoft.LogicBlocks;
namespace Zennysoft.Ma.Godot.Adapter;
namespace Zennysoft.Ma.Adapter;
public partial class GameLogic
{

View File

@@ -1,4 +1,4 @@
namespace Zennysoft.Ma.Godot.Adapter;
namespace Zennysoft.Ma.Adapter;
using Chickensoft.Introspection;
using Chickensoft.LogicBlocks;