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); }
private void DeleteGameSlot(GameSlot slot) { File.Delete(slot.GetPath()); GameSlotCache.Remove(slot); }