void SetupProps() { props.Props.Clear(); Type type = src.GetType(); if (Quirks.ContainsKey(type)) { foreach (string key in Quirks[type].Keys) { props.Props.Add(new PropertyEntry(key)); } } propsScript.Props.Clear(); foreach (PropertyInfo f in src.GetType().GetProperties()) { if (f.CanWrite && f.CanRead) { propsScript.Props.Add(new PropertyEntry(f.Name)); } } propsScriptFields.Props.Clear(); foreach (FieldInfo f in src.GetType().GetFields()) { propsScriptFields.Props.Add(new PropertyEntry(f.Name)); } props.Visible = true; propsScript.Visible = true; propsScriptFields.Visible = true; }
public void ExecuteStep(CharacterSheet character) { var selected = quirkGateway.Choose(character.Strategy.QuirkCount); var quirks = new Quirks(); foreach (var q in selected) { quirks.Items.Add(CharacterSentenceGenerator.Create(character, q)); } character.Add(quirks); }
public void Setup() { hellFlame = new Quirks("Hell Flame", 5000, false); alasRigidas = new Quirks("Alas Rigidas", 180, true); duplicacion = new Quirks("Duplicacion", 15, false); cremacion = new Quirks("Cremmacion", 360, false); coaguloDeSangre = new Quirks("CoaguloDesangre", 80, false); endeavor = new Heroes(hellFlame); hawks = new Heroes(alasRigidas); twice = new Villanos(true, true, false, duplicacion); dabi = new Villanos(true, false, true, cremacion); stain = new Villanos(true, false, true, coaguloDeSangre); pandill = new List <Villanos> { twice, dabi }; pandilla = new Pandilla(pandill); }
public void Setup() { hellFlame = new Quirks("Hell Flame", 5000, false); alasRigidas = new Quirks("Alas Rigidas", 180, true); duplicacion = new Quirks("Duplicacion", 15, false); cremacion = new Quirks("Cremmacion", 360, false); coaguloDeSangre = new Quirks("CoaguloDesangre", 80, false); OFA = new Quirks("One For All", 120, false); endeavor = new Heroe(hellFlame); hawks = new Heroe(alasRigidas); arturoMidorilla = new Heroe(OFA); oruMaito = new Heroe(OFA); twice = new Villano(true, true, false, duplicacion); dabi = new Villano(true, false, true, cremacion); stain = new Villano(true, false, true, coaguloDeSangre); pandill = new List <Villano> { twice, dabi }; pandilla = new Pandilla(pandill); }
public Villano(bool roboEnOnce, bool trabajo, bool leGustaLaPizzaConPiña, Quirks quirks) : base(quirks) { this.roboEnOnce = roboEnOnce; this.trabajo = trabajo; this.leGustaLaPizzaConPiña = leGustaLaPizzaConPiña; }
public Data(Flags flags, Perks perks, Quirks quirks) { this.flags = flags; this.perks = perks; this.quirks = quirks; }