using System;
using System.Collections;
using System.Collections.Generic;
using Unity.Entities;
using Unity.Mathematics;
using UnityEngine;

public struct FixedInputEvent
{
    private byte _wasEverSet;
    private uint _lastSetTick;
    
    public void Set(uint tick)
    {
        _lastSetTick = tick;
        _wasEverSet = 1;
    }
    
    public bool IsSet(uint tick)
    {
        if (_wasEverSet == 1)
        {
            return tick == _lastSetTick;
        }

        return false;
    }
}