OpenBve.TrainManager.InitializeFrontBogieSectionElement C# (CSharp) Method

InitializeFrontBogieSectionElement() static private method

static private InitializeFrontBogieSectionElement ( Train Train, int CarIndex, int SectionIndex, int ElementIndex, int StateIndex ) : void
Train Train
CarIndex int
SectionIndex int
ElementIndex int
StateIndex int
return void
		internal static void InitializeFrontBogieSectionElement(Train Train, int CarIndex, int SectionIndex, int ElementIndex, int StateIndex)
		{
			if (Train.Cars[CarIndex].FrontBogie.CarSections.Length == 0)
			{
				//Hack: If no bogie objects are defined, just return
				return;
			}
			ObjectManager.InitializeAnimatedObject(ref Train.Cars[CarIndex].FrontBogie.CarSections[SectionIndex].Elements[ElementIndex], StateIndex, false, Train.Cars[CarIndex].FrontBogie.CurrentlyVisible);
		}