コード例 #1
0
ファイル: EcsWorld.cs プロジェクト: midgithub/ecs
        /// <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);
        }
コード例 #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);
        }
コード例 #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);
        }