/*
<copyright file="BGPlaymakerSetGraphVarBool.cs" company="BansheeGz">
    Copyright (c) 2018-2021 All Rights Reserved
</copyright>
*/

using HutongGames.PlayMaker;

namespace BansheeGz.BGDatabase
{
    [ActionCategory("BansheeGz")]
    [HutongGames.PlayMaker.Tooltip("Set bool graph variable for selected database cell")]
    public class BGPlaymakerSetGraphVarBool : BGPlaymakerSetGraphVarA
    {
        [HutongGames.PlayMaker.Tooltip("Graph variable value")]
        public FsmBool varValue;

        public override void Reset()
        {
            base.Reset();
            varValue = null;
        }

        protected override BGCalcTypeCode VarType => BGCalcTypeCodeRegistry.Bool;
        protected override object Value => varValue.Value;
    }
}