Show / Hide Table of Contents

Class UrgeViewModel

The view model for an urge.

Inheritance
object
BindableBase
ViewModelBase
DetailsViewModel
DetailsViewModel<IUrge>
UrgeViewModel
TestUrgeViewModel
Implements
INotifyPropertyChanged
IUrgeViewModel
IOnSelected
IItemInfo
Inherited Members
DetailsViewModel<IUrge>.ParameterNames
DetailsViewModel<IUrge>.Item
DetailsViewModel<IUrge>.TelemetryClient
DetailsViewModel<IUrge>.ToString()
DetailsViewModel<IUrge>.OnParameterChanged(string)
DetailsViewModel.ParameterEditor
DetailsViewModel.ParameterFactory
DetailsViewModel.OnSelected(object)
ViewModelBase.Services
ViewModelBase.Logger
ViewModelBase.LogVerboseException(Exception, string, string)
BindableBase.SetProperty<T>(ref T, T, string)
BindableBase.SetProperty<T>(ref T, T, Action, string)
BindableBase.RaisePropertyChanged(string)
BindableBase.OnPropertyChanged(PropertyChangedEventArgs)
BindableBase.PropertyChanged
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Phoenix.BotBrain
Assembly: Phoenix.Plugin.BotBrain.BrainEditor.dll
Syntax
public class UrgeViewModel : DetailsViewModel<IUrge>, INotifyPropertyChanged, IUrgeViewModel, IOnSelected, IItemInfo

Constructors

View Source

UrgeViewModel(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 Source

Brain

Gets the bot brain.

Declaration
public IBotBrain? Brain { get; }
Property Value
Type Description
IBotBrain
View Source

BrainView

Gets or sets the bot brain view model.

Declaration
public IBotBrainViewModel? BrainView { get; set; }
Property Value
Type Description
IBotBrainViewModel
View Source

CanEdit

Gets a value indicating whether or not parameters are editable.

Declaration
protected override bool CanEdit { get; }
Property Value
Type Description
bool
Overrides
DetailsViewModel.CanEdit
View Source

DisplayName

Gets the display name.

Declaration
public string DisplayName { get; }
Property Value
Type Description
string
View Source

MaxWeight

Gets the urge's maximum possible weight.

Declaration
protected virtual double MaxWeight { get; }
Property Value
Type Description
double
View Source

Name

Gets the name.

Declaration
public string Name { get; }
Property Value
Type Description
string
View Source

Urge

Gets or sets the urge.

Declaration
public IUrge Urge { get; set; }
Property Value
Type Description
IUrge

Methods

View Source

CreateParameters()

Creates an enumeration of parameters for the urge.

Declaration
protected override IEnumerable<IParameter> CreateParameters()
Returns
Type Description
IEnumerable<IParameter>

An enumeration of parameters.

Overrides
DetailsViewModel<IUrge>.CreateParameters()
View Source

ResetParameters()

Resets the view model so a new urge can be chosen.

Declaration
protected override void ResetParameters()
Overrides
DetailsViewModel<IUrge>.ResetParameters()

Implements

INotifyPropertyChanged
IUrgeViewModel
IOnSelected
IItemInfo

Extension Methods

INotifyPropertyChangedExtensions.OnPropertyChanged(INotifyPropertyChanged, string, Action)
INotifyPropertyChangedExtensions.OnPropertyChanged(INotifyPropertyChanged, string, Action<object?, string>)
INotifyPropertyChangedExtensions.OnPropertyChangedUntil(INotifyPropertyChanged, string, Func<bool>)
INotifyPropertyChangedExtensions.OnPropertyChangedUntil(INotifyPropertyChanged, string, Func<object?, string, bool>)
  • View Source
In this article
Back to top Generated by DocFX