C# 클래스 Supermarket.NameGenerator

Static class that generates names from random syllables.
파일 보기 프로젝트 열기: Clarksj4/Theme-Supermarket-Tycoon-World

공개 메소드들

메소드 설명
CapitalizeFirst ( string name ) : string

Capitalizes the first letter of the given string

FirstAndLastName ( ) : string

Generates a name from random syllables. The name includes both a first and last name.

GenerateName ( int minSyllables, int maxSyllables ) : string

Generates a name by concatenating n syllables where: minSyllables < n < maxSyllables

LoadSyllables ( string path ) : string[]

Loads list of syllables from the file at the given path.

메소드 상세

CapitalizeFirst() 공개 정적인 메소드

Capitalizes the first letter of the given string
public static CapitalizeFirst ( string name ) : string
name string THe string to capitalize the first letter of
리턴 string

FirstAndLastName() 공개 정적인 메소드

Generates a name from random syllables. The name includes both a first and last name.
public static FirstAndLastName ( ) : string
리턴 string

GenerateName() 공개 정적인 메소드

Generates a name by concatenating n syllables where: minSyllables < n < maxSyllables
public static GenerateName ( int minSyllables, int maxSyllables ) : string
minSyllables int The minimum number of syllables to include in the name
maxSyllables int The maximum number of syllables to include in the name
리턴 string

LoadSyllables() 공개 정적인 메소드

Loads list of syllables from the file at the given path.
public static LoadSyllables ( string path ) : string[]
path string The path to the file that contains the syllables
리턴 string[]