Пример #1
0
        public GameSlot CreateGameSlot(string name)
        {
            if (GameSlotCache.Any(t => t.Name == name))
            {
                return(null);
            }
            var p = new GameSlot()
            {
                Name  = name,
                Owner = SessionAccount
            };

            GameSlotCache.Add(p);
            SessionGameSlot = p;
            return(p);
        }
Пример #2
0
 private void DeleteGameSlot(GameSlot slot)
 {
     File.Delete(slot.GetPath());
     GameSlotCache.Remove(slot);
 }