server-master/srcs/WingsAPI.Game/TimeSpaces/TimeSpaceComponent.cs
2026-02-10 18:21:30 +01:00

23 lines
No EOL
660 B
C#

using System.Collections.Generic;
using WingsEmu.Game.Entities;
namespace WingsEmu.Game.TimeSpaces;
public class TimeSpaceComponent : ITimeSpaceComponent
{
public TimeSpaceParty TimeSpace { get; private set; }
public List<INpcEntity> Partners { get; set; } = new();
public bool TimeSpaceTeamIsFull => TimeSpace != null && TimeSpace.Members.Count >= TimeSpace.TimeSpaceInformation.MaxPlayers;
public bool IsInTimeSpaceParty => TimeSpace != null;
public void SetTimeSpaceParty(TimeSpaceParty timeSpaceParty)
{
TimeSpace = timeSpaceParty;
}
public void RemoveTimeSpaceParty()
{
TimeSpace = null;
}
}