OpenBve.TrainManager.InitializeFrontBogieSection C# (CSharp) Метод

InitializeFrontBogieSection() статический приватный Метод

static private InitializeFrontBogieSection ( Train Train, int CarIndex, int SectionIndex ) : void
Train Train
CarIndex int
SectionIndex int
Результат void
		internal static void InitializeFrontBogieSection(Train Train, int CarIndex, int SectionIndex)
		{
			
			int c = CarIndex;
			int s = SectionIndex;

			if (Train.Cars[c].FrontBogie.CarSections.Length == 0)
			{
				//Hack: If no bogie objects are defined, just return
				return;
			}
			for (int j = 0; j < Train.Cars[c].FrontBogie.CarSections[s].Elements.Length; j++)
			{
				for (int k = 0; k < Train.Cars[c].FrontBogie.CarSections[s].Elements[j].States.Length; k++)
				{
					InitializeFrontBogieSectionElement(Train, c, s, j, k);
				}
			}
		}