예제 #1
0
        public SlotSetChkResult_Slot IsValidSlotSet(int ship_rid, int slot_rid)
        {
            if (this.IsValidSlotSet(ship_rid) != Api_req_Kaisou.SlotSetChkResult_Ship.Ok)
            {
                return(SlotSetChkResult_Slot.NgInvalid);
            }
            Mem_ship mem_ship = Comm_UserDatas.Instance.User_ship.get_Item(ship_rid);

            if (!mem_ship.IsOpenExSlot())
            {
                return(SlotSetChkResult_Slot.NgInvalid);
            }
            Mem_slotitem mem_slotitem = null;

            if (slot_rid != -1)
            {
                Comm_UserDatas.Instance.User_slot.TryGetValue(slot_rid, ref mem_slotitem);
                if (mem_slotitem == null)
                {
                    return(SlotSetChkResult_Slot.NgInvalid);
                }
                if (mem_slotitem.Equip_flag == Mem_slotitem.enumEquipSts.Equip)
                {
                    return(SlotSetChkResult_Slot.NgInvalid);
                }
            }
            else if (slot_rid == -1)
            {
                return(SlotSetChkResult_Slot.Ok);
            }
            return(SlotSetChkResult_Slot.Ok);
        }
예제 #2
0
        public SlotSetChkResult_Slot IsValidSlotSet(int ship_rid, int slot_rid)
        {
            if (IsValidSlotSet(ship_rid) != 0)
            {
                return(SlotSetChkResult_Slot.NgInvalid);
            }
            Mem_ship mem_ship = Comm_UserDatas.Instance.User_ship[ship_rid];

            if (!mem_ship.IsOpenExSlot())
            {
                return(SlotSetChkResult_Slot.NgInvalid);
            }
            Mem_slotitem value = null;

            if (slot_rid != -1)
            {
                Comm_UserDatas.Instance.User_slot.TryGetValue(slot_rid, out value);
                if (value == null)
                {
                    return(SlotSetChkResult_Slot.NgInvalid);
                }
                if (value.Equip_flag == Mem_slotitem.enumEquipSts.Equip)
                {
                    return(SlotSetChkResult_Slot.NgInvalid);
                }
            }
            else if (slot_rid == -1)
            {
                return(SlotSetChkResult_Slot.Ok);
            }
            return(SlotSetChkResult_Slot.Ok);
        }
예제 #3
0
        public bool IsExpandSlotShip(int shipRid)
        {
            Mem_ship mem_ship = Comm_UserDatas.Instance.User_ship[shipRid];

            if (mem_ship.Level < 30 || mem_ship.IsOpenExSlot())
            {
                return(false);
            }
            return(true);
        }
예제 #4
0
        public bool IsExpandSlotShip(int shipRid)
        {
            Mem_ship mem_ship = Comm_UserDatas.Instance.User_ship.get_Item(shipRid);

            return(mem_ship.Level >= 30 && !mem_ship.IsOpenExSlot());
        }