C# Класс EddiSpeechResponder.Personality

A personality is a combination of scripts used to respond to specific events
Показать файл Открыть проект Примеры использования класса

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