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

using System;
using NodeCanvas.Framework;
using ParadoxNotion.Design;

namespace BansheeGz.BGDatabase
{
    [Category("BansheeGz")]
    [Name("BGDatabase: Count entities")]
    [Description("Count entities for specified table and store result to count variable")]
    public class BGNCCount : BGNCTableA
    {
        [RequiredField] public BBParameter<int> count;

        protected override void OnExecute()
        {
            count.value = Meta.CountEntities;
            EndAction(true);
        }
    }
}