Show / Hide Table of Contents

Class IBrainHelperExtensions

Extension methods for IBrainHelper.

Inheritance
object
IBrainHelperExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Phoenix.BotBrain
Assembly: Phoenix.Plugin.BotBrain.Shared.dll
Syntax
public static class IBrainHelperExtensions

Methods

View Source

CreateBotBrain(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.

View Source

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.

View Source

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.

  • View Source
In this article
Back to top Generated by DocFX