Esempio n. 1
0
 public DialogTrigger(MessageCenterMessageType onMessage, string dialogueGuid, bool isInterrupt, DesignConditional conditional)
 {
     this.onMessage    = onMessage;
     this.dialogueGuid = dialogueGuid;
     this.isInterrupt  = isInterrupt;
     this.conditional  = conditional;
 }
Esempio n. 2
0
 public DialogTrigger(MessageCenterMessageType onMessage, string dialogueGuid, bool isInterrupt)
 {
     this.onMessage    = onMessage;
     this.dialogueGuid = dialogueGuid;
     this.isInterrupt  = isInterrupt;
     this.conditional  = ScriptableObject.CreateInstance <AlwaysTrueConditional>();
 }
 public ShowObjectiveTrigger(MessageCenterMessageType onMessage, string lanceTargetGuid, string objectiveGuid, bool isContractObjective, DesignConditional conditional)
 {
     this.onMessage           = onMessage;
     this.lanceTargetGuid     = lanceTargetGuid;
     this.objectiveGuid       = objectiveGuid;
     this.isContractObjective = isContractObjective;
     this.conditional         = conditional;
 }
Esempio n. 4
0
        public WithdrawChunkTrigger(MessageCenterMessageType onMessage, string chunkGuid)
        {
            this.onMessage = onMessage;
            this.chunkGuid = chunkGuid;
            ChunkMatchesChunkGuidConditional chunkConditional = ScriptableObject.CreateInstance <ChunkMatchesChunkGuidConditional>();

            chunkConditional.ChunkGuid = chunkGuid;
            this.conditional           = chunkConditional;
        }
        public ShowObjectiveTrigger(MessageCenterMessageType onMessage, string lanceTargetGuid, string objectiveGuid, bool isContractObjective)
        {
            this.onMessage           = onMessage;
            this.lanceTargetGuid     = lanceTargetGuid;
            this.objectiveGuid       = objectiveGuid;
            this.isContractObjective = isContractObjective;
            LanceDetectedConditional lanceDetectedConditional = ScriptableObject.CreateInstance <LanceDetectedConditional>();

            lanceDetectedConditional.TargetLanceGuid = lanceTargetGuid;
            this.conditional = lanceDetectedConditional;
        }
Esempio n. 6
0
        public EndCombatTrigger(MessageCenterMessageType onMessage, string objectiveGuid, EndCombatType type)
        {
            this.onMessage     = onMessage;
            this.objectiveGuid = objectiveGuid;
            this.type          = type;

            ObjectiveStatusConditional objectiveStatusConditional = ScriptableObject.CreateInstance <ObjectiveStatusConditional>();

            objectiveStatusConditional.objective.EncounterObjectGuid = objectiveGuid;
            objectiveStatusConditional.objectiveStatus = ObjectiveStatusEvaluationType.Success;

            this.conditional = objectiveStatusConditional;
        }
Esempio n. 7
0
        public GenericTrigger(string name, string description, MessageCenterMessageType onMessage, DesignConditional conditional, List <DesignResult> results)
        {
            this.name        = name;
            this.description = description;
            this.onMessage   = onMessage;
            this.conditional = conditional;
            this.results     = results.Select(r => (DesignResultBox) new EncounterResultBox(r)).ToList();

            if (this.conditional == null)
            {
                this.conditional = ScriptableObject.CreateInstance <AlwaysTrueConditional>();
            }
        }
Esempio n. 8
0
 public EndCombatTrigger(MessageCenterMessageType onMessage, string objectiveGuid, DesignConditional conditional)
 {
     this.onMessage     = onMessage;
     this.objectiveGuid = objectiveGuid;
     this.conditional   = conditional;
 }
 public EncounterConditionalBox(DesignConditional designConditional)
 {
     this.CargoVTwo = designConditional;
 }
Esempio n. 10
0
 public WithdrawChunkTrigger(MessageCenterMessageType onMessage, string chunkGuid, DesignConditional conditional)
 {
     this.onMessage   = onMessage;
     this.chunkGuid   = chunkGuid;
     this.conditional = conditional;
 }