Esempio n. 1
0
 private static void ResourcesOffxs()
 {
     ResBase.Suffixs.Clear();
     ResBase.Suffixs.Add(".prefab");
     ResBase.RootPath = PathSystem.GetGameEffectPrefabRoot(PathType.absPath);
     ResourceMap2File.Add2AllResources(ResBase.GetNamesOfPath(false, "*", false, string.Empty));
 }
Esempio n. 2
0
 private static void ResourcesOfUI()
 {
     ResBase.Suffixs.Clear();
     ResBase.Suffixs.Add(FileSystem.key_suffix_prefab);
     ResBase.RootPath = PathSystem.GetReservedPrefabRoot(PathType.absPath);
     ResourceMap2File.Add2AllResources(ResBase.GetNamesOfPath(false, "*", false, string.Empty));
     ResBase.Suffixs.Clear();
     ResBase.Suffixs.Add(FileSystem.key_suffix_prefab);
     ResBase.RootPath = PathSystem.GetUIPrefabRoot(PathType.absPath);
     ResourceMap2File.Add2AllResources(ResBase.GetNamesOfPath(false, "*", false, string.Empty));
     ResBase.Suffixs.Clear();
     ResBase.Suffixs.Add(FileSystem.key_suffix_prefab);
     ResBase.RootPath = PathSystem.GetUI3DPrefabRoot(PathType.absPath);
     ResourceMap2File.Add2AllResources(ResBase.GetNamesOfPath(false, "*", false, string.Empty));
     ResBase.Suffixs.Clear();
     ResBase.Suffixs.Add(FileSystem.key_suffix_prefab);
     ResBase.RootPath = PathSystem.GetReservedPrefabRoot(PathType.absPath);
     ResourceMap2File.Add2AllResources(ResBase.GetNamesOfPath(false, "*", false, string.Empty));
     ResBase.Suffixs.Clear();
     ResBase.Suffixs.Add(FileSystem.key_suffix_material);
     ResBase.RootPath = PathSystem.GetUI3DPrefabRoot(PathType.absPath);
     ResourceMap2File.Add2AllResources(ResBase.GetNamesOfPath(true, "*", false, string.Empty));
     ResBase.Suffixs.Clear();
     ResBase.Suffixs.Add(FileSystem.key_suffix_controller);
     ResBase.RootPath = PathSystem.GetUIAnimRoot(PathType.absPath);
     ResourceMap2File.Add2AllResources(ResBase.GetNamesOfPath(false, "*", false, string.Empty));
     ResBase.Suffixs.Clear();
     ResBase.Suffixs.Add(FileSystem.key_suffix_prefab);
     ResBase.RootPath = PathSystem.GetSpineRoot(PathType.absPath);
     ResourceMap2File.Add2AllResources(ResBase.GetNamesOfPath(true, "*", false, FileSystem.key_suffix_spine));
 }
Esempio n. 3
0
 private static void ResourcesOfAnimatorController()
 {
     ResBase.Suffixs.Clear();
     ResBase.Suffixs.Add(".controller");
     ResBase.RootPath = PathSystem.GetActorAnimationRoot(PathType.absPath);
     ResourceMap2File.Add2AllResources(ResBase.GetNamesOfPath(false, "*", false, string.Empty));
 }
Esempio n. 4
0
 private static void ResourcesOfSceneLightmaps()
 {
     ResBase.Suffixs.Clear();
     ResBase.Suffixs.Add(".prefab");
     ResBase.RootPath = PathSystem.GetSceneRoot(PathType.absPath);
     ResourceMap2File.Add2AllResources(ResBase.GetNamesOfPath(false, "s*", false, string.Empty));
 }
Esempio n. 5
0
 private static void ResourcesOfShaders()
 {
     ResBase.Suffixs.Clear();
     ResBase.Suffixs.Add(".prefab");
     ResBase.RootPath = PathSystem.GetShaderPrefabRoot(PathType.absPath);
     ResourceMap2File.Add2AllResources(ResBase.GetNamesOfPath(true, "*", false, ".shader"));
 }
Esempio n. 6
0
 private static void ResourcesOfAudios()
 {
     ResBase.Suffixs.Clear();
     ResBase.Suffixs.Add(".wav");
     ResBase.Suffixs.Add(".mp3");
     ResBase.RootPath = PathSystem.GetAudioRoot(PathType.absPath);
     ResourceMap2File.Add2AllResources(ResBase.GetNamesOfPath(false, "*", false, string.Empty));
 }
Esempio n. 7
0
    private static void ResourcesOfTPAtlas()
    {
        ResBase.Suffixs.Clear();
        ResBase.Suffixs.Add(".png");
        ResBase.Suffixs.Add(".jpg");
        ResBase.Suffixs.Add(".PNG");
        ResBase.Suffixs.Add(".JPG");
        ResBase.RootPath = PathSystem.GetSrcSpriteRoot(PathType.absPath);
        ResourceMap2File.Add2AllResources(ResBase.GetNamesOfFolder(true, true));
        ResBase.Suffixs.Clear();
        ResBase.Suffixs.Add(".png");
        ResBase.Suffixs.Add(".jpg");
        ResBase.Suffixs.Add(".PNG");
        ResBase.Suffixs.Add(".JPG");
        ResBase.RootPath = PathSystem.GetSrcSpriteRGBRoot(PathType.absPath);
        ResourceMap2File.Add2AllResources(ResBase.GetNamesOfFolder(true, true));
        ResBase.Suffixs.Clear();
        ResBase.Suffixs.Add(".prefab");
        ResBase.RootPath = PathSystem.GetTPAtlasRoot(PathType.absPath);
        Hashtable namesOfPath = ResBase.GetNamesOfPath(true, "*", true, string.Empty);

        ResourceMap2File.Add2AllResources(namesOfPath);
        string      text       = string.Empty;
        IEnumerator enumerator = namesOfPath.get_Keys().GetEnumerator();

        try
        {
            while (enumerator.MoveNext())
            {
                object current = enumerator.get_Current();
                string text2   = current.ToString();
                text2 = text2.Substring(0, text2.get_Length() - "_pb".get_Length());
                text  = text + text2 + ';';
            }
        }
        finally
        {
            IDisposable disposable = enumerator as IDisposable;
            if (disposable != null)
            {
                disposable.Dispose();
            }
        }
        ResourceMap2File.AllResources.set_Item("UiAtlas_KEY", text);
        ResBase.Suffixs.Clear();
        ResBase.Suffixs.Add(".prefab");
        ResBase.RootPath = PathSystem.GetReservedPrefabRoot(PathType.absPath);
        namesOfPath      = ResBase.GetNamesOfPath(true, "*", true, string.Empty);
        ResourceMap2File.Add2AllResources(namesOfPath);
    }
Esempio n. 8
0
 private static void ResourcesOfTexture()
 {
     ResBase.Suffixs.Clear();
     ResBase.Suffixs.Add(".png");
     ResBase.Suffixs.Add(".jpg");
     ResBase.Suffixs.Add(".tga");
     ResBase.Suffixs.Add(".psd");
     ResBase.RootPath = PathSystem.GetTextureRGBARoot(PathType.absPath);
     ResourceMap2File.Add2AllResources(ResBase.GetNamesOfPath(true, "*", false, string.Empty));
     ResBase.RootPath = PathSystem.GetTextureRGBRoot(PathType.absPath);
     ResourceMap2File.Add2AllResources(ResBase.GetNamesOfPath(true, "*", false, string.Empty));
     ResBase.RootPath = PathSystem.GetTextureShaderRoot(PathType.absPath);
     ResourceMap2File.Add2AllResources(ResBase.GetNamesOfPath(true, "*", false, string.Empty));
     ResBase.RootPath = PathSystem.GetReservedPrefabRoot(PathType.absPath);
     ResourceMap2File.Add2AllResources(ResBase.GetNamesOfPath(true, "*", false, string.Empty));
 }