Add map loading logic and spawn rate control
This commit is contained in:
@@ -17,6 +17,8 @@ public partial class Game : Node3D, IGame
|
||||
{
|
||||
public override void _Notification(int what) => this.Notify(what);
|
||||
|
||||
IGame IProvide<IGame>.Value() => this;
|
||||
|
||||
IGameRepo IProvide<IGameRepo>.Value() => GameRepo;
|
||||
|
||||
IPlayer IProvide<IPlayer>.Value() => _player;
|
||||
@@ -97,7 +99,6 @@ public partial class Game : Node3D, IGame
|
||||
},
|
||||
MapData = new MapData()
|
||||
{
|
||||
FloorScenes = []
|
||||
},
|
||||
RescuedItems = new RescuedItemDatabase()
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ using Godot;
|
||||
using System.Threading.Tasks;
|
||||
using Zennysoft.Ma.Adapter;
|
||||
|
||||
public interface IGame : IProvide<IGameRepo>, IProvide<IPlayer>, IProvide<IMap>, IProvide<ISaveChunk<GameData>>, INode3D
|
||||
public interface IGame : IProvide<IGame>, IProvide<IGameRepo>, IProvide<IPlayer>, IProvide<IMap>, IProvide<ISaveChunk<GameData>>, INode3D
|
||||
{
|
||||
void LoadExistingGame();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user