/// <summary> /// Creates an instance of <see cref="ToolProficiencyModel"/> /// </summary> public ToolProficiencyModel(ToolProficiencyModel toolProficiencyModel) { _alchemistsSuppliesProficiency = toolProficiencyModel.AlchemistsSuppliesProficiency; _brewersSuppliesProficiency = toolProficiencyModel.BrewersSuppliesProficiency; _calligraphersSuppliesProficiency = toolProficiencyModel.CalligraphersSuppliesProficiency; _carpentersToolsProficiency = toolProficiencyModel.CarpentersToolsProficiency; _cartographersToolsProficiency = toolProficiencyModel.CartographersToolsProficiency; _cobblersToolsProficiency = toolProficiencyModel.CobblersToolsProficiency; _cooksUtensilsProficiency = toolProficiencyModel.CooksUtensilsProficiency; _glassblowersToolsProficiency = toolProficiencyModel.GlassblowersToolsProficiency; _jewelerssToolsProficiency = toolProficiencyModel.JewelerssToolsProficiency; _leatherworkersToolsProficiency = toolProficiencyModel.LeatherworkersToolsProficiency; _masonsToolsProficiency = toolProficiencyModel.MasonsToolsProficiency; _paintersSuppliesProficiency = toolProficiencyModel.PaintersSuppliesProficiency; _pottersToolsProficiency = toolProficiencyModel.PottersToolsProficiency; _smithsToolsProficiency = toolProficiencyModel.SmithsToolsProficiency; _tinkersToolsProficiency = toolProficiencyModel.TinkersToolsProficiency; _weaversToolsProficiency = toolProficiencyModel.WeaversToolsProficiency; _woodcarversToolsProficiency = toolProficiencyModel.WoodcarversToolsProficiency; _diceSetProficiency = toolProficiencyModel.DiceSetProficiency; _playingCardSetProficiency = toolProficiencyModel.PlayingCardSetProficiency; _disguiseKitProficiency = toolProficiencyModel.DisguiseKitProficiency; _forgeryKitProficiency = toolProficiencyModel.ForgeryKitProficiency; _herbalismKitProficiency = toolProficiencyModel.HerbalismKitProficiency; _poisonersKitProficiency = toolProficiencyModel.PoisonersKitProficiency; _bagpipesProficiency = toolProficiencyModel.BagpipesProficiency; _drumProficiency = toolProficiencyModel.DrumProficiency; _dulcimerProficiency = toolProficiencyModel.DulcimerProficiency; _fluteProficiency = toolProficiencyModel.FluteProficiency; _luteProficiency = toolProficiencyModel.LuteProficiency; _lyreProficiency = toolProficiencyModel.LyreProficiency; _hornProficiency = toolProficiencyModel.HornProficiency; _panFluteProficiency = toolProficiencyModel.PanFluteProficiency; _shawmProficiency = toolProficiencyModel.ShawmProficiency; _violProficiency = toolProficiencyModel.ViolProficiency; _navigatorsToolsProficiency = toolProficiencyModel.NavigatorsToolsProficiency; _thievesToolsProficiency = toolProficiencyModel.ThievesToolsProficiency; _landVehiclesProficiency = toolProficiencyModel.LandVehiclesProficiency; _waterVehiclesProficiency = toolProficiencyModel.WaterVehiclesProficiency; }
/// <summary> /// Gets tool proficiency string /// </summary> public string GetToolProficiencyString(ToolProficiencyModel toolProficiency) { List <string> tools = new List <string>(); if (toolProficiency.AlchemistsSuppliesProficiency) { tools.Add(GetString(ArtisanTool.Alchemists_Supplies)); } if (toolProficiency.BrewersSuppliesProficiency) { tools.Add(GetString(ArtisanTool.Brewers_Supplies)); } if (toolProficiency.CalligraphersSuppliesProficiency) { tools.Add(GetString(ArtisanTool.Calligraphers_Supplies)); } if (toolProficiency.CarpentersToolsProficiency) { tools.Add(GetString(ArtisanTool.Carpenters_Tools)); } if (toolProficiency.CartographersToolsProficiency) { tools.Add(GetString(ArtisanTool.Cartographers_Tools)); } if (toolProficiency.CobblersToolsProficiency) { tools.Add(GetString(ArtisanTool.Cobblers_Tools)); } if (toolProficiency.CooksUtensilsProficiency) { tools.Add(GetString(ArtisanTool.Cooks_Utensils)); } if (toolProficiency.GlassblowersToolsProficiency) { tools.Add(GetString(ArtisanTool.Glassblowers_Tools)); } if (toolProficiency.JewelerssToolsProficiency) { tools.Add(GetString(ArtisanTool.Jewelerss_Tools)); } if (toolProficiency.LeatherworkersToolsProficiency) { tools.Add(GetString(ArtisanTool.Leatherworkers_Tools)); } if (toolProficiency.MasonsToolsProficiency) { tools.Add(GetString(ArtisanTool.Masons_Tools)); } if (toolProficiency.PaintersSuppliesProficiency) { tools.Add(GetString(ArtisanTool.Painters_Supplies)); } if (toolProficiency.PottersToolsProficiency) { tools.Add(GetString(ArtisanTool.Potters_Tools)); } if (toolProficiency.SmithsToolsProficiency) { tools.Add(GetString(ArtisanTool.Smiths_Tools)); } if (toolProficiency.TinkersToolsProficiency) { tools.Add(GetString(ArtisanTool.Tinkers_Tools)); } if (toolProficiency.WeaversToolsProficiency) { tools.Add(GetString(ArtisanTool.Weavers_Tools)); } if (toolProficiency.WoodcarversToolsProficiency) { tools.Add(GetString(ArtisanTool.Woodcarvers_Tools)); } if (toolProficiency.DiceSetProficiency) { tools.Add(GetString(GamingSet.Dice_Set)); } if (toolProficiency.PlayingCardSetProficiency) { tools.Add(GetString(GamingSet.Playing_Card_Set)); } if (toolProficiency.DisguiseKitProficiency) { tools.Add(GetString(Kit.Disguise_Kit)); } if (toolProficiency.ForgeryKitProficiency) { tools.Add(GetString(Kit.Forgery_Kit)); } if (toolProficiency.HerbalismKitProficiency) { tools.Add(GetString(Kit.Herbalism_Kit)); } if (toolProficiency.PoisonersKitProficiency) { tools.Add(GetString(Kit.Poisoners_Kit)); } if (toolProficiency.BagpipesProficiency) { tools.Add(GetString(MusicalInstrument.Bagpipes)); } if (toolProficiency.DrumProficiency) { tools.Add(GetString(MusicalInstrument.Drum)); } if (toolProficiency.DulcimerProficiency) { tools.Add(GetString(MusicalInstrument.Dulcimer)); } if (toolProficiency.FluteProficiency) { tools.Add(GetString(MusicalInstrument.Flute)); } if (toolProficiency.LuteProficiency) { tools.Add(GetString(MusicalInstrument.Lute)); } if (toolProficiency.LyreProficiency) { tools.Add(GetString(MusicalInstrument.Lyre)); } if (toolProficiency.HornProficiency) { tools.Add(GetString(MusicalInstrument.Horn)); } if (toolProficiency.PanFluteProficiency) { tools.Add(GetString(MusicalInstrument.Pan_Flute)); } if (toolProficiency.ShawmProficiency) { tools.Add(GetString(MusicalInstrument.Shawm)); } if (toolProficiency.ViolProficiency) { tools.Add(GetString(MusicalInstrument.Viol)); } if (toolProficiency.NavigatorsToolsProficiency) { tools.Add(GetString(Tool.Navigators_Tools)); } if (toolProficiency.ThievesToolsProficiency) { tools.Add(GetString(Tool.Thieves_Tools)); } if (toolProficiency.LandVehiclesProficiency) { tools.Add(GetString(Vehicle.Land_Vehicles)); } if (toolProficiency.WaterVehiclesProficiency) { tools.Add(GetString(Vehicle.Water_Vehicles)); } return(tools.Any() ? String.Join(", ", tools) : "None"); }
/// <summary> /// Creates an instance of <see cref="ToolProficiencyViewModel"/> /// </summary> public ToolProficiencyViewModel(ToolProficiencyModel toolProficiencyModel) { _toolProficiencyModel = toolProficiencyModel; }