C# Class OpenBve.Textures.PathOrigin

Represents a file or directory where the texture can be loaded from.
Inheritance: TextureOrigin
Exibir arquivo Open project: leezer3/OpenBVE

Public Methods

Method Description
Equals ( object obj ) : bool

Checks whether this instance is equal to the specified object.

ToString ( ) : string

Returns a string representing the absolute on-disk path of this texture

operator ( ) : bool

Checks whether two origins are equal.

Private Methods

Method Description
GetTexture ( OpenBveApi &texture ) : bool

Gets the texture from this origin.

PathOrigin ( string path, OpenBveApi parameters ) : System.Drawing

Creates a new path origin.

Method Details

Equals() public method

Checks whether this instance is equal to the specified object.
public Equals ( object obj ) : bool
obj object The object.
return bool

ToString() public method

Returns a string representing the absolute on-disk path of this texture
public ToString ( ) : string
return string

operator() public static method

Checks whether two origins are equal.
public static operator ( ) : bool
return bool