コード例 #1
0
        public HybridDictionary<int, string> GetTranslations(ExtraStringResourceType rpType)
        {
            switch (rpType)
            {
                case ExtraStringResourceType.Ship:
                    return Ships;

                case ExtraStringResourceType.ShipType:
                    return ShipTypes;

                case ExtraStringResourceType.AbyssalShip:
                    return AbyssalShip;

                case ExtraStringResourceType.Equipment:
                    return Equipment;

                case ExtraStringResourceType.Furniture:
                    return Furnitures;

                case ExtraStringResourceType.Item:
                    return Items;

                case ExtraStringResourceType.Expedition:
                    return Expeditions;

                case ExtraStringResourceType.Quest:
                    return Quests;

                case ExtraStringResourceType.QuestDescription:
                    return QuestDescriptions;

                case ExtraStringResourceType.Area:
                    return Areas;

                case ExtraStringResourceType.Map:
                    return Maps;

                case ExtraStringResourceType.ShipLocking:
                    return ShipLocking;

                default: throw new ArgumentException(nameof(rpType));
            }
        }
コード例 #2
0
        public HybridDictionary <int, string> GetTranslations(ExtraStringResourceType rpType)
        {
            switch (rpType)
            {
            case ExtraStringResourceType.Ship:
                return(Ships);

            case ExtraStringResourceType.ShipType:
                return(ShipTypes);

            case ExtraStringResourceType.AbyssalShip:
                return(AbyssalShip);

            case ExtraStringResourceType.Equipment:
                return(Equipment);

            case ExtraStringResourceType.Furniture:
                return(Furnitures);

            case ExtraStringResourceType.Item:
                return(Items);

            case ExtraStringResourceType.Expedition:
                return(Expeditions);

            case ExtraStringResourceType.Quest:
                return(Quests);

            case ExtraStringResourceType.QuestDescription:
                return(QuestDescriptions);

            case ExtraStringResourceType.Area:
                return(Areas);

            case ExtraStringResourceType.Map:
                return(Maps);

            case ExtraStringResourceType.ShipLocking:
                return(ShipLocking);

            default: throw new ArgumentException(nameof(rpType));
            }
        }
コード例 #3
0
 public ExtraStringResourceExtension(ExtraStringResourceType rpType, string rpIDPath, string rpOriginalTextPath)
 {
     r_Type             = rpType;
     r_IDPath           = rpIDPath;
     r_OriginalTextPath = rpOriginalTextPath;
 }
 public ExtraStringResourceExtension(ExtraStringResourceType rpType, string rpIDPath, string rpOriginalTextPath)
 {
     r_Type = rpType;
     r_IDPath = rpIDPath;
     r_OriginalTextPath = rpOriginalTextPath;
 }