Fix texture stuff
This commit is contained in:
18
Zennysoft.Game.Ma.Implementation/Game/GameData.cs
Normal file
18
Zennysoft.Game.Ma.Implementation/Game/GameData.cs
Normal 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; }
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Zennysoft.Ma.Godot.Adapter;
|
||||
namespace Zennysoft.Ma.Adapter;
|
||||
|
||||
public partial class GameLogic
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Zennysoft.Ma.Godot.Adapter;
|
||||
namespace Zennysoft.Ma.Adapter;
|
||||
|
||||
public partial class GameLogic
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Chickensoft.Introspection;
|
||||
using Chickensoft.LogicBlocks;
|
||||
|
||||
namespace Zennysoft.Ma.Godot.Adapter;
|
||||
namespace Zennysoft.Ma.Adapter;
|
||||
|
||||
public partial class GameLogic
|
||||
{
|
||||
|
||||
@@ -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>;
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Chickensoft.Introspection;
|
||||
|
||||
namespace Zennysoft.Ma.Godot.Adapter;
|
||||
namespace Zennysoft.Ma.Adapter;
|
||||
|
||||
public partial class GameLogic
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Chickensoft.Introspection;
|
||||
|
||||
namespace Zennysoft.Ma.Godot.Adapter;
|
||||
namespace Zennysoft.Ma.Adapter;
|
||||
|
||||
public partial class GameLogic
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Zennysoft.Ma.Godot.Adapter;
|
||||
namespace Zennysoft.Ma.Adapter;
|
||||
|
||||
using Chickensoft.Introspection;
|
||||
using Zennysoft.Game.Abstractions;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Chickensoft.Introspection;
|
||||
using Chickensoft.LogicBlocks;
|
||||
|
||||
namespace Zennysoft.Ma.Godot.Adapter;
|
||||
namespace Zennysoft.Ma.Adapter;
|
||||
|
||||
public partial class GameLogic
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Chickensoft.Introspection;
|
||||
|
||||
namespace Zennysoft.Ma.Godot.Adapter;
|
||||
namespace Zennysoft.Ma.Adapter;
|
||||
|
||||
public partial class GameLogic
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Chickensoft.Introspection;
|
||||
using Chickensoft.LogicBlocks;
|
||||
|
||||
namespace Zennysoft.Ma.Godot.Adapter;
|
||||
namespace Zennysoft.Ma.Adapter;
|
||||
|
||||
public partial class GameLogic
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Zennysoft.Ma.Godot.Adapter;
|
||||
namespace Zennysoft.Ma.Adapter;
|
||||
|
||||
using Chickensoft.Introspection;
|
||||
using Chickensoft.LogicBlocks;
|
||||
|
||||
Reference in New Issue
Block a user