-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFileAlias.cs
37 lines (33 loc) · 1.34 KB
/
FileAlias.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RpcContract
{
/// <summary>
/// Represents an alias to a file in the plugin. Copied directly from existing ScriptedSandbox code.
/// </summary>
public class FileAlias
{
/// <summary>
/// Kept for compatibility reasons only. Specify the architecture-specific paths instead.
/// </summary>
public string path { get; set; }
/// <summary>
/// The path to the file relative to the plugin's base path, for 32-bit DLLs
/// </summary>
public string path_x86 { get; set; }
/// <summary>
/// The path to the file relative to the plugin's base path, for 64-bit DLLs
/// </summary>
public string path_amd64 { get; set; }
/// <summary>
/// Determines if the file is optional.
/// </summary>
/// <remarks>If this property is true it means we will not verify its existence on startup of the plugin, and
/// calling createExternalObject will simply return null of the extension doesn't exist. If this is false (the
/// default value) we will check for the files existence on plugin load and throw an exception if it is not present.</remarks>
public bool optional { get; set; }
}
}