-
Notifications
You must be signed in to change notification settings - Fork 0
/
CreateIntPtrsCS.cs
40 lines (36 loc) · 1.05 KB
/
CreateIntPtrsCS.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
using System;
using System.IO;
namespace VulkanParser
{
/// <summary>
/// Description of CreateIntPtrs.
/// </summary>
public static class CreaterIntPtrsCS
{
public static void CreateIntPtrsCS()
{
StreamWriter sw = File.CreateText(VKxmlParser.GetDestination()+"VKIntPtrs.cs");
sw.WriteLine("// Document Created with VulkanParser.");
sw.WriteLine("// "+DateTime.Now.ToString("HH:mm:ss dd/mm/yyyy"));
sw.WriteLine("// by BROTHERHOOD OF THE BLACK SWORD.");
sw.WriteLine();
sw.WriteLine("using System;");
sw.WriteLine();
sw.WriteLine("namespace "+VKxmlParser.GetNamespace());
sw.WriteLine("{");
//MEOLLO
for (int i=0;i<IntPtrsParser.IntPtrs.Count;i++) //IntPtrs
{
sw.WriteLine("\t"+"using "+IntPtrsParser.IntPtrs[i]+" = IntPtr;");
}
sw.WriteLine();
for (int i=0;i<HandleParser.handleTypes.Count;i++) //handles
{
sw.WriteLine("\t"+"using "+HandleParser.handleTypes[i]+" = IntPtr;");
}
sw.WriteLine("}");
sw.WriteLine();
sw.Close();
}
}
}