/// <summary>
        /// Returns true if the given file is avaiable for use.
        /// </summary>
        public static bool IsFileAvaibale(HashFile file)
        {
            var result     = StoryUtil.EvaluateCondition(file.Condition);
            var permission = GetAccessPermission(file);

            result = result && permission > AccessPermission.Hidden;
            return(result);
        }
Exemple #2
0
        public static bool IsDeviceAvailable(HashDevice device)
        {
            var result = StoryUtil.EvaluateCondition(device.Condition);

            return(result);
        }
 public static bool IsProgramAvailable(Program program)
 {
     return(StoryUtil.EvaluateCondition(program.Condition));
 }