![]() |
#15
|
|||
|
|||
![]()
Will take a look at it.
Short answers: Code:
public static string SubMissionsPath = @"missions\Multi\Dogfight\r_steppe\subs\"; // is @ necessary here? did not use it in other missions. Code:
// what does this block do? public Mis(string Filename, string misType, int Lengh) // should I include all the above variables here? { this.Missionfilename = Filename; // You use mi.Missionfilename instead of mi.Filename in your example when load missions. Why? this.MissionLengh = Lengh; this.MissionType = misType; this.TrgWasTriggered = wasTriggered; } So i can use Code:
public List<Mis> MissionPool = new List<Mis>() { new Mis ("Mission1.mis",SubMissionsPath ,1000.0), new Mis ("Mission2.mis",SubMissionsPath ,1000.0), }; // You use mi.Missionfilename instead of mi.Filename in your example when load missions. Why? I use the public method Missionfilename to get access to the variable in the object. Filename is only used in the constructor to give the value to the variable Missionfilename. More to come, must take a deeper look at it, but no time at the moment. But it seems you think a bit too complicated ![]() |
Thread Tools | |
Display Modes | |
|
|