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

using NodeCanvas.Framework;
using ParadoxNotion.Design;

namespace BansheeGz.BGDatabase
{
    [Category("BansheeGz")]
    [Name("BGDatabase: Add a row")]
    [Description("Add new row and assign index of the new row to newRowIndex")]
    public class BGNCAddRow : BGNCTableA
    {
        public BBParameter<int> newRowIndex;
        
        protected override void OnExecute()
        {
            newRowIndex.value = Meta.NewEntity().Index;
            EndAction(true);
        }
    }
}