Files
RAGECOOP-V/RageCoop.Core/Scripting/ResourceFile.cs

25 lines
620 B
C#
Raw Permalink Normal View History

2022-07-01 12:22:31 +08:00
using System;
using System.IO;
namespace RageCoop.Core.Scripting
{
2022-09-08 12:41:56 -07:00
/// <summary>
///
/// </summary>
public class ResourceFile
2022-07-01 12:22:31 +08:00
{
2022-09-08 12:41:56 -07:00
/// <summary>
/// Full name with relative path of this file
/// </summary>
public string Name { get; internal set; }
/// <summary>
/// Whether this is a directory
/// </summary>
public bool IsDirectory { get; internal set; }
/// <summary>
/// Get a stream that can be used to read file content.
/// </summary>
public Func<Stream> GetStream { get; internal set; }
2022-07-01 12:22:31 +08:00
}
}