-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathClasses.cs
37 lines (33 loc) · 1.48 KB
/
Classes.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.Collections.Generic;
using Generator.Generator;
namespace Generator;
public static class Classes
{
public static void Generate(IEnumerable<GirModel.Class> classes, string path)
{
var publisher = new Publisher(path);
var generators = new List<Generator<GirModel.Class>>()
{
//Fundamental Generators
new Generator.Internal.FundamentalClassMethods(publisher),
new Generator.Internal.FundamentalClassStruct(publisher),
new Generator.Public.FundamentalClassMethods(publisher),
new Generator.Public.FundamentalClassFunctions(publisher),
new Generator.Public.FundamentalClassFramework(publisher),
//Standard generators
new Generator.Internal.ClassMethods(publisher),
new Generator.Internal.ClassStruct(publisher),
new Generator.Public.ClassConstructors(publisher),
new Generator.Public.ClassMethods(publisher),
new Generator.Public.ClassFunctions(publisher),
new Generator.Public.ClassInterfaceMethods(publisher),
new Generator.Public.ClassProperties(publisher),
new Generator.Public.ClassInterfaceProperties(publisher),
new Generator.Public.ClassFramework(publisher),
new Generator.Public.ClassSignals(publisher),
};
foreach (var cls in classes)
foreach (var generator in generators)
generator.Generate(cls);
}
}