コード例 #1
0
        /// <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);
        }
コード例 #2
0
        public static bool IsDeviceAvailable(HashDevice device)
        {
            var result = StoryUtil.EvaluateCondition(device.Condition);

            return(result);
        }
コード例 #3
0
 public static bool IsProgramAvailable(Program program)
 {
     return(StoryUtil.EvaluateCondition(program.Condition));
 }