C# Class CoCEd.ViewModel.GameVM

Inheritance: ObjectVM
Afficher le fichier Open project: tmedwards/CoCEd Class Usage Examples

Private Properties

Свойство Type Description
ImportMissingNamedVectors void
OnGenitalCollectionChanged void
SetHeatOrRutTime void
UpdateArmorRack void
UpdateChest void
UpdateDresser void
UpdateInventory void
UpdateJewelryBox void
UpdateShieldRack void
UpdateWeaponRack void

Méthodes publiques

Méthode Description
BeforeSerialization ( ) : void
FormatVolume ( double qty, string suffix = "" ) : string
GameVM ( CoCEd.Model.AmfFile file, GameVM previousVM, bool isRevampMod = false ) : System
GetFlag ( int index, [ propertyName = null ) : CoCEd.ViewModel.FlagVM

Returns the flag with the specified index AND registers a dependency between the caller property and this flag. That way, anytime the flag value is changed, OnPropertyChanged will be raised for the caller property.

GetKeyItem ( string name, [ propertyName = null ) : KeyItemVM

Returns the key item with the specified name (even if not owned by the player) AND registers a dependency between the caller property and this key item. That way, anytime the key item is modified, OnPropertyChanged will be raised for the caller property.

GetPerk ( string name, [ propertyName = null ) : CoCEd.ViewModel.PerkVM

Returns the perk with the specified name (even if not owned by the player) AND registers a dependency between the caller property and this perk. That way, anytime the perk is modified, OnPropertyChanged will be raised for the caller property.

GetStatus ( string name, [ propertyName = null ) : StatusVM

Returns the status with the specified name (even if not owned by the player) AND registers a dependency between the caller property and this status. That way, anytime the status is modified, OnPropertyChanged will be raised for the caller property.

NotifyPropertyChanged ( [ propertyName = null ) : void
OnFlagChanged ( int index ) : void
OnKeyItemAddedOrRemoved ( string name, bool isOwned ) : void
OnKeyItemChanged ( string name ) : void
OnPerkAddedOrRemoved ( string name, bool isOwned ) : void
OnPerkChanged ( string name ) : void
OnStatusChanged ( string name ) : void

Private Methods

Méthode Description
ImportMissingNamedVectors ( AmfObject cocItems, IEnumerable xmlItems, string cocNameProperty, String>.Func descriptionGetter = null, IList targetXmlList = null ) : void
OnGenitalCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
SetHeatOrRutTime ( string name, int time ) : void
UpdateArmorRack ( ) : void
UpdateChest ( ) : void
UpdateDresser ( ) : void
UpdateInventory ( ) : void
UpdateJewelryBox ( ) : void
UpdateShieldRack ( ) : void
UpdateWeaponRack ( ) : void

Method Details

BeforeSerialization() public méthode

public BeforeSerialization ( ) : void
Résultat void

FormatVolume() public static méthode

public static FormatVolume ( double qty, string suffix = "" ) : string
qty double
suffix string
Résultat string

GameVM() public méthode

public GameVM ( CoCEd.Model.AmfFile file, GameVM previousVM, bool isRevampMod = false ) : System
file CoCEd.Model.AmfFile
previousVM GameVM
isRevampMod bool
Résultat System

GetFlag() public méthode

Returns the flag with the specified index AND registers a dependency between the caller property and this flag. That way, anytime the flag value is changed, OnPropertyChanged will be raised for the caller property.
public GetFlag ( int index, [ propertyName = null ) : CoCEd.ViewModel.FlagVM
index int
propertyName [
Résultat CoCEd.ViewModel.FlagVM

GetKeyItem() public méthode

Returns the key item with the specified name (even if not owned by the player) AND registers a dependency between the caller property and this key item. That way, anytime the key item is modified, OnPropertyChanged will be raised for the caller property.
public GetKeyItem ( string name, [ propertyName = null ) : KeyItemVM
name string
propertyName [
Résultat KeyItemVM

GetPerk() public méthode

Returns the perk with the specified name (even if not owned by the player) AND registers a dependency between the caller property and this perk. That way, anytime the perk is modified, OnPropertyChanged will be raised for the caller property.
public GetPerk ( string name, [ propertyName = null ) : CoCEd.ViewModel.PerkVM
name string
propertyName [
Résultat CoCEd.ViewModel.PerkVM

GetStatus() public méthode

Returns the status with the specified name (even if not owned by the player) AND registers a dependency between the caller property and this status. That way, anytime the status is modified, OnPropertyChanged will be raised for the caller property.
public GetStatus ( string name, [ propertyName = null ) : StatusVM
name string
propertyName [
Résultat StatusVM

NotifyPropertyChanged() public méthode

public NotifyPropertyChanged ( [ propertyName = null ) : void
propertyName [
Résultat void

OnFlagChanged() public méthode

public OnFlagChanged ( int index ) : void
index int
Résultat void

OnKeyItemAddedOrRemoved() public méthode

public OnKeyItemAddedOrRemoved ( string name, bool isOwned ) : void
name string
isOwned bool
Résultat void

OnKeyItemChanged() public méthode

public OnKeyItemChanged ( string name ) : void
name string
Résultat void

OnPerkAddedOrRemoved() public méthode

public OnPerkAddedOrRemoved ( string name, bool isOwned ) : void
name string
isOwned bool
Résultat void

OnPerkChanged() public méthode

public OnPerkChanged ( string name ) : void
name string
Résultat void

OnStatusChanged() public méthode

public OnStatusChanged ( string name ) : void
name string
Résultat void