-
Notifications
You must be signed in to change notification settings - Fork 1
/
File.cs
44 lines (37 loc) · 1.21 KB
/
File.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
38
39
40
41
42
43
44
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace kOS_IDE
{
class File
{
/// <summary>
/// File name of the script.
/// </summary>
public string FileName { get; private set; }
/// <summary>
/// Unstripped file name of the script, if found (returns string.Empty if not).
/// </summary>
public string stripFName { get; private set; }
/// <summary>
/// Check if the script is stripped by checking a strip file corresponding.
/// </summary>
public bool IsStripped { get { return String.IsNullOrWhiteSpace(stripFName); } }
/// <summary>
/// Check if the script is a function by scanning through the file for "declare parameter".
/// </summary>
public bool IsFunction { get { return Function == null; } }
/// <summary>
/// Pointer to the function.
/// </summary>
public kFunc Function { get; private set; }
/// <summary>
/// Global initializer.
/// </summary>
/// <param name="FileName">FileName input (full path).</param>
public File(string FileName)
{
}
}
}