public override bool init() { SolaEngine engine = SolaEngine.getInstance(); List <MissionConfig> missionCfgs = (List <MissionConfig>)engine.getCfg(MissionConfigData.NAME); _missionModels = new Dictionary <int, MissionModel>(); foreach (MissionConfig cfg in missionCfgs) { MissionModel model = new MissionModel(); model.setCfg(cfg); _missionModels.Add(model.getId(), model); } return(true); }