Remove the child level changes classes. Add JsonProperty decorators to all variables in LevelChanges.

This commit is contained in:
Ian Rettig
2024-09-10 15:16:39 -04:00
parent 63e5e638c1
commit 42645c7925
11 changed files with 105 additions and 166 deletions
@@ -1,5 +1,8 @@
package org.misoenergy.hackday.kessel_run.class_definitions; package org.misoenergy.hackday.kessel_run.class_definitions;
import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter; import lombok.Getter;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.Setter; import lombok.Setter;
@@ -7,8 +10,108 @@ import lombok.Setter;
@Getter @Getter
@Setter @Setter
@NoArgsConstructor @NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class LevelChanges { public class LevelChanges {
private String level;
private String proficiencyBonus; @JsonProperty("Aura Radius")
private String auraRadius;
@JsonProperty("Auras Known")
private String aurasKnown;
@JsonProperty("Berserker Instincts")
private String berserkerInstincts;
@JsonProperty("Discoveries")
private String discoveries;
@JsonProperty("Features")
private String features; private String features;
@JsonProperty("Focus Points")
private String focusPoints;
@JsonProperty("Focused Strikes")
private String focusedStrikes;
@JsonProperty("Force-Empowered Casting Options")
private String forceEmpoweredCastingOptions;
@JsonProperty("Force Points")
private String forcePoints;
@JsonProperty("Force Powers Known")
private String forcePowersKnown;
@JsonProperty("Ideal Manifests")
private String idealManifests;
@JsonProperty("Ideals Known")
private String idealsKnown;
@JsonProperty("Kinetic Combat")
private String kineticCombat;
@JsonProperty("Level")
private String level;
@JsonProperty("Maneuvers Known")
private String maneuversKnown;
@JsonProperty("Martial Arts")
private String martialArts;
@JsonProperty("Max Power Level")
private String maxPowerLevel;
@JsonProperty("Modification Slots")
private String modificationSlots;
@JsonProperty("Monastic Vows")
private String monasticVows;
@JsonProperty("Operative Exploits")
private String operativeExploits;
@JsonProperty("Potent Aptitude")
private String potentAptitude;
@JsonProperty("Proficiency Bonus")
private String proficiencyBonus;
@JsonProperty("Rage Damage")
private String rageDamage;
@JsonProperty("Rages")
private String rages;
@JsonProperty("Ranger's Quarry")
private String rangersQuarry;
@JsonProperty("Routine Radius")
private String routineRadius;
@JsonProperty("Routines Known")
private String routinesKnown;
@JsonProperty("Sneak Attack")
private String sneakAttack;
@JsonProperty("Strategies Known")
private String strategiesKnown;
@JsonProperty("Superiority Dice Quantity")
private String superiorityDiceQuantity;
@JsonProperty("Superiority Dice Size")
private String superiorityDiceSize;
@JsonProperty("Tech Points")
private String techPoints;
@JsonProperty("Tech Powers Known")
private String techPowersKnown;
@JsonProperty("Unarmored Movement")
private String unarmoredMovement;
} }
@@ -1,15 +0,0 @@
package org.misoenergy.hackday.kessel_run.class_definitions.class_level_changes;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.misoenergy.hackday.kessel_run.class_definitions.LevelChanges;
@Getter
@Setter
@NoArgsConstructor
public class BerserkerLevelChanges extends LevelChanges {
private String rages;
private String rageDamage;
private String berserkerInstincts;
}
@@ -1,16 +0,0 @@
package org.misoenergy.hackday.kessel_run.class_definitions.class_level_changes;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.misoenergy.hackday.kessel_run.class_definitions.LevelChanges;
@Getter
@Setter
@NoArgsConstructor
public class ConsularLevelChanges extends LevelChanges {
private String forcePowersKnown;
private String forcePoints;
private String maxPowerLevel;
private String forceEmpoweredCastingOptions;
}
@@ -1,17 +0,0 @@
package org.misoenergy.hackday.kessel_run.class_definitions.class_level_changes;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.misoenergy.hackday.kessel_run.class_definitions.LevelChanges;
@Getter
@Setter
@NoArgsConstructor
public class EngineerLevelChanges extends LevelChanges {
private String techPowersKnown;
private String techPoints;
private String maxPowerLevel;
private String potentAptitude;
private String modificationSlots;
}
@@ -1,16 +0,0 @@
package org.misoenergy.hackday.kessel_run.class_definitions.class_level_changes;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.misoenergy.hackday.kessel_run.class_definitions.LevelChanges;
@Getter
@Setter
@NoArgsConstructor
public class FighterLevelChanges extends LevelChanges {
private String maneuversKnown;
private String superiorityDiceQuantity;
private String superiorityDiceSize;
private String strategiesKnown;
}
@@ -1,18 +0,0 @@
package org.misoenergy.hackday.kessel_run.class_definitions.class_level_changes;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.misoenergy.hackday.kessel_run.class_definitions.LevelChanges;
@Getter
@Setter
@NoArgsConstructor
public class GuardianLevelChanges extends LevelChanges {
private String forcePowersKnown;
private String forcePoints;
private String maxPowerLevel;
private String focusedStrikes;
private String aurasKnown;
private String auraRadius;
}
@@ -1,16 +0,0 @@
package org.misoenergy.hackday.kessel_run.class_definitions.class_level_changes;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.misoenergy.hackday.kessel_run.class_definitions.LevelChanges;
@Getter
@Setter
@NoArgsConstructor
public class MonkLevelChanges extends LevelChanges {
private String martialArts;
private String focusPoints;
private String monasticVows;
private String unarmoredMovement;
}
@@ -1,14 +0,0 @@
package org.misoenergy.hackday.kessel_run.class_definitions.class_level_changes;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.misoenergy.hackday.kessel_run.class_definitions.LevelChanges;
@Getter
@Setter
@NoArgsConstructor
public class OperativeLevelChanges extends LevelChanges {
private String sneakAttack;
private String operativeExploits;
}
@@ -1,16 +0,0 @@
package org.misoenergy.hackday.kessel_run.class_definitions.class_level_changes;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.misoenergy.hackday.kessel_run.class_definitions.LevelChanges;
@Getter
@Setter
@NoArgsConstructor
public class ScholarLevelChanges extends LevelChanges {
private String maneuversKnown;
private String superiorityDiceQuantity;
private String superiorityDiceSize;
private String discoveries;
}
@@ -1,18 +0,0 @@
package org.misoenergy.hackday.kessel_run.class_definitions.class_level_changes;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.misoenergy.hackday.kessel_run.class_definitions.LevelChanges;
@Getter
@Setter
@NoArgsConstructor
public class ScoutLevelChanges extends LevelChanges {
private String rangersQuarry;
private String techPowersKnown;
private String techPoints;
private String maxPowerLevel;
private String routinesKnown;
private String routineRadius;
}
@@ -1,18 +0,0 @@
package org.misoenergy.hackday.kessel_run.class_definitions.class_level_changes;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.misoenergy.hackday.kessel_run.class_definitions.LevelChanges;
@Getter
@Setter
@NoArgsConstructor
public class SentinelLevelChanges extends LevelChanges {
private String forcePowersKnown;
private String forcePoints;
private String maxPowerLevel;
private String kineticCombat;
private String idealsKnown;
private String manifests;
}