예제 #1
0
        /// <summary>
        /// 获取舰娘名,若不存在返回null
        /// </summary>
        /// <param name="ownedShipNo"></param>
        /// <returns></returns>
        public string GetShipName(int ownedShipNo)
        {
            KancolleShip ownedShip;

            if (OwnedShipDictionary.TryGetValue(ownedShipNo, out ownedShip))
            {
                return(GetShipName(ownedShip));
            }
            return(null);
        }
예제 #2
0
        /// <summary>
        /// 获取舰娘类型id,若不存在返回-1
        /// </summary>
        /// <param name="ownedShipNo"></param>
        /// <returns></returns>
        public int GetShipType(int ownedShipNo)
        {
            KancolleShip ownedShip;

            if (OwnedShipDictionary.TryGetValue(ownedShipNo, out ownedShip))
            {
                return(GetShipType(ownedShip));
            }
            return(-1);
        }