C# 클래스 ExtraFishInformation.ModEntry

The mod entry point.
상속: Mod, IAssetEditor
파일 보기 프로젝트 열기: Pathoschild/smapi-mod-dump

공개 메소드들

메소드 설명
CanEdit ( IAssetInfo asset ) : bool

Get whether this instance can edit the given asset.

Edit ( IAssetData asset ) : void

Edit a matched asset.

Entry ( IModHelper helper ) : void

The mod entry point, called after the mod is first loaded.

비공개 메소드들

메소드 설명
ConvertTo12HourTime ( string time24Hours ) : string

A helper method for ParseTimeString() to parse time strings from 24 hour format to 12 hour format.

OnGameLaunched ( object sender, GameLaunchedEventArgs e ) : void

"Raised after the game is launched, right before the first update tick. This happens once per game session (unrelated to loading saves). All mods are loaded and initialised at this point, so this is a good time to set up mod integrations." [see more at: https://stardewvalleywiki.com/Modding:Modder_Guide/APIs/Events]

ParseLocation ( int fishId, IDictionary seasonalLocationInfo ) : string

A helper method to parse location and season information from the edited version of Locations.xnb

ParseLocationName ( string locationName ) : string

A helper method to parse location names from namesLikeThis to Names Like This.

ParseTimeString ( string timeToParse, bool timeIn24Hours ) : string

A helper method for ParseTimes() to parse time strings from from Fish.xnb.

ParseTimes ( string times, bool timeIn24Hours ) : string

A helper method to parse active times from from Fish.xnb.

ParseWeather ( string weather ) : string

A helper method to parse weather information from Fish.xnb.

메소드 상세

CanEdit() 공개 메소드

Get whether this instance can edit the given asset.
public CanEdit ( IAssetInfo asset ) : bool
asset IAssetInfo Basic metadata about the asset being loaded.
리턴 bool

Edit() 공개 메소드

Edit a matched asset.
public Edit ( IAssetData asset ) : void
asset IAssetData A helper which encapsulates metadata about an asset and enables changes to it.
리턴 void

Entry() 공개 메소드

The mod entry point, called after the mod is first loaded.
public Entry ( IModHelper helper ) : void
helper IModHelper Provides simplified APIs for writing mods.
리턴 void