public PlayerCharacter() { _appearance = new PlayerAppearance(1, 9, 4, 0, 1, 3, 4, 0); SkillBar = new SkillBar(this); }
public bool CreateCharacter(string name, PlayerAppearance apperance) { const string ROUTE = "/api/char"; return Http.Post(ROUTE, new[] { new KeyValuePair<string, string>("char_name", name), new KeyValuePair<string, string>("profession", apperance.Profession.ToString()), new KeyValuePair<string, string>("campaign", apperance.Campaign.ToString()), new KeyValuePair<string, string>("sex", apperance.Sex.ToString()), new KeyValuePair<string, string>("height", apperance.Height.ToString()), new KeyValuePair<string, string>("skin_color", apperance.SkinColor.ToString()), new KeyValuePair<string, string>("hair_color", apperance.HairColor.ToString()), new KeyValuePair<string, string>("hairstyle", apperance.Hairstyle.ToString()), new KeyValuePair<string, string>("face", apperance.Face.ToString()), }, _cookie); }