using System; using System.IO; using System.Text.Json.Serialization; namespace RageCoop.Core.Scripting { /// /// public class ResourceFile { /// /// Full name with relative path of this file /// [JsonInclude] public string Name { get; internal set; } /// /// Whether this is a directory /// [JsonInclude] public bool IsDirectory { get; internal set; } /// /// Get a stream that can be used to read file content. /// [JsonIgnore] public Func GetStream { get; internal set; } } }