C# Class CoCEd.ViewModel.GameVM

Inheritance: ObjectVM
Mostra file Open project: tmedwards/CoCEd Class Usage Examples

Private Properties

Property Type Description
ImportMissingNamedVectors void
OnGenitalCollectionChanged void
SetHeatOrRutTime void
UpdateArmorRack void
UpdateChest void
UpdateDresser void
UpdateInventory void
UpdateJewelryBox void
UpdateShieldRack void
UpdateWeaponRack void

Public Methods

Method 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

Method 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 method

public BeforeSerialization ( ) : void
return void

FormatVolume() public static method

public static FormatVolume ( double qty, string suffix = "" ) : string
qty double
suffix string
return string

GameVM() public method

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

GetFlag() public method

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 [
return CoCEd.ViewModel.FlagVM

GetKeyItem() public method

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 [
return KeyItemVM

GetPerk() public method

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 [
return CoCEd.ViewModel.PerkVM

GetStatus() public method

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 [
return StatusVM

NotifyPropertyChanged() public method

public NotifyPropertyChanged ( [ propertyName = null ) : void
propertyName [
return void

OnFlagChanged() public method

public OnFlagChanged ( int index ) : void
index int
return void

OnKeyItemAddedOrRemoved() public method

public OnKeyItemAddedOrRemoved ( string name, bool isOwned ) : void
name string
isOwned bool
return void

OnKeyItemChanged() public method

public OnKeyItemChanged ( string name ) : void
name string
return void

OnPerkAddedOrRemoved() public method

public OnPerkAddedOrRemoved ( string name, bool isOwned ) : void
name string
isOwned bool
return void

OnPerkChanged() public method

public OnPerkChanged ( string name ) : void
name string
return void

OnStatusChanged() public method

public OnStatusChanged ( string name ) : void
name string
return void