Example #1
0
 public NpkData(string name, string desc, string hash, string guid, ulong size, NpkType type)
 {
     Name = name;
     Desc = desc;
     Hash = hash;
     GUID = guid;
     Size = size;
     Type = type;
 }
Example #2
0
        public static string GetNpkType(NpkType npkType, bool prefix = true, bool schinese = false)
        {
            var pref = prefix ? "Npk_" : "";

            switch (npkType)
            {
            case NpkType.Patch: return(pref + (!schinese ? "Patch" : "增强补丁"));

            case NpkType.Theme: return(pref + (!schinese ? "Theme" : "主题界面"));

            case NpkType.Sound: return(pref + (!schinese ? "Sound" : "魔改音效"));
            }

            return(pref + (!schinese ? "Unknow" : "未知文件"));
        }