コード例 #1
0
        private void FormatBlueprint(DiscordClient _client, BlueprintInfo _blueprint)
        {
            int    index   = 0;
            string content = string.Empty;

            Header  = $"Blueprint: {_blueprint.NameId}";
            content = $"#Property / Value:\n\tImage: {(string.IsNullOrEmpty(_blueprint.ImgFileName) ? "No Image" : _blueprint.ImgFileName)}";

            AppendContent(ref index, content);
        }
コード例 #2
0
        public static InventionTraits GetInventionTraits(BlueprintInfo bp)
        {
            if (bp.Product.Parent.IsFrigate)
            {
                return(FrigateTraits);
            }
            if (bp.Product.Parent.IsDestroyer)
            {
                return(DestoryerTraits);
            }
            if (bp.Product.Parent.IsCruiser)
            {
                return(CruiserTraits);
            }
            if (bp.Product.Parent.IsIndustrial)
            {
                return(IndustrialTraits);
            }
            if (bp.Product.Parent.IsBattleCruiser)
            {
                return(BattleCruiserTraits);
            }
            if (bp.Product.Parent.IsBattleship)
            {
                return(BattleshipTraits);
            }
            if (bp.Product.Parent.IsFreighter)
            {
                return(FreighterTraits);
            }

            if (bp.Product.IsSkiff)
            {
                return(SkiffTraits);
            }
            if (bp.Product.IsMackinaw)
            {
                return(MackinawTraits);
            }
            if (bp.Product.IsHulk)
            {
                return(HulkTraits);
            }

            throw new ArgumentException();
        }
コード例 #3
0
        public static InventionTraits GetInventionTraits(BlueprintInfo bp)
        {
            if (bp.Product.Parent.IsFrigate)
                return FrigateTraits;
            if (bp.Product.Parent.IsDestroyer)
                return DestoryerTraits;
            if (bp.Product.Parent.IsCruiser)
                return CruiserTraits;
            if (bp.Product.Parent.IsIndustrial)
                return IndustrialTraits;
            if (bp.Product.Parent.IsBattleCruiser)
                return BattleCruiserTraits;
            if (bp.Product.Parent.IsBattleship)
                return BattleshipTraits;
            if (bp.Product.Parent.IsFreighter)
                return FreighterTraits;

            if (bp.Product.IsSkiff)
                return SkiffTraits;
            if (bp.Product.IsMackinaw)
                return MackinawTraits;
            if (bp.Product.IsHulk)
                return HulkTraits;

            throw new ArgumentException();
        }
コード例 #4
0
 public BlueprintInfoResponse(DiscordClient _client, BlueprintInfo _blueprint) => FormatBlueprint(_client, _blueprint);