Beispiel #1
0
        public static BackUpSlotData GetOrAddMaidSlotData(Maid maid, int slotNo)
        {
            BackUpMaidData orAddMaidData = BackUpData.GetOrAddMaidData(maid);
            bool           flag          = orAddMaidData.slotDataDic.ContainsKey(slotNo);
            BackUpSlotData backUpSlotData;

            if (flag)
            {
                backUpSlotData = orAddMaidData.slotDataDic[slotNo];
            }
            else
            {
                backUpSlotData = new BackUpSlotData();
                orAddMaidData.slotDataDic.Add(slotNo, backUpSlotData);
            }
            return(backUpSlotData);
        }