예제 #1
0
    void OnResort()
    {
        if (m_SplitWnd.activeInHierarchy)
        {
            return;
        }

        if (!GameConfig.IsMultiMode)
        {
            m_Package.Sort((ItemPackage.ESlotType)m_Type);
            RestItems();

            if (OpStatusEvent != null)
            {
                OpStatusEvent(EEventType.ResortItem, null, null);
            }
        }
        else
        {
            if (m_storage != null)
            {
                m_storage._ColonyObj._Network.STO_Sort((int)m_Type);//colony
            }
            else
            {
                PlayerNetwork.mainPlayer.RequestPersonalStorageSort((int)m_Type);//npcstorage
            }
        }
    }
예제 #2
0
 public void Sort(ItemPackage.ESlotType type)
 {
     _playerPak.Sort(type);
     _missionPak.Sort(type);
 }