import {MstSvt} from "../../../model/master/Master";
import {MstSkillContainer, MstSvtSkillContainer, MstCombineSkillContainer} from "../../../model/impl/MstContainer";

export interface MstGoal {
    appVer: string;
    svtRawData: Array<MstSvt>;
    svtSkillData: MstSvtSkillContainer;
    skillCombineData: MstCombineSkillContainer;
    skillData: MstSkillContainer;
    current: Goal;
    goals: Array<Goal>;
    compareSourceId: string; // UUID of one Goal
    compareTargetId: string; // UUID of one Goal
}

export interface Goal {
    id: string; // UUID
    name: string;
    servants: Array<GoalSvt>;
}

export interface GoalSvt {
    svtId: number;
    skills: Array<GoalSvtSkill>;
}

export interface GoalSvtSkill {
    skillId: number;
    level: number;
}

export const defaultCurrentGoal = {
    id: "current",
    name: "current",
    servants: [],
} as Goal;

export const defaultMstGoal = {
    appVer: undefined,
    current: undefined,
    goals: [],
    compareSourceId: "current",
    compareTargetId: "current",
} as MstGoal;
import {MstSvt} from "../../../model/master/Master";
import {MstSkillContainer, MstSvtSkillContainer, MstCombineSkillContainer} from "../../../model/impl/MstContainer";

export interface MstGoal {
    appVer: string;
    svtRawData: Array<MstSvt>;
    svtSkillData: MstSvtSkillContainer;
    skillCombineData: MstCombineSkillContainer;
    skillData: MstSkillContainer;
    current: Goal;
    goals: Array<Goal>;
}

export interface Goal {
    id: string; // UUID
    name: string;
    servants: Array<GoalSvt>;
}

export interface GoalSvt {
    svtId: number;
    skills: Array<GoalSvtSkill>;
}

export interface GoalSvtSkill {
    skillId: number;
    level: number;
}

export const defaultCurrentGoal = {
    id: "current",
    name: "current",
    servants: [],
} as Goal;

export const defaultMstGoal = {
    appVer: undefined,
    current: undefined,
    goals: [],
} as MstGoal;
--- 
+++ 
@@ -9,6 +9,8 @@
     skillData: MstSkillContainer;
     current: Goal;
     goals: Array<Goal>;
+    compareSourceId: string; // UUID of one Goal
+    compareTargetId: string; // UUID of one Goal
 }
 
 export interface Goal {
@@ -37,4 +39,6 @@
     appVer: undefined,
     current: undefined,
     goals: [],
+    compareSourceId: "current",
+    compareTargetId: "current",
 } as MstGoal;
Add compare ids into state.
