@@ -471,71 +471,71 @@ void AOWSCharacterWithAbilities::OnGetCharacterStatsResponseReceived(FHttpReques
471
471
472
472
void AOWSCharacterWithAbilities::LoadAttributesFromJSON (TSharedPtr<FJsonObject> JsonObject)
473
473
{
474
- OWSAttributes->SetThirst (JsonObject->GetNumberField (" Thirst" ));
475
- OWSAttributes->SetHunger (JsonObject->GetNumberField (" Hunger" ));
476
-
477
- OWSAttributes->SetMaxHealth (JsonObject->GetNumberField (" MaxHealth" ));
478
- OWSAttributes->SetHealth (JsonObject->GetNumberField (" Health" ));
479
- OWSAttributes->SetHealthRegenRate (JsonObject->GetNumberField (" HealthRegenRate" ));
480
-
481
- OWSAttributes->SetMaxMana (JsonObject->GetNumberField (" MaxMana" ));
482
- OWSAttributes->SetMana (JsonObject->GetNumberField (" Mana" ));
483
- OWSAttributes->SetManaRegenRate (JsonObject->GetNumberField (" ManaRegenRate" ));
484
-
485
- OWSAttributes->SetMaxEnergy (JsonObject->GetNumberField (" MaxEnergy" ));
486
- OWSAttributes->SetEnergy (JsonObject->GetNumberField (" Energy" ));
487
- OWSAttributes->SetEnergyRegenRate (JsonObject->GetNumberField (" EnergyRegenRate" ));
488
-
489
- OWSAttributes->SetMaxFatigue (JsonObject->GetNumberField (" MaxFatigue" ));
490
- OWSAttributes->SetFatigue (JsonObject->GetNumberField (" Fatigue" ));
491
- OWSAttributes->SetFatigueRegenRate (JsonObject->GetNumberField (" FatigueRegenRate" ));
492
-
493
- OWSAttributes->SetMaxStamina (JsonObject->GetNumberField (" MaxStamina" ));
494
- OWSAttributes->SetStamina (JsonObject->GetNumberField (" Stamina" ));
495
- OWSAttributes->SetStaminaRegenRate (JsonObject->GetNumberField (" StaminaRegenRate" ));
496
-
497
- OWSAttributes->SetMaxEndurance (JsonObject->GetNumberField (" MaxEndurance" ));
498
- OWSAttributes->SetEndurance (JsonObject->GetNumberField (" Endurance" ));
499
- OWSAttributes->SetEnduranceRegenRate (JsonObject->GetNumberField (" EnduranceRegenRate" ));
500
-
501
- OWSAttributes->SetStrength (JsonObject->GetNumberField (" Strength" ));
502
- OWSAttributes->SetDexterity (JsonObject->GetNumberField (" Dexterity" ));
503
- OWSAttributes->SetConstitution (JsonObject->GetNumberField (" Constitution" ));
504
- OWSAttributes->SetIntellect (JsonObject->GetNumberField (" Intellect" ));
505
- OWSAttributes->SetWisdom (JsonObject->GetNumberField (" Wisdom" ));
506
- OWSAttributes->SetCharisma (JsonObject->GetNumberField (" Charisma" ));
507
- OWSAttributes->SetAgility (JsonObject->GetNumberField (" Agility" ));
508
- OWSAttributes->SetSpirit (JsonObject->GetNumberField (" Spirit" ));
509
- OWSAttributes->SetMagic (JsonObject->GetNumberField (" Magic" ));
510
- OWSAttributes->SetFortitude (JsonObject->GetNumberField (" Fortitude" ));
511
- OWSAttributes->SetReflex (JsonObject->GetNumberField (" Reflex" ));
512
- OWSAttributes->SetWillpower (JsonObject->GetNumberField (" Willpower" ));
513
-
514
- OWSAttributes->SetBaseAttack (JsonObject->GetNumberField (" BaseAttack" ));
515
- OWSAttributes->SetBaseAttackBonus (JsonObject->GetNumberField (" BaseAttackBonus" ));
516
- OWSAttributes->SetAttackPower (JsonObject->GetNumberField (" AttackPower" ));
517
- OWSAttributes->SetAttackSpeed (JsonObject->GetNumberField (" AttackSpeed" ));
518
- OWSAttributes->SetCritChance (JsonObject->GetNumberField (" CritChance" ));
519
- OWSAttributes->SetCritMultiplier (JsonObject->GetNumberField (" CritMultiplier" ));
520
- OWSAttributes->SetHaste (JsonObject->GetNumberField (" Haste" ));
521
- OWSAttributes->SetSpellPower (JsonObject->GetNumberField (" SpellPower" ));
522
- OWSAttributes->SetSpellPenetration (JsonObject->GetNumberField (" SpellPenetration" ));
523
- OWSAttributes->SetDefense (JsonObject->GetNumberField (" Defense" ));
524
- OWSAttributes->SetDodge (JsonObject->GetNumberField (" Dodge" ));
525
- OWSAttributes->SetParry (JsonObject->GetNumberField (" Parry" ));
526
- OWSAttributes->SetAvoidance (JsonObject->GetNumberField (" Avoidance" ));
527
- OWSAttributes->SetVersatility (JsonObject->GetNumberField (" Versatility" ));
528
- OWSAttributes->SetMultishot (JsonObject->GetNumberField (" Multishot" ));
529
- OWSAttributes->SetInitiative (JsonObject->GetNumberField (" Initiative" ));
530
- OWSAttributes->SetNaturalArmor (JsonObject->GetNumberField (" NaturalArmor" ));
531
- OWSAttributes->SetPhysicalArmor (JsonObject->GetNumberField (" PhysicalArmor" ));
532
- OWSAttributes->SetBonusArmor (JsonObject->GetNumberField (" BonusArmor" ));
533
- OWSAttributes->SetForceArmor (JsonObject->GetNumberField (" ForceArmor" ));
534
- OWSAttributes->SetMagicArmor (JsonObject->GetNumberField (" MagicArmor" ));
535
- OWSAttributes->SetResistance (JsonObject->GetNumberField (" Resistance" ));
536
- OWSAttributes->SetReloadSpeed (JsonObject->GetNumberField (" ReloadSpeed" ));
537
- OWSAttributes->SetRange (JsonObject->GetNumberField (" Range" ));
538
- OWSAttributes->SetSpeed (JsonObject->GetNumberField (" Speed" ));
474
+ OWSAttributes->SetThirst (JsonObject->GetNumberField (TEXT ( " Thirst" ) ));
475
+ OWSAttributes->SetHunger (JsonObject->GetNumberField (TEXT ( " Hunger" ) ));
476
+
477
+ OWSAttributes->SetMaxHealth (JsonObject->GetNumberField (TEXT ( " MaxHealth" ) ));
478
+ OWSAttributes->SetHealth (JsonObject->GetNumberField (TEXT ( " Health" ) ));
479
+ OWSAttributes->SetHealthRegenRate (JsonObject->GetNumberField (TEXT ( " HealthRegenRate" ) ));
480
+
481
+ OWSAttributes->SetMaxMana (JsonObject->GetNumberField (TEXT ( " MaxMana" ) ));
482
+ OWSAttributes->SetMana (JsonObject->GetNumberField (TEXT ( " Mana" ) ));
483
+ OWSAttributes->SetManaRegenRate (JsonObject->GetNumberField (TEXT ( " ManaRegenRate" ) ));
484
+
485
+ OWSAttributes->SetMaxEnergy (JsonObject->GetNumberField (TEXT ( " MaxEnergy" ) ));
486
+ OWSAttributes->SetEnergy (JsonObject->GetNumberField (TEXT ( " Energy" ) ));
487
+ OWSAttributes->SetEnergyRegenRate (JsonObject->GetNumberField (TEXT ( " EnergyRegenRate" ) ));
488
+
489
+ OWSAttributes->SetMaxFatigue (JsonObject->GetNumberField (TEXT ( " MaxFatigue" ) ));
490
+ OWSAttributes->SetFatigue (JsonObject->GetNumberField (TEXT ( " Fatigue" ) ));
491
+ OWSAttributes->SetFatigueRegenRate (JsonObject->GetNumberField (TEXT ( " FatigueRegenRate" ) ));
492
+
493
+ OWSAttributes->SetMaxStamina (JsonObject->GetNumberField (TEXT ( " MaxStamina" ) ));
494
+ OWSAttributes->SetStamina (JsonObject->GetNumberField (TEXT ( " Stamina" ) ));
495
+ OWSAttributes->SetStaminaRegenRate (JsonObject->GetNumberField (TEXT ( " StaminaRegenRate" ) ));
496
+
497
+ OWSAttributes->SetMaxEndurance (JsonObject->GetNumberField (TEXT ( " MaxEndurance" ) ));
498
+ OWSAttributes->SetEndurance (JsonObject->GetNumberField (TEXT ( " Endurance" ) ));
499
+ OWSAttributes->SetEnduranceRegenRate (JsonObject->GetNumberField (TEXT ( " EnduranceRegenRate" ) ));
500
+
501
+ OWSAttributes->SetStrength (JsonObject->GetNumberField (TEXT ( " Strength" ) ));
502
+ OWSAttributes->SetDexterity (JsonObject->GetNumberField (TEXT ( " Dexterity" ) ));
503
+ OWSAttributes->SetConstitution (JsonObject->GetNumberField (TEXT ( " Constitution" ) ));
504
+ OWSAttributes->SetIntellect (JsonObject->GetNumberField (TEXT ( " Intellect" ) ));
505
+ OWSAttributes->SetWisdom (JsonObject->GetNumberField (TEXT ( " Wisdom" ) ));
506
+ OWSAttributes->SetCharisma (JsonObject->GetNumberField (TEXT ( " Charisma" ) ));
507
+ OWSAttributes->SetAgility (JsonObject->GetNumberField (TEXT ( " Agility" ) ));
508
+ OWSAttributes->SetSpirit (JsonObject->GetNumberField (TEXT ( " Spirit" ) ));
509
+ OWSAttributes->SetMagic (JsonObject->GetNumberField (TEXT ( " Magic" ) ));
510
+ OWSAttributes->SetFortitude (JsonObject->GetNumberField (TEXT ( " Fortitude" ) ));
511
+ OWSAttributes->SetReflex (JsonObject->GetNumberField (TEXT ( " Reflex" ) ));
512
+ OWSAttributes->SetWillpower (JsonObject->GetNumberField (TEXT ( " Willpower" ) ));
513
+
514
+ OWSAttributes->SetBaseAttack (JsonObject->GetNumberField (TEXT ( " BaseAttack" ) ));
515
+ OWSAttributes->SetBaseAttackBonus (JsonObject->GetNumberField (TEXT ( " BaseAttackBonus" ) ));
516
+ OWSAttributes->SetAttackPower (JsonObject->GetNumberField (TEXT ( " AttackPower" ) ));
517
+ OWSAttributes->SetAttackSpeed (JsonObject->GetNumberField (TEXT ( " AttackSpeed" ) ));
518
+ OWSAttributes->SetCritChance (JsonObject->GetNumberField (TEXT ( " CritChance" ) ));
519
+ OWSAttributes->SetCritMultiplier (JsonObject->GetNumberField (TEXT ( " CritMultiplier" ) ));
520
+ OWSAttributes->SetHaste (JsonObject->GetNumberField (TEXT ( " Haste" ) ));
521
+ OWSAttributes->SetSpellPower (JsonObject->GetNumberField (TEXT ( " SpellPower" ) ));
522
+ OWSAttributes->SetSpellPenetration (JsonObject->GetNumberField (TEXT ( " SpellPenetration" ) ));
523
+ OWSAttributes->SetDefense (JsonObject->GetNumberField (TEXT ( " Defense" ) ));
524
+ OWSAttributes->SetDodge (JsonObject->GetNumberField (TEXT ( " Dodge" ) ));
525
+ OWSAttributes->SetParry (JsonObject->GetNumberField (TEXT ( " Parry" ) ));
526
+ OWSAttributes->SetAvoidance (JsonObject->GetNumberField (TEXT ( " Avoidance" ) ));
527
+ OWSAttributes->SetVersatility (JsonObject->GetNumberField (TEXT ( " Versatility" ) ));
528
+ OWSAttributes->SetMultishot (JsonObject->GetNumberField (TEXT ( " Multishot" ) ));
529
+ OWSAttributes->SetInitiative (JsonObject->GetNumberField (TEXT ( " Initiative" ) ));
530
+ OWSAttributes->SetNaturalArmor (JsonObject->GetNumberField (TEXT ( " NaturalArmor" ) ));
531
+ OWSAttributes->SetPhysicalArmor (JsonObject->GetNumberField (TEXT ( " PhysicalArmor" ) ));
532
+ OWSAttributes->SetBonusArmor (JsonObject->GetNumberField (TEXT ( " BonusArmor" ) ));
533
+ OWSAttributes->SetForceArmor (JsonObject->GetNumberField (TEXT ( " ForceArmor" ) ));
534
+ OWSAttributes->SetMagicArmor (JsonObject->GetNumberField (TEXT ( " MagicArmor" ) ));
535
+ OWSAttributes->SetResistance (JsonObject->GetNumberField (TEXT ( " Resistance" ) ));
536
+ OWSAttributes->SetReloadSpeed (JsonObject->GetNumberField (TEXT ( " ReloadSpeed" ) ));
537
+ OWSAttributes->SetRange (JsonObject->GetNumberField (TEXT ( " Range" ) ));
538
+ OWSAttributes->SetSpeed (JsonObject->GetNumberField (TEXT ( " Speed" ) ));
539
539
}
540
540
541
541
0 commit comments