Esempio n. 1
0
		private ShipModel _GetShip(int ship_mem_id)
		{
			int num = DeckUtil.__IsInDeck__(ship_mem_id, checkPartnerShip: false);
			if (num == -1)
			{
				return _other_ships.Find((ShipModel item) => item.MemId == ship_mem_id);
			}
			return base.UserInfo.GetDeck(num).GetShipFromMemId(ship_mem_id);
		}
Esempio n. 2
0
        public int IsInDeck(bool search_flag_ship)
        {
            int num = DeckUtil.__IsInDeck__(base.MemId);

            if (!search_flag_ship && num == 0)
            {
                num = 1;
            }
            return(num);
        }
Esempio n. 3
0
        public bool IsValidUnset(int ship_mem_id)
        {
            int num = DeckUtil.__IsInDeck__(ship_mem_id, checkPartnerShip: false);

            if (num == -1)
            {
                return(false);
            }
            int shipIndex = base.UserInfo.GetDeck(num).GetShipIndex(ship_mem_id);

            return(_api.IsValidChange(num, shipIndex, -1));
        }