C# 클래스 EddiSpeechResponder.Personality

A personality is a combination of scripts used to respond to specific events
파일 보기 프로젝트 열기: cmdrmcdonald/EliteDangerousDataProvider 1 사용 예제들

Private Properties

프로퍼티 타입 설명
fixPersonalityInfo void

공개 메소드들

메소드 설명
AllFromDirectory ( string directory = null ) : List

Obtain all personalities from a directory. If the directory name is not supplied the default of Constants.Data_DIR\personalities is used

Copy ( string name, string description ) : Personality

Create a copy of this file, altering the datapath appropriately

Default ( ) : Personality

Obtain the default personality

FromFile ( string filename = null ) : Personality

Obtain personality from a file. If the file name is not supplied the the default path of Constants.Data_DIR\personalities\eddi.json is used

FromName ( string name ) : Personality
Personality ( string name, string description, Script>.Dictionary scripts ) : EddiEvents
RemoveFile ( ) : void
ToFile ( string filename = null ) : void

Write personality to a file. If the file name is not supplied the the default path of Constants.Data_DIR\personalities\eddi.json is used

비공개 메소드들

메소드 설명
fixPersonalityInfo ( Personality personality ) : void

Fix up the personality information to ensure that it contains the correct event

메소드 상세

AllFromDirectory() 공개 정적인 메소드

Obtain all personalities from a directory. If the directory name is not supplied the default of Constants.Data_DIR\personalities is used
public static AllFromDirectory ( string directory = null ) : List
directory string
리턴 List

Copy() 공개 메소드

Create a copy of this file, altering the datapath appropriately
public Copy ( string name, string description ) : Personality
name string
description string
리턴 Personality

Default() 공개 정적인 메소드

Obtain the default personality
public static Default ( ) : Personality
리턴 Personality

FromFile() 공개 정적인 메소드

Obtain personality from a file. If the file name is not supplied the the default path of Constants.Data_DIR\personalities\eddi.json is used
public static FromFile ( string filename = null ) : Personality
filename string
리턴 Personality

FromName() 공개 정적인 메소드

public static FromName ( string name ) : Personality
name string
리턴 Personality

Personality() 공개 메소드

public Personality ( string name, string description, Script>.Dictionary scripts ) : EddiEvents
name string
description string
scripts Script>.Dictionary
리턴 EddiEvents

RemoveFile() 공개 메소드

public RemoveFile ( ) : void
리턴 void

ToFile() 공개 메소드

Write personality to a file. If the file name is not supplied the the default path of Constants.Data_DIR\personalities\eddi.json is used
public ToFile ( string filename = null ) : void
filename string
리턴 void