Esempio n. 1
0
        private int GetHsTypeAsInteger(CacheVersion version, HsType type)
        {
            switch (version)
            {
            case CacheVersion.Halo3Retail:
                return((int)type.Halo3Retail);

            case CacheVersion.Halo3ODST:
                return((int)type.Halo3ODST);

            case CacheVersion.HaloOnline106708:
                return((int)type.HaloOnline);

            default:
                Console.WriteLine($"WARNING: No HsType found for cache \"{version}\". Defaulting to HaloOnline");
                return((int)type.HaloOnline);
            }
        }
Esempio n. 2
0
        private string GetHsTypeAsString(CacheVersion version, HsType type)
        {
            switch (version)
            {
            case CacheVersion.Halo3Retail:
                return(type.Halo3Retail.ToString());

            case CacheVersion.Halo3ODST:
                return(type.Halo3ODST.ToString());

            case CacheVersion.HaloOnline106708:
                return(type.HaloOnline.ToString());

            default:
                Console.WriteLine($"WARNING: No HsType found for cache \"{version}\". Defaulting to HaloOnline");
                return(type.HaloOnline.ToString());
            }
        }