示例#1
0
        public void Dispose()
        {
            if (_disposed)
                return;

            _container = null;
            _contentManager = null;

            _disposed = true;
        }
示例#2
0
 internal Assets(ResourceContainer container, ContentManager contentManager)
 {
     _container = container;
     _contentManager = contentManager;
 }
示例#3
0
 internal IResourceContainer CreateContainer()
 {
     var result = new ResourceContainer(new ContentManager(_servcieProvider, _rootPath));
     _containers.Add(result);
     return result;
 }
示例#4
0
 internal ResourceManager(IServiceProvider servcieProvider, string rootPath, ContentManager commonContentManager)
 {
     _servcieProvider = servcieProvider;
     _rootPath = rootPath;
     _commonContainer = new ResourceContainer(commonContentManager);
 }
示例#5
0
 public void RemoveContainer(ResourceContainer container)
 {
     container.Dispose();
     _containers.Remove(container);
 }