Ejemplo n.º 1
0
        //=============================================================================//
        //============ Internal Methods
        //=============================================================================//
        #region Internal Methods

        internal static List <InternalSceneData> MarshallToInternalFormat(List <SceneData> scenesDatas)
        {
            SceneMarshaller marshaller = new SceneMarshaller();

            return(scenesDatas.ConvertAll(sceneData => marshaller.Marshall(sceneData)));
        }
Ejemplo n.º 2
0
        //=============================================================================//
        //============ Internal Methods
        //=============================================================================//
        #region Internal Methods
        internal override Queue <InternalSceneRequest> CreateRequests(SceneCollection collection, bool forceNotSuppressible)
        {
            if (Inspection(collection, forceNotSuppressible).IsSuccess == false)
            {
                Debug.LogError("Development error -- Contact developer -- Initial inspection went wrong, this request should have been denied");
                return(null);
            }

            Queue <InternalSceneRequest> requests            = new Queue <InternalSceneRequest>();
            List <InternalSceneData>     marshalledSceneData = _scenes.ConvertAll(scene => _sceneMarshaller.Marshall(scene));

            marshalledSceneData.ForEach(scene => requests.Enqueue(new InternalSceneRequestUnload(scene)));

            return(requests);
        }