C# Class EddiSpeechResponder.Personality

A personality is a combination of scripts used to respond to specific events
ファイルを表示 Open project: cmdrmcdonald/EliteDangerousDataProvider Class Usage Examples

Private Properties

Property Type Description
fixPersonalityInfo void

Public Methods

Method Description
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

Private Methods

Method Description
fixPersonalityInfo ( Personality personality ) : void

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

Method Details

AllFromDirectory() public static method

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
return List

Copy() public method

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

Default() public static method

Obtain the default personality
public static Default ( ) : Personality
return Personality

FromFile() public static method

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
return Personality

FromName() public static method

public static FromName ( string name ) : Personality
name string
return Personality

Personality() public method

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

RemoveFile() public method

public RemoveFile ( ) : void
return void

ToFile() public method

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
return void