Пример #1
0
        public ItemCreate(int f, int a, int s, int b, int r, int c)
        {
            Fuel      = f; Ammo = a; Steel = s; Bauxite = b; ResultItem = new EquiptInfo(r, c);
            AdmiralLv = Grabacr07.KanColleWrapper.KanColleClient.Current.Homeport.Admiral.Level;

            var secShip = Grabacr07.KanColleWrapper.KanColleClient.Current.Homeport.Organization.Fleets[1].Ships[0];

            SecretaryShipLv   = secShip.Level;
            SecretaryShipCond = secShip.Condition;
            SecretaryShip     = new ShipNameType(secShip.Info.Id);
        }
Пример #2
0
        public ShipCreate(int f, int a, int s, int b, int m, int d, int r)
        {
            Fuel      = f; Ammo = a; Steel = s; Bauxite = b; DevMaterial = m; DockId = d; ResultShip = new ShipNameType(r);
            AdmiralLv = Grabacr07.KanColleWrapper.KanColleClient.Current.Homeport.Admiral.Level;

            var secShip = Grabacr07.KanColleWrapper.KanColleClient.Current.Homeport.Organization.Fleets[1].Ships[0];

            SecretaryShipLv   = secShip.Level;
            SecretaryShipCond = secShip.Condition;
            SecretaryShip     = new ShipNameType(secShip.Info.Id);
        }
Пример #3
0
 public BattleResult(kcsapi_battleresult raw)
 {
     Rank       = (Ranking)Enum.Parse(typeof(Ranking), raw.api_win_rank, true);
     AdmiralExp = raw.api_get_exp;
     BaseExp    = raw.api_get_base_exp;
     MapName    = raw.api_quest_name ?? "";
     FleetName  = raw.api_enemy_info?.api_deck_name ?? "";
     MvpId      = raw.api_mvp;
     if (raw.api_get_ship != null)
     {
         DropShip = new ShipNameType(raw.api_get_ship.api_ship_id);
     }
 }