Class UrgeViewModel
The view model for an urge.
Inheritance
UrgeViewModel
Inherited Members
Namespace: Phoenix.BotBrain
Assembly: Phoenix.Plugin.BotBrain.BrainEditor.dll
Syntax
public class UrgeViewModel : DetailsViewModel<IUrge>, INotifyPropertyChanged, IUrgeViewModel, IOnSelected, IItemInfo
Constructors
View SourceUrgeViewModel(IMetadataAccess, IParameterFactory, IServiceProvider)
Initializes a new instance of the UrgeViewModel class.
Declaration
public UrgeViewModel(IMetadataAccess metadata, IParameterFactory parameterFactory, IServiceProvider services)
Parameters
Type | Name | Description |
---|---|---|
IMetadataAccess | metadata | The metadata container. |
IParameterFactory | parameterFactory | The parameter factory. |
IServiceProvider | services | The service provider. |
Properties
View SourceBrain
Gets the bot brain.
Declaration
public IBotBrain? Brain { get; }
Property Value
Type | Description |
---|---|
IBotBrain |
BrainView
Gets or sets the bot brain view model.
Declaration
public IBotBrainViewModel? BrainView { get; set; }
Property Value
Type | Description |
---|---|
IBotBrainViewModel |
CanEdit
Gets a value indicating whether or not parameters are editable.
Declaration
protected override bool CanEdit { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
View SourceDisplayName
Gets the display name.
Declaration
public string DisplayName { get; }
Property Value
Type | Description |
---|---|
string |
MaxWeight
Gets the urge's maximum possible weight.
Declaration
protected virtual double MaxWeight { get; }
Property Value
Type | Description |
---|---|
double |
Name
Gets the name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
Urge
Gets or sets the urge.
Declaration
public IUrge Urge { get; set; }
Property Value
Type | Description |
---|---|
IUrge |
Methods
View SourceCreateParameters()
Creates an enumeration of parameters for the urge.
Declaration
protected override IEnumerable<IParameter> CreateParameters()
Returns
Type | Description |
---|---|
IEnumerable<IParameter> | An enumeration of parameters. |
Overrides
View SourceResetParameters()
Resets the view model so a new urge can be chosen.
Declaration
protected override void ResetParameters()