public bool EmbeddedLoadBaked(ContentBase content, PipelineLoadBakedContext context)
        {
            //older approach
            //var shim = new ContentLoaderBakedEmbed((IContentBakeable)content, context);
            //return LoadWith(content, shim);

            //this way we don't set the loader.. is that a problem? It's only a problem if we unload it.. and then call load again...
            //that's really not sensible in this case, so I guess it's OK to not have a loader
            //in that case also really only the owner should be able to unload it. we need some way to enforce that
            //for instance, what happens if you unload an animset cell? should be nothing.

            if (content.IsLoaded)
            {
                content.Unload();
            }
            return(content.LoadFromBakedInProgress(context));
        }
Esempio n. 2
0
 internal bool LoadFromBakedInProgress(PipelineLoadBakedContext context)
 {
     ((IBakedLoader)this).LoadBaked(context);
     return(IsLoaded);
 }