Ejemplo n.º 1
0
 private static Exploration DoCreate(ExplorationData data, List<object> paramList)
 {
     Exploration exploration = null;
     switch (data.Type)
     {
         case ExplorationType.Transporter:   
         {
             TransporterExpl expl = new TransporterExpl();
             expl.Data = data;
             TransporterExpl.Init(expl, (TransporterDirectionType)paramList[0]);
             exploration = expl;
             break;
         }
         default:      
         {
             exploration = new Exploration();
             exploration.Data = data;
             Exploration.Init(exploration);
             break;
         }
     }
     return exploration;
 }
Ejemplo n.º 2
0
 public static void Init(TransporterExpl expl, TransporterDirectionType directionType)
 {
     Exploration.Init(expl);
     expl.DirectionState = directionType;
 }