Class BotBrainUIHelpers
Helper methods for populating the bot brain UI.
Inherited Members
Namespace: Phoenix.BotBrain
Assembly: Phoenix.Plugin.BotBrain.Shared.dll
Syntax
public class BotBrainUIHelpers
Remarks
Initializes a new instance of the BotBrainUIHelpers class.
Constructors
View SourceBotBrainUIHelpers(IBrainSerializer)
Helper methods for populating the bot brain UI.
Declaration
public BotBrainUIHelpers(IBrainSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
IBrainSerializer | serializer | The brain serializer. |
Remarks
Initializes a new instance of the BotBrainUIHelpers class.
Methods
View SourceCanCreateBrainFromFile(string)
Determines if a brain file should be visible in UI to create new roles.
Declaration
public virtual bool CanCreateBrainFromFile(string file)
Parameters
Type | Name | Description |
---|---|---|
string | file | The file. |
Returns
Type | Description |
---|---|
bool | True if it can be used to create a role. |
CanCreateRoleFromFile(string)
Determines if a role file should be visible in UI to create new roles.
Declaration
public virtual bool CanCreateRoleFromFile(string file)
Parameters
Type | Name | Description |
---|---|---|
string | file | The file. |
Returns
Type | Description |
---|---|
bool | True if it can be used to create a role. |
CanCreateScenarioFromFile(string)
Determines if a scenario file should be visible in UI to create new roles.
Declaration
public virtual bool CanCreateScenarioFromFile(string file)
Parameters
Type | Name | Description |
---|---|---|
string | file | The file. |
Returns
Type | Description |
---|---|
bool | True if it can be used to create a scenario. |