Ejemplo n.º 1
0
        public virtual MyObjectBuilder_Trigger GetObjectBuilder()
        {
            var ob = TriggerFactory.CreateObjectBuilder(this);

            ob.IsTrue  = m_IsTrue;
            ob.Message = Message;
            return(ob);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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));
     }
 }
Ejemplo n.º 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;
     }
 }