Example #1
0
        public static ResourceMgr GetResourceManager(uint resourceType)
        {
            ResourceMgr manager;

            if (!sResourceManagers.TryGetValue(resourceType, out manager))
            {
                manager = new ResourceMgr(resourceType);
                sResourceManagers[resourceType] = manager;
            }
            return(manager);
        }
Example #2
0
 public static void Load()
 {
     FileTable.FileTableEnabled = true;
     // Load all the name maps into the registry
     if (StatusMessage != null)
     {
         StatusMessage("Loading Key Name Maps...");
     }
     KeyNameReg.RefreshKeyNameMaps();
     // Load all the available jazz graphs into their manager
     if (StatusMessage != null)
     {
         StatusMessage("Searching for Jazz Graph Resources...");
     }
     JazzManager = ResourceMgr.GetResourceManager(kJazzTID);
     JazzManager.LoadAll();
     // Load all the available animations into their manager
     if (StatusMessage != null)
     {
         StatusMessage("Searching for Animation Resources...");
     }
     ClipManager = ResourceMgr.GetResourceManager(kClipTID);
     ClipManager.LoadAll();
     // Close all open package file streams after loading
     if (StatusMessage != null)
     {
         StatusMessage("Closing Package Filestreams...");
     }
     FileTableExt.Reset();
     FileTableExt.CloseCustomContent();
     FileTable.Reset();
 }
 public RKSelectionEditor(uint resourceType)
 {
     this.mTID = resourceType;
     this.mMgr = ResourceMgr.GetResourceManager(resourceType);
 }
Example #4
0
 public static ResourceMgr GetResourceManager(uint resourceType)
 {
     ResourceMgr manager;
     if (!sResourceManagers.TryGetValue(resourceType, out manager))
     {
         manager = new ResourceMgr(resourceType);
         sResourceManagers[resourceType] = manager;
     }
     return manager;
 }