C# Class OpenBve.CsvRwRouteParser

ファイルを表示 Open project: leezer3/OpenBVE Class Usage Examples

Private Methods

Method Description
ApplyRouteData ( string FileName, System Encoding, RouteData &Data, bool PreviewOnly ) : void
ComputeCantTangents ( ) : void
CreateMissingBlocks ( RouteData &Data, int &BlocksUsed, int ToIndex, bool PreviewOnly ) : void
GetBrightness ( RouteData &Data, double TrackPosition ) : double

Sets the brightness value for the specified track position

GetMirroredObject ( ObjectManager Prototype ) : ObjectManager.UnifiedObject

Creates a mirrored copy of the prototype object (Animated objects)

GetMirroredStaticObject ( ObjectManager Prototype ) : ObjectManager.StaticObject

Creates a mirrored copy of the prototype object

GetTransformedStaticObject ( ObjectManager Prototype, double NearDistance, double FarDistance ) : ObjectManager.StaticObject

Creates a transformed copy of the provided prototype object (e.g. Platform top, roof etc.)

InvertLightness ( byte bytes ) : void

Inverts the lightness values of a texture used for a glow

LoadAllTextures ( string BaseFile, bool IsGlowTexture ) : OpenBve.Textures.Texture[]

Loads all BVE4 signal or glow textures (Non animated file)

LoadAllTextures ( string BaseFile, World TransparentColor, byte TransparentColorUsed, TextureManager LoadMode ) : int[]
ParseRoute ( string FileName, bool IsRW, System Encoding, string TrainPath, string ObjectPath, string SoundPath, bool PreviewOnly ) : void
ParseRouteForData ( string FileName, bool IsRW, System Encoding, Expression Expressions, string TrainPath, string ObjectPath, string SoundPath, double UnitOfLength, RouteData &Data, bool PreviewOnly ) : void
ParseRouteForData ( string FileName, bool IsRW, System Encoding, string TrainPath, string ObjectPath, string SoundPath, RouteData &Data, bool PreviewOnly ) : void
PreprocessChrRndSub ( string FileName, bool IsRW, Expression &Expressions ) : void

This function processes the list of expressions for $Char, $Rnd, $If and $Sub directives, and evaluates them into the final expressions dataset

PreprocessOptions ( bool IsRW, Expression Expressions, RouteData &Data, double &UnitOfLength ) : void
PreprocessOptions ( string FileName, bool IsRW, System Encoding, Expression Expressions, RouteData &Data, double &UnitOfLength ) : void
PreprocessSortByTrackPosition ( bool IsRW, double UnitFactors, Expression &Expressions ) : void
PreprocessSortByTrackPosition ( string FileName, bool IsRW, double UnitFactors, Expression &Expressions ) : void
PreprocessSplitIntoExpressions ( string FileName, bool IsRW, string Lines, Expression &Expressions, bool AllowRwRouteDescription, double trackPositionOffset ) : void
PreprocessSplitIntoExpressions ( string FileName, bool IsRW, string Lines, System Encoding, Expression &Expressions, bool AllowRwRouteDescription, double trackPositionOffset ) : void
SeparateCommandsAndArguments ( Expression Expression, string &Command, string &ArgumentSequence, System Culture, bool RaiseErrors ) : void
SeparateCommandsAndArguments ( Expression Expression, string &Command, string &ArgumentSequence, System Culture, string FileName, int LineNumber, bool RaiseErrors ) : void
SmoothenOutTurns ( int subdivisions ) : void
isRWFile ( string FileName ) : bool

This method checks whether a given route file is in the .rw format