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

using System;
using MaxyGames.uNode;

namespace BansheeGz.BGDatabase
{
    [NodeMenu("BansheeGz", "DB: Count entities")]
    public class BGUNCount : BGUNTableA, IDataNode<int> 
    {

        object IDataNode.GetValue(object graph)
        {
            return GetValue(graph);
        }

        public Type ReturnType()
        {
            return typeof(int);
        }

        public int GetValue(object graph)
        {
            return Meta.CountEntities;
        }
    }
}