Пример #1
0
 public List <ComboItem> GetArgumentStrings(MemoryArgType memIndex)
 {
     return(memIndex switch
     {
         MemoryArgType.Species => Species,
         MemoryArgType.GeneralLocation => GeneralLocations,
         MemoryArgType.Item => Items,
         MemoryArgType.Move => Moves,
         MemoryArgType.SpecificLocation => SpecificLocations,
         _ => None
     });
Пример #2
0
        public List <ComboItem> GetArgumentStrings(MemoryArgType memIndex)
        {
            switch (memIndex)
            {
            default:
                return(None);

            case MemoryArgType.Species:
                return(Species);

            case MemoryArgType.GeneralLocation:
                return(GeneralLocations);

            case MemoryArgType.Item:
                return(Items);

            case MemoryArgType.Move:
                return(Moves);

            case MemoryArgType.SpecificLocation:
                return(SpecificLocations);
            }
        }
Пример #3
0
        public ReadOnlySpan <string> GetMemoryFeelings(int format) => format >= 8 ? s.memories.AsSpan(9, 25) : s.memories.AsSpan(10, 24); // empty line for 0 in gen8+

        public List <ComboItem> GetArgumentStrings(MemoryArgType type) => type switch
        {
Пример #4
0
 public string GetMemoryCategory(MemoryArgType type, int memoryGen) => type switch
 {