C# 클래스 MBGen.WordList

파일 보기 프로젝트 열기: TheBerkin/MoistBanana 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Classes List>.Dictionary
Description string
Subtypes string[]
Symbol char
Title string
Words string[][]

공개 메소드들

메소드 설명
GetRandomIndex ( LongRandom rand, string className ) : int
GetRandomWord ( LongRandom rand, string subtype, string className, WordFormat format ) : string
GetRandomWordMultiClass ( LongRandom rand, string subtype, WordFormat format ) : string
GetWordByIndex ( int index, string subtype, WordFormat format ) : string
Merge ( WordList list ) : bool
RandomizeDistWeights ( LongRandom rand, int factor ) : void
WordList ( BinaryReader reader, int &total ) : System
WordList ( string path, int &total ) : System

비공개 메소드들

메소드 설명
Error ( string type ) : string
Format ( string input, WordFormat format ) : string
GetMultiClassList ( ) : List
Load ( BinaryReader reader, int &total ) : void
LookForSubtype ( string name ) : int
PickByWeight ( List items, LongRandom rand ) : int
PickByWeight ( string className, LongRandom rand ) : int
TotalWeights ( List items ) : int
TotalWeights ( string className ) : int

메소드 상세

GetRandomIndex() 공개 메소드

public GetRandomIndex ( LongRandom rand, string className ) : int
rand LongRandom
className string
리턴 int

GetRandomWord() 공개 메소드

public GetRandomWord ( LongRandom rand, string subtype, string className, WordFormat format ) : string
rand LongRandom
subtype string
className string
format WordFormat
리턴 string

GetRandomWordMultiClass() 공개 메소드

public GetRandomWordMultiClass ( LongRandom rand, string subtype, WordFormat format ) : string
rand LongRandom
subtype string
format WordFormat
리턴 string

GetWordByIndex() 공개 메소드

public GetWordByIndex ( int index, string subtype, WordFormat format ) : string
index int
subtype string
format WordFormat
리턴 string

Merge() 공개 메소드

public Merge ( WordList list ) : bool
list WordList
리턴 bool

RandomizeDistWeights() 공개 메소드

public RandomizeDistWeights ( LongRandom rand, int factor ) : void
rand LongRandom
factor int
리턴 void

WordList() 공개 메소드

public WordList ( BinaryReader reader, int &total ) : System
reader System.IO.BinaryReader
total int
리턴 System

WordList() 공개 메소드

public WordList ( string path, int &total ) : System
path string
total int
리턴 System

프로퍼티 상세

Classes 공개적으로 프로퍼티

public Dictionary> Classes
리턴 List>.Dictionary

Description 공개적으로 프로퍼티

public string Description
리턴 string

Subtypes 공개적으로 프로퍼티

public string[] Subtypes
리턴 string[]

Symbol 공개적으로 프로퍼티

public char Symbol
리턴 char

Title 공개적으로 프로퍼티

public string Title
리턴 string

Words 공개적으로 프로퍼티

public string[][] Words
리턴 string[][]