Files
crystall-punk-14/Content.Shared/_CP14/Random/Rules/IsDaylight.cs
2024-08-10 01:12:13 +03:00

21 lines
606 B
C#

using Content.Shared.Random.Rules;
namespace Content.Shared._CP14.Random.Rules;
/// <summary>
/// Returns true if the attached entity is in space.
/// </summary>
public sealed partial class IsDaylight : RulesRule
{
public override bool Check(EntityManager entManager, EntityUid uid)
{
var transform = entManager.System<SharedTransformSystem>();
// Not shared yet, use raw component data from map
// var dayCycle = entManager.System<CP14DayCycleSystem>();
//черт, нужны комиты из ветки фермерства
return !Inverted;
}
}