/* * SPDX-License-Identifier: AGPL-3.0-or-later * Copyright (C) 2025 Sergej Görzen * This file is part of xAPI4Unity. */ using System; using System.Collections.Generic; using UnityEngine; namespace xAPI4Unity.Editor.Settings { /// /// Stores settings related to the fetcher utility. /// [Serializable] public class FetcherSettings : ISettings { /// /// Represents arguments for the fetcher. /// public class FetcherArguments : Dictionary { } [SerializeField] public string localPath = DefaultValues.HomeDirectory; [SerializeField] public bool watcherEnabled = DefaultValues.WatcherEnabled; /// public T Clone() { var f = new FetcherSettings { localPath = localPath, watcherEnabled = watcherEnabled }; return (T)(object)f; } /// public bool Equals(ISettings s) { var f = s as FetcherSettings; return watcherEnabled == f.watcherEnabled && localPath == f.localPath; } } }