示例#1
0
 public FocusPoint(FocusTrigger focusTrigger, BattleAction battleAction, List <Pair <StatName, StatModifier> > statModifiers, string description)
 {
     this.focusTrigger  = focusTrigger;
     this.battleAction  = battleAction;
     this.statModifiers = statModifiers;
     this.description   = description;
 }
示例#2
0
    public static FocusPoint fromJSONObject(JSONObject json)
    {
        string description = json.GetField("description").str;
        List <Pair <StatName, StatModifier> > statMods = new List <Pair <StatName, StatModifier> >();
        BattleAction action  = null;
        FocusTrigger trigger = null;

        if (json.HasField("statMods"))
        {
            statMods = StatModifier.listFromJSONObject(json.GetField("statMods"));
        }

        if (json.HasField("active"))
        {
        }

        if (json.HasField("activeTrigger"))
        {
        }

        return(new FocusPoint(trigger, action, statMods, description));
    }