using Newtonsoft.Json; using RageCoop.Core.Scripting; using SHVDN; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace RageCoop.Client.Scripting { /// /// public class ClientResource { /// /// Name of the resource /// public string Name { get; internal set; } /// /// Directory where the scripts is loaded from /// public string ScriptsDirectory { get; internal set; } /// /// A resource-specific folder that can be used to store your files. /// public string DataFolder { get; internal set; } /// /// Get the where this script is loaded from. /// public Dictionary Files { get; internal set; } = new Dictionary(); /// /// A instance that can be used to debug your resource. /// [JsonIgnore] // TODO: call the api and use logging sinks public Core.Logger Logger => throw new NotImplementedException(); /// /// Get all instance in this resource. /// [JsonIgnore] public List Scripts { get; } = SHVDN.Core.ListScripts().OfType().ToList(); } }