![]() |
|
#16
|
|||
|
|||
|
Quote:
this.MissionLengh = 30; Ah, it looks like the only purpose of it is to allow data input like here: Code:
public List<Mis> MissionPool = new List<Mis>()
{
new Mis ("Mission1.mis",SubMissionsPath ,1000.0),
new Mis ("Mission2.mis",SubMissionsPath ,1000.0),
};
mi.Missionfilename = ...; mi.SubMissionsPath = ...; mi.MissionLengh = ...; Instead after parsing a file name I can: Code:
string[] MisParams;
MisParams = (mi.Missionfilename).Split('_');
Mis mi = new Mis (MisParams[1], MisParams[2],MisParams[3]);
Last edited by Ataros; 10-21-2011 at 06:30 PM. |
|
|