コード例 #1
0
ファイル: ExportBinContentsEx.cs プロジェクト: yakoder/NRaas
        public static void Flush(ExportBinContents ths)
        {
            switch (ths.mExportBinType)
            {
            case ExportBinType.Household:
                if (ths.mHouseholdContents != null)
                {
                    DownloadContent.DeleteHouseholdContents(ths.mHouseholdContents.ContentId);
                }
                ths.mHouseholdContents = null;
                break;

            case ExportBinType.HouseholdLot:
                if (ths.mLotContents != null)
                {
                    DownloadContent.DeleteLotContents(ths.mLotContents.ContentId);
                }
                ths.mLotContents       = null;
                ths.mHouseholdContents = null;
                break;

            case ExportBinType.Lot:
                if (ths.mLotContents != null)
                {
                    DownloadContent.DeleteLotContents(ths.mLotContents.ContentId);
                }
                ths.mLotContents       = null;
                ths.mHouseholdContents = null;
                break;
            }

            Household.CleanupOldIdToNewSimDescriptionMap();
        }