static private InitializeRearBogieSection ( Train Train, int CarIndex, int SectionIndex ) : void | ||
Train | Train | |
CarIndex | int | |
SectionIndex | int | |
Résultat | void |
internal static void InitializeRearBogieSection(Train Train, int CarIndex, int SectionIndex)
{
int c = CarIndex;
int s = SectionIndex;
if (Train.Cars[c].RearBogie.CarSections.Length == 0)
{
//Hack: If no bogie objects are defined, just return
return;
}
for (int j = 0; j < Train.Cars[c].RearBogie.CarSections[s].Elements.Length; j++)
{
for (int k = 0; k < Train.Cars[c].RearBogie.CarSections[s].Elements[j].States.Length; k++)
{
InitializeRearBogieSectionElement(Train, c, s, j, k);
}
}
}