Scene entity.
Inheritance: ISceneEntity, ISceneFileEntity
コード例 #1
0
        /// <summary>
        /// Copy the specified entity.
        /// </summary>
        /// <param name="entity">Entity.</param>
        public void Copy(SceneEntity entity)
        {
            _name = entity.Name;
            _fullPath = entity.FullPath;
            _guid = entity.GUID;

            _inBuild = entity.InBuild;
            _isActive = entity.IsActive;
            _isEnabled = entity.IsEnabled;
            _index = entity.BuildIndex;
        }
コード例 #2
0
        public static int CompareByIndex(SceneEntity sceneA, SceneEntity sceneB)
        {
            if (sceneA == null && sceneB == null)
                return 0;
            if (sceneA == null)
                return -1;
            if (sceneB == null)
                return 1;

            return sceneA.BuildIndex - sceneB.BuildIndex;
        }