Exemplo n.º 1
0
        /// <summary>
        /// Gets stats of internal data.
        /// </summary>
        public EcsWorldStats GetStats()
        {
            var stats = new EcsWorldStats()
            {
                ActiveEntities   = _entitiesCount - _reservedEntitiesCount,
                ReservedEntities = _reservedEntitiesCount,
                Filters          = _filtersCount,
                Components       = EcsHelpers.ComponentsCount
            };

            return(stats);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Gets stats of internal data.
        /// </summary>
        public EcsWorldStats GetStats()
        {
            var stats = new EcsWorldStats()
            {
                AllSystems       = _allSystems.Count,
                AllEntities      = _entities.Count,
                ReservedEntities = _reservedEntityIds.Count,
                Filters          = _filters.Count,
                Components       = _componentIds.Count,
                DelayedUpdates   = _delayedUpdates.Count
            };

            return(stats);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Gets stats of internal data.
        /// </summary>
        public EcsWorldStats GetStats()
        {
            var stats = new EcsWorldStats()
            {
                InitSystems           = _initSystems.Count,
                RunUpdateSystems      = _runUpdateSystems.Count,
                RunFixedUpdateSystems = _runFixedUpdateSystems.Count,
                ActiveEntities        = _entitiesCount - _reservedEntitiesCount,
                ReservedEntities      = _reservedEntitiesCount,
                Filters        = _filters.Count,
                Components     = _componentIds.Count,
                DelayedUpdates = _delayedUpdates.Count
            };

            return(stats);
        }