Class IBrainHelperExtensions
Extension methods for IBrainHelper.
Inherited Members
Namespace: Phoenix.BotBrain
Assembly: Phoenix.Plugin.BotBrain.Shared.dll
Syntax
public static class IBrainHelperExtensions
Methods
View SourceCreateBotBrain(IBrainSerializer, string?)
Creates a brain.
Declaration
public static IBotBrain? CreateBotBrain(this IBrainSerializer self, string? name = null)
Parameters
Type | Name | Description |
---|---|---|
IBrainSerializer | self | The brain helper. |
string | name | The brain name. |
Returns
Type | Description |
---|---|
IBotBrain | The brain. |
DeserializeBrainFile(IBrainSerializer, string)
Creates a brain from a file.
Declaration
public static IBotBrain DeserializeBrainFile(this IBrainSerializer self, string file)
Parameters
Type | Name | Description |
---|---|---|
IBrainSerializer | self | The brain helper. |
string | file | The file path. |
Returns
Type | Description |
---|---|
IBotBrain | The brain. |
GetFilePathForBrain(IBrainSerializer, string)
Gets the file path for a brain.
Declaration
public static string GetFilePathForBrain(this IBrainSerializer self, string name)
Parameters
Type | Name | Description |
---|---|---|
IBrainSerializer | self | The brain helper. |
string | name | The brain name. |
Returns
Type | Description |
---|---|
string | The file path. |