コード例 #1
0
        //트리거 플래그 체크
        public bool CheckTriggerConditions(TriggerInfo triggerInfo)
        {
            if (null == triggerInfo)
            {
                return(true);
            }

            if (null == triggerInfo.triggerValues)
            {
                return(true);
            }

            foreach (var key in triggerInfo.triggerValues)
            {
                if (false == triggerFlags.ContainsKey(key) ||
                    false == triggerFlags[key])
                {
                    return(false);
                }
            }

            return(true);
        }
コード例 #2
0
 public StoryScript(TriggerType type, TriggerValue[] triggers = null)
 {
     RequiredTrigger = new TriggerInfo(type, triggers);
     AccumulatedTime = 0f;
     IsCompleted     = false;
 }