Ejemplo n.º 1
0
        public void ActivateTrigger(string triggerUid, bool save)
        {
            StoryTriggerVO vo      = Service.Get <IDataController>().Get <StoryTriggerVO>(triggerUid);
            IStoryTrigger  trigger = StoryTriggerFactory.GenerateStoryTrigger(vo, this);

            this.ActivateTrigger(trigger, save);
        }
Ejemplo n.º 2
0
 private void ActivateNextChild()
 {
     this.childIndex++;
     if (this.childIndex < this.uids.Length)
     {
         StoryTriggerVO vo = this.sdc.Get <StoryTriggerVO>(this.uids[this.childIndex]);
         this.currentTrigger = StoryTriggerFactory.GenerateStoryTrigger(vo, this);
         this.currentTrigger.Activate();
         return;
     }
     this.parent.SatisfyTrigger(this);
 }
Ejemplo n.º 3
0
        public override void Activate()
        {
            StaticDataController staticDataController = Service.StaticDataController;

            this.children = new Dictionary <IStoryTrigger, bool>();
            string[] array = this.prepareArgs[0].Split(new char[]
            {
                ','
            });
            string[] array2 = array;
            for (int i = 0; i < array2.Length; i++)
            {
                string         uid          = array2[i];
                StoryTriggerVO vo           = staticDataController.Get <StoryTriggerVO>(uid);
                IStoryTrigger  storyTrigger = StoryTriggerFactory.GenerateStoryTrigger(vo, this);
                this.children.Add(storyTrigger, false);
                storyTrigger.Activate();
            }
        }