25 lines
663 B
C#
25 lines
663 B
C#
namespace GameServer.Dungeon;
|
|
|
|
/// <summary>
|
|
/// Runtime instance of a portal in a dungeon
|
|
/// </summary>
|
|
public class PortalInstance
|
|
{
|
|
public int Id { get; set; }
|
|
public float X { get; set; }
|
|
public float Y { get; set; }
|
|
public PortalType Type { get; set; }
|
|
public bool IsActive { get; set; } = true;
|
|
public bool TriggerOnCollision { get; set; } = false;
|
|
public float TriggerRadius { get; set; } = 18f;
|
|
public float? DestinationX { get; set; }
|
|
public float? DestinationY { get; set; }
|
|
}
|
|
|
|
public enum PortalType
|
|
{
|
|
Exit, // Return to hub
|
|
NextFloor, // Go deeper (future)
|
|
Secret // Hidden area (future)
|
|
}
|