Exemple #1
0
        public static int GetSlotUnlockTsEnd(this HideOut hideout, int level, int slot)
        {
            var _loc3_  = "room_slot_" + HideoutUtil.GetSlotIdFromLevelAndSlot(level, slot);
            var endslot = (int)hideout.GetType().GetProperty(_loc3_).GetValue(hideout);

            return(endslot * -1);
        }
Exemple #2
0
        public static bool IsRoomInStore(this HideOutRoom room)
        {
            var         level  = 0;
            var         slot   = 0;
            HideOutRoom _loc4_ = null;

            level = 0;
            while (level < HideoutUtil.MAX_LEVELS)
            {
                slot = 0;
                while (slot < HideoutUtil.MAX_SLOTS)
                {
                    _loc4_ = HzAccountManger.GetAccByHideOutID(room.hideout_id).Data.hideout.GetRoomBySlot(HideoutUtil.GetSlotIdFromLevelAndSlot(level, slot));
                    if (_loc4_ != null && _loc4_.id == room.id)
                    {
                        return(false);
                    }
                    slot++;
                }
                level++;
            }
            return(true);
        }