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