public static void Main(string[] args) { AttributeWriter attributeWriter = new AttributeWriter(new ConsoleWriter()); ClientForAPI api = new ClientForAPI(1904964, "zesRGv3T3jsETycEd0gChWLvA4VCj1xPN7c5kGgfdwRgrXIE80ARYe1EDcvAUZw7", 268435455); Character character = api.getCharacter(false); Console.WriteLine("Name: " + character.name); foreach(KeyValuePair<string,double> attrib in character.attributes) { string currentAttribute = attrib.Key; KeyValuePair<string,double> augmentor = new KeyValuePair<string,double>(currentAttribute, character.attributeAugmentations[currentAttribute]); KeyValuePair<string,double> total = new KeyValuePair<string, double>(currentAttribute, character.attributeTotals[currentAttribute]); attributeWriter.PrintAttributeBreakdown(attrib.Key, attrib.Value, total.Value, augmentor.Value); } Console.ReadLine(); }
public void Init() { mockWriter = new SpyConsoleWriter(); attributeWriter = new AttributeWriter(this.mockWriter); }