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; }
public static void Init(TransporterExpl expl, TransporterDirectionType directionType) { Exploration.Init(expl); expl.DirectionState = directionType; }