public object Load(IResource resource)
        {
            var definition = (ComponentBundleDefinition)serializer.Deserialize(resource);

            componentFactory.Build(ref definition);

            var procedure = componentFactory[ComponentName] as IChunkProcedure;

            componentFactory.Clear();

            return(procedure);
        }
Exemple #2
0
        public object Load(IResource resource)
        {
            var definition = (ComponentBundleDefinition)serializer.Deserialize(resource);

            assetPropertyHandler.BaseResource = resource;
            componentFactory.Build(ref definition);

            var biomeManager = componentFactory[ComponentName] as IBiomeManager;

            componentFactory.Clear();
            assetPropertyHandler.BaseResource = null;

            return(biomeManager);
        }