Move files and folders to new repo format to enable multi-project format
This commit is contained in:
35
Zennysoft.Game.Ma/src/map/dungeon/code/Overworld.cs
Normal file
35
Zennysoft.Game.Ma/src/map/dungeon/code/Overworld.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using Chickensoft.AutoInject;
|
||||
using Chickensoft.Introspection;
|
||||
using Godot;
|
||||
using System.Collections.Immutable;
|
||||
|
||||
namespace Zennysoft.Game.Ma;
|
||||
[Meta(typeof(IAutoNode))]
|
||||
public partial class Overworld : Node3D, IDungeonFloor
|
||||
{
|
||||
public override void _Notification(int what) => this.Notify(what);
|
||||
|
||||
[Node] public Marker3D PlayerSpawnPoint { get; set; } = default!;
|
||||
|
||||
[Node] public Marker3D ExitSpawnPoint { get; set; } = default!;
|
||||
|
||||
public ImmutableList<IDungeonRoom> Rooms => [];
|
||||
|
||||
public bool FloorIsLoaded { get; set; }
|
||||
|
||||
public void InitializeDungeon()
|
||||
{
|
||||
Show();
|
||||
FloorIsLoaded = true;
|
||||
}
|
||||
|
||||
public Transform3D GetPlayerSpawnPoint()
|
||||
{
|
||||
return PlayerSpawnPoint.GlobalTransform;
|
||||
}
|
||||
|
||||
public Vector3 GetTeleportSpawnPoint()
|
||||
{
|
||||
return ExitSpawnPoint.GlobalPosition;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user