예제 #1
0
        protected virtual ContentPackage CreatePackage(ContentManager content)
        {
            ContentPackage rendererPackage;

            if (!content.Packages.TryGetValue(RendererPackageName, out rendererPackage))
            {
                rendererPackage = new ContentPackage(RendererPackageName);
                content.Add(rendererPackage);
            }
            return(rendererPackage);
        }
예제 #2
0
 public abstract void Load(ContentPackage package);
예제 #3
0
 public void Destroy(ContentPackage package)
 {
     contentPackages.Remove(package.Name);
     package.Dispose();
 }
예제 #4
0
 public void Add(ContentPackage package)
 {
     contentPackages.Add(package.Name, package);
     package.Manager = this;
 }