예제 #1
0
        public virtual MyObjectBuilder_Trigger GetObjectBuilder()
        {
            var ob = TriggerFactory.CreateObjectBuilder(this);

            ob.IsTrue  = m_IsTrue;
            ob.Message = Message;
            return(ob);
        }
예제 #2
0
        public virtual MyObjectBuilder_Trigger GetObjectBuilder()
        {
            var ob = TriggerFactory.CreateObjectBuilder(this);

            ob.IsTrue      = m_IsTrue;
            ob.Message     = Message;
            ob.WwwLink     = WwwLink;
            ob.NextMission = NextMission;
            return(ob);
        }
예제 #3
0
 public void Init(MyObjectBuilder_MissionTriggers builder)
 {
     foreach (var triggerBuilder in builder.WinTriggers)
     {
         m_winTriggers.Add(TriggerFactory.CreateInstance(triggerBuilder));
     }
     foreach (var triggerBuilder in builder.LoseTriggers)
     {
         m_loseTriggers.Add(TriggerFactory.CreateInstance(triggerBuilder));
     }
 }
예제 #4
0
 public void Init(MyObjectBuilder_MissionTriggers builder)
 {
     foreach (var triggerBuilder in builder.WinTriggers)
     {
         m_winTriggers.Add(TriggerFactory.CreateInstance(triggerBuilder));
     }
     foreach (var triggerBuilder in builder.LoseTriggers)
     {
         m_loseTriggers.Add(TriggerFactory.CreateInstance(triggerBuilder));
     }
     Message = builder.message;
     Won     = builder.Won;
     Lost    = builder.Lost;
     Debug.Assert(!(Won && Lost), "Triggers: won&&lost should not happen");
     if (Won)
     {
         IsMsgWinning = true;
     }
 }