Exemplo n.º 1
0
        public IRestResponse newHero(string login, string session, ReqHero hero)
        {
            request = new RestRequest("newHero?login="******"&session=" + session, Method.POST);
            request.AddJsonBody(hero);

            response = client.Execute(request);
            return(response);
        }
Exemplo n.º 2
0
        public IRestResponse saveHero(string game, string login, string session, ReqHero hero)
        {
            request = new RestRequest(game + "/SaveHero?login="******"&session=" + session, Method.PATCH);
            request.AddJsonBody(hero);

            IRestResponse response = client.Execute(request);

            return(response);
        }
Exemplo n.º 3
0
 public Main(ref ReqHero hero)
 {
     InitializeComponent();
     Hero                = hero;
     NameCharBox.Text    = Hero.hero.heroInfo.name;
     PrehistoryBox.Text  = Hero.hero.heroInfo.prehistory;
     ExpBox.Text         = Hero.hero.heroInfo.exp.ToString();
     ACBox.Text          = Hero.hero.heroInfo.AC.ToString();
     HpBox.Text          = Hero.hero.heroInfo.hp.ToString();
     HpMaxBox.Text       = Hero.hero.heroInfo.hpmax.ToString();
     HitBonesBox.Text    = Hero.hero.heroInfo.HitBones.ToString();
     HitBonesMaxBox.Text = Hero.hero.heroInfo.HitBonesMax.ToString();
     MasterBonusBox.Text = Hero.hero.heroInfo.MasterBonus.ToString();
     TemporaryHpBox.Text = Hero.hero.heroInfo.TemporaryHP.ToString();
 }
Exemplo n.º 4
0
        public Status(ref ReqHero hero)
        {
            InitializeComponent();

            //Strenght.Text = hero.heroInfo.Strenght.ToString();
            //Agility.Text = hero.heroInfo.Agility.ToString();
            //EnduranceBox.Text = hero.heroInfo.Endurance.ToString();
            //Intelligence.Text = hero.heroInfo.Intelligence.ToString();
            //PerceptionBox.Text = hero.heroInfo.Perception.ToString();
            //CharismaBox.Text = hero.heroInfo.Charisma.ToString();

            //SavingThrowSRadio.IsChecked = hero.heroInfo.SavingThrowS;
            //SavingThrowARadio.IsChecked = hero.heroInfo.SavingThrowA;
            //SavingThrowERadio.IsChecked = hero.heroInfo.SavingThrowE;
            //SavingThrowIRadio.IsChecked = hero.heroInfo.SavingThrowI;
            //SavingThrowPRadio.IsChecked = hero.heroInfo.SavingThrowP;
            //SavingThrowCRadio.IsChecked = hero.heroInfo.SavingThrowC;
        }
Exemplo n.º 5
0
        public CreateMain(ref ReqHero hero)
        {
            InitializeComponent();

            Hero = hero;
        }
Exemplo n.º 6
0
 public Skills(ref ReqHero hero)
 {
     InitializeComponent();
 }
Exemplo n.º 7
0
 public Inventory(ref ReqHero hero)
 {
     InitializeComponent();
 }