C# Class Mapper.Managers.RoadNamerManager

Utilities to interact with the Road Name Mod
Datei anzeigen Open project: PropaneDragon/Cimtographer Class Usage Examples

Public Methods

Method Description
HaveMod ( ) : bool

checks whether or not the Road Namer mod is loaded

Instance ( ) : RoadNamerManager
getSegmentName ( ushort segmentId ) : string

Wrapper for the "GetRoadName" method in the RoadNamer mod, invoked via reflection

populateObjects ( ) : bool

Finds, via reflection, the Road Namer mod classes relevant to the Cimtographer mod( roadNameManager ), and load the required methods

Method Details

HaveMod() public method

checks whether or not the Road Namer mod is loaded
public HaveMod ( ) : bool
return bool

Instance() public static method

public static Instance ( ) : RoadNamerManager
return RoadNamerManager

getSegmentName() public method

Wrapper for the "GetRoadName" method in the RoadNamer mod, invoked via reflection
public getSegmentName ( ushort segmentId ) : string
segmentId ushort the segment ID to search the names for
return string

populateObjects() public method

Finds, via reflection, the Road Namer mod classes relevant to the Cimtographer mod( roadNameManager ), and load the required methods
public populateObjects ( ) : bool
return bool