public CreateFacialFeatures() { hairStyles = GatewayProvider.Get <HairStyle>(); hairColors = GatewayProvider.Get <HairColor>(); facialHair = GatewayProvider.Get <FacialHair>(); eyeColors = GatewayProvider.Get <EyeColor>(); }
public void LoadsGatewayForCharacterCreator() { var creatorGateway = GatewayProvider.Get <SilverNeedle.Actions.CharacterGeneration.CharacterDesigner>(); Assert.NotNull(creatorGateway); Assert.True(creatorGateway.Count() > 0); }
public void Execute(Utility.ComponentContainer components) { // Select a simple weapon var choice = GatewayProvider.Get <Weapon>().SimpleWeapons().ChooseOne(); components.Add(new WeaponProficiency(choice.ProficiencyName)); }
private static void RegisterSupportedHelpers() { helpers.Add(new ChooseDescriptor()); helpers.Add(new ChooseWordFromGatewayObject <Color>(GatewayProvider.Get <Color>())); helpers.Add(new ChooseWordFromGatewayObject <Gem>(GatewayProvider.Get <Gem>())); helpers.Add(new ChooseWordFromGatewayObject <Occupation>(GatewayProvider.Get <Occupation>())); helpers.Add(SelectCharacterFavoriteColors.CreateAndRegister()); }
private CharacterDesigner FindDesigner(string name) { if (gateway == null) { gateway = GatewayProvider.Get <CharacterDesigner>(); } return(gateway.Find(designerName)); }
private EntityGateway <Weapon> GetWeapons() { if (weaponsGateway == null) { weaponsGateway = GatewayProvider.Get <Weapon>(); } return(weaponsGateway); }
public IEnumerable <Feat> Load(IObjectStore configuration) { var craftsmanFeats = new List <Feat>(); var skills = GatewayProvider.Get <Skill>().Where(x => x.IsProfessionSkill || x.IsCraftSkill); foreach (var skl in skills) { var yaml = configuration.GetString("loader-template"); yaml = yaml.Formatted(skl.Name); var crft = new Feat(yaml.ParseYaml()); craftsmanFeats.Add(crft); } return(craftsmanFeats); }
public bool IsProficient(string proficiencyName) { //Do a quick string check... foreach (var prof in proficiencyList) { if (prof.EqualsIgnoreCase(proficiencyName)) { return(true); } } var equip = GatewayProvider.Get <Weapon>().Where(x => x.Name.ContainsIgnoreCase(proficiencyName)); foreach (var w in equip) { if (IsProficient(w)) { return(true); } } return(false); }
public IActionResult Index() { var namer = new NameCharacter(); var races = GatewayProvider.Get <Race>().All(); var number = 5; var results = new List <NamesViewModel>(); //Foreach race and gender make a collection of names foreach (var r in races) { foreach (var g in EnumHelpers.GetValues <Gender>()) { var genderRaceNames = new NamesViewModel(r.Name, g); for (int i = 0; i < number; i++) { var name = namer.CreateFullName(g, r.Name); genderRaceNames.Names.Add(name); } results.Add(genderRaceNames); } } ViewData["names"] = results; return(View()); }
public SelectFavoriteColors() { this.colors = GatewayProvider.Get <Color>(); }
public SelectQuirks() { this.quirkGateway = GatewayProvider.Get <QuirkTemplate>(); }
public SelectRagePower() { _ragePowers = GatewayProvider.Get <RagePower>(); }
public HomelandSelector() { this.homelands = GatewayProvider.Get <HomelandGroup>(); }
public void Initialize(ComponentContainer components) { this.Weapon = GatewayProvider.Get <Weapon>().ChooseOne(); components.Get <OffenseStats>().AddWeaponModifier(this.WeaponCriticalDamageBonus); }
public WandCreator() { spells = GatewayProvider.Get <Spell>(); spellLists = GatewayProvider.Get <SpellList>(); }
public ClassOriginStoryCreator() { this.classOrigins = GatewayProvider.Get <ClassOriginGroup>(); }
public SelectBloodline() : this(GatewayProvider.Get <Bloodline>()) { }
public ChooseDescriptor() { this.descriptors = GatewayProvider.Get <Descriptor>(); RegisterHelper(); }
public ClassSelector() { classes = GatewayProvider.Get <Class>(); }
public PurchaseShield() { this.armors = GatewayProvider.Get <Armor>(); }
public InitializeCharacterSheet() { skills = GatewayProvider.Get <Skill>(); setups = GatewayProvider.Get <CharacterSheetSetup>(); }
public BirthCircumstanceSelector() { circumstances = GatewayProvider.Get <BirthCircumstance>(); }
public PersonalityBuilder() { personalities = GatewayProvider.Get <PersonalityType>(); ideals = GatewayProvider.Get <Ideal>(); }
public static SpellList CreateForTesting(string className) { return(CreateForTesting(className, GatewayProvider.Get <Spell>())); }
public CreatePhysicalFeatures() { physical = GatewayProvider.Get <PhysicalFeature>(); }
public SpellList() { spellInformation = GatewayProvider.Get <Spell>(); }
public SpontaneousCasting(IObjectStore configuration) : this(configuration, GatewayProvider.Get <SpellList>()) { }
public ProcessFavoredClassToken() : this(GatewayProvider.Get <Class>()) { }
public PurchaseClothing() { clothing = GatewayProvider.Get <Clothes>(); }
public NameCharacter() { this.namesGateway = GatewayProvider.Get <NameInformation>(); }