Class GameObjectRepositoryViewModel
View model for a game object repository.
Inheritance
Inherited Members
Namespace: Phoenix.Aruba
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public class GameObjectRepositoryViewModel : GameObjectRepositoryViewModelBase<DynamicGameStateTokenCreationView, PropertyModel>, INotifyPropertyChanged, IClassTypeModelContainer
Constructors
View SourceGameObjectRepositoryViewModel(DynamicGameStateTokenCreationView, string, IPhoenixLogger, IPropertyTrackManager, IEnumerable<IGameObjectRepositoryProvider>, IDeviceManager)
Initializes a new instance of theGameObjectRepositoryViewModel class.
Declaration
public GameObjectRepositoryViewModel(DynamicGameStateTokenCreationView view, string name, IPhoenixLogger logger, IPropertyTrackManager propertyTrackManager, IEnumerable<IGameObjectRepositoryProvider> repositoryProviders, IDeviceManager deviceManager)
Parameters
Type | Name | Description |
---|---|---|
DynamicGameStateTokenCreationView | view | The view. |
string | name | |
IPhoenixLogger | logger | The logger. |
IPropertyTrackManager | propertyTrackManager | The property track manager. |
IEnumerable<IGameObjectRepositoryProvider> | repositoryProviders | The repository providers. |
IDeviceManager | deviceManager | The device manager. |
Properties
View SourceAddTokenCommand
Gets the command to add a token.
Declaration
public DelegateCommand AddTokenCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
CanExecuteAddTokenCommand
Gets a value indicating whether the add token command can be executed.
Declaration
public bool CanExecuteAddTokenCommand { get; }
Property Value
Type | Description |
---|---|
bool |
IsEditingExistingToken
Gets a value indicating whether we are editing an existing token.
Declaration
public bool IsEditingExistingToken { get; }
Property Value
Type | Description |
---|---|
bool |
IsExistingTokenDataBeingLoaded
Gets a value indicating whether token data is being loaded.
Declaration
public bool IsExistingTokenDataBeingLoaded { get; }
Property Value
Type | Description |
---|---|
bool |
PropertyTrackerSource
Gets the tracker source for this tab.
Declaration
public PropertyTrackerSource PropertyTrackerSource { get; }
Property Value
Type | Description |
---|---|
PropertyTrackerSource |
Token
Gets the dynamic game state token.
Declaration
public DynamicGameStateToken? Token { get; }
Property Value
Type | Description |
---|---|
DynamicGameStateToken |
UniqueTokenName
Gets or sets the unique token name.
Declaration
public string UniqueTokenName { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
View SourceCleanupProperties()
Cleans up the properties.
Declaration
protected override void CleanupProperties()
Overrides
OnObjectFormatterSet()
Called when the object formatter is set..
Declaration
protected override void OnObjectFormatterSet()
Overrides
RefreshGameObjects(ClassTypeModel)
Refreshes game objects for a specific class type.
Declaration
protected override Task RefreshGameObjects(ClassTypeModel classType)
Parameters
Type | Name | Description |
---|---|---|
ClassTypeModel | classType | The class type. |
Returns
Type | Description |
---|---|
Task | The completed task. |
Overrides
RefreshObjectProperties(GameObjectViewModel, bool, CancellationToken)
Refreshes object properties.
Declaration
protected override Task RefreshObjectProperties(GameObjectViewModel gameObjectViewModel, bool force, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
GameObjectViewModel | gameObjectViewModel | The game object to refresh. |
bool | force | A value indicating whether the property should be force refreshed. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task | The completed task. |
Overrides
View SourceSetEditableToken(DynamicGameStateToken)
Sets the token to be in an editing state with existing values.
Declaration
public void SetEditableToken(DynamicGameStateToken editableToken)
Parameters
Type | Name | Description |
---|---|---|
DynamicGameStateToken | editableToken | The token to edit. |