public CharacterVM GetCharacter(string name) { var tmpChar = GetObj("characters"); tmpChar = tmpChar.GetObj(name); var tcChar = new CharacterVM(this, tmpChar); return(tcChar); }
public ItemSlotVM(CharacterVM character, AmfObject obj, List <String> types) : base(obj) { Types = types; _character = character; Xml = getXmlItemForSlot(); UpdateItemGroups(); }
public ItemSlotVM(CharacterVM character, AmfObject obj, ItemCategories categories) : base(obj) { Categories = categories; _character = character; _categories = categories; //find the xml definition for this slot type var className = GetString("classInstance"); var variant = GetString("variant"); setXml(getXmlItemForSlot(className, variant)); UpdateItemGroups(); }
private void setCharacter(string name) { var tmpChar = GetObj("characters"); tmpChar = tmpChar.GetObj(name); Character = new CharacterVM(this, tmpChar); _character = name; if (name == "PC") { IsPC = true; } else { IsPC = false; } }
public ItemSlotVM(CharacterVM character, AmfObject obj, ItemCategories categories) : base(obj) { Categories = categories; _character = character; //find the xml definition for this slot type var id = GetString("classInstance"); _xml = XmlItem.Empty; foreach (XmlItem item in XmlData.Current.Items) { if (item.ID == id) { _xml = item; break; } } //create our groups var groups = new List <ItemGroupVM>(); var enumNames = Enum.GetNames(typeof(ItemCategories)); Array.Sort <String>(enumNames); //check enum support foreach (string ename in enumNames) { var etype = Enum.Parse(typeof(ItemCategories), ename); int eint = (int)etype; if (((int)categories & eint) == eint) { //create the group for this supported type ItemGroupVM vm = new ItemGroupVM(ename, this); if (vm.Items.Count > 0) { groups.Add(vm); } } } AllGroups = new UpdatableCollection <ItemGroupVM>(groups); }
private void setCharacter(string name) { var tmpChar = GetObj("characters"); tmpChar = tmpChar.GetObj(name); Character = new CharacterVM(this, tmpChar); _characterName = name; if (name == "PC") { IsPC = true; } else { IsPC = false; } if (null == Character.KeyItems && (null != _allKeyItems)) { Character.KeyItems = new UpdatableCollection <KeyItemVM>(_allKeyItems.Where(x => x.Match(KeyItemSearchText))); } if (null == Character.PerkGroups && (null != _allPerks)) { Character.PerkGroups = new List <PerkGroupVM>(); var charPerks = Character.PerksArray; foreach (var xmlGroup in XmlData.Current.PerkGroups) { var perksVM = xmlGroup.Perks.OrderBy(x => x.Name).Select(x => new PerkVM(this, charPerks, x)).ToArray(); var groupVM = new PerkGroupVM(this, xmlGroup.Name, perksVM); Character.PerkGroups.Add(groupVM); } } if (null == Character.StatusEffects && (null != _allStatuses)) { Character.StatusEffects = new UpdatableCollection <StatusEffectVM>(_allStatuses.Where(x => x.Match(RawDataSearchText))); } }
private void setCharacter(string name) { var tmpChar = GetObj("characters"); tmpChar = tmpChar.GetObj(name); Character = new CharacterVM(this, tmpChar); _characterName = name; if (name == "PC") { IsPC = true; } else { IsPC = false; } Character.CharacterName = _characterName; Character.UpdateKeyItems(); Character.UpdatePerks(); Character.UpdateStatusEffects(); }
public ItemContainerVM(CharacterVM character, string name, ItemCategories categories) { Name = name; _character = character; Categories = categories; }
public CockArrayVM(CharacterVM character, AmfObject obj) : base(obj, x => new CockVM(character, x)) { }
public ItemContainerVM(CharacterVM character, string name, List <String> itemTypes) { Name = name; _character = character; Types = itemTypes; }
public PregnancyDataArrayVM(CharacterVM character, AmfObject obj) : base(obj, x => new PregnancyDataVM(character, x)) { _character = character; }
public BreastsVM(CharacterVM character, AmfObject obj) : base(obj) { _character = character; }
public PregnancyDataVM(CharacterVM character, AmfObject obj) : base(obj) { _character = character; }
public KeyItemVM(CharacterVM character, AmfObject keyItems, XmlStorageClass xml) : base(character, keyItems, xml) { }
public StatusGroupVM(CharacterVM character, string name, StatusEffectVM[] statusEffects) { Character = character; Name = name; StatusEffects = new UpdatableCollection <StatusEffectVM>(statusEffects.Where(x => x.Match(Character.Game.RawDataSearchText))); }
public PerkGroupVM(CharacterVM character, string name, PerkVM[] perks) { Character = character; Name = name; Perks = new UpdatableCollection <PerkVM>(perks.Where(x => x.Match(Character.Game.SearchText))); }
public CockVM(CharacterVM character, AmfObject obj) : base(obj) { _character = character; }
public BreastArrayVM(CharacterVM character, AmfObject obj) : base(obj, x => new BreastsVM(character, x)) { }
public PerkVM(CharacterVM character, AmfObject perksArray, XmlStorageClass xml) : base(character, perksArray, xml) { }
public VaginaArrayVM(CharacterVM character, AmfObject obj) : base(obj, x => new VaginaVM(character, x)) { }
public StatusEffectVM(CharacterVM character, AmfObject statuses, XmlStorageClass xml) : base(character, statuses, xml) { }
public VaginaVM(CharacterVM character, AmfObject obj) : base(obj) { _character = character; }
public KeyItemGroupVM(CharacterVM character, string name, KeyItemVM[] keyItems) { Character = character; Name = name; KeyItems = new UpdatableCollection <KeyItemVM>(keyItems.Where(x => x.Match(Character.Game.KeyItemSearchText))); }
protected StorageClassVM(CharacterVM character, AmfObject items, XmlStorageClass xml) { _xml = xml; Character = character; _items = items; }