Beispiel #1
0
 public WingAnimation(IniFileSection section) : base(section.GetNonEmpty("FILE"), section.GetFloat("TIME", 1f))
 {
     Id         = section.GetInt("WING", 0);
     Next       = section.GetIntNullable("NEXT");
     StartAngle = section.GetFloat("MIN", 0f);
     AngleRange = section.GetFloat("MAX", 60f) - StartAngle;
 }
Beispiel #2
0
 public static TrackProperties Load(IniFileSection section)
 {
     return(new TrackProperties {
         Preset = section.GetIntNullable("Preset"),
         SessionStart = section.GetInt("SESSION_START", 95),
         Randomness = section.GetInt("RANDOMNESS", 2),
         LapGain = section.GetInt("LAP_GAIN", 10),
         SessionTransfer = section.GetInt("SESSION_TRANSFER", 90)
     });
 }