Development Merge 2025.04.01 #1

Merged
Syntriax merged 32 commits from development into main 2025-04-01 19:20:18 +03:00
2 changed files with 13 additions and 4 deletions
Showing only changes of commit 90c1dd9348 - Show all commits

View File

@ -0,0 +1,9 @@
using System;
namespace Syntriax.Engine.Core;
public static class EnumExtensions
{
public static bool CheckFlag(this Enum left, Enum right)
=> ((int)(object)left & (int)(object)right) != 0;
}

View File

@ -2,8 +2,8 @@ namespace Syntriax.Engine.Systems.Time;
public enum TimerState
{
Idle,
Ticking,
Paused,
Stopped
Idle = 0b0001,
Ticking = 0b0010,
Paused = 0b0100,
Stopped = 0b1000
}