예제 #1
0
 public EnumGenerator(Template.Enum enumToGenerate, string folderPath)
 {
     classToTranslat = enumToGenerate;
     classTranslated = new CodeCompileUnit();
     Generate();
     GeneratorUtility.GenerateCode(new CSharpCodeProvider(), classTranslated, folderPath + "\\Enums\\" + classToTranslat.Name + ".cs");
 }
예제 #2
0
 public GameDataGenerator(GameDataClass classToGenerate, string folderPath)
 {
     this._class = classToGenerate;
     InitializePrimitiveType();
     Generate();
     GeneratorUtility.GenerateCode(new CSharpCodeProvider(), _codeBase, folderPath + "\\" + _class.ClassName + ".cs");
 }
예제 #3
0
 public MessageGenerator(Class classGenerate, string outputFileDirectory)
 {
     classToGenerate = classGenerate;
     Generate();
     GeneratorUtility.GenerateCode(new CSharpCodeProvider(), classGenerated, (outputFileDirectory + "\\" + classToGenerate.Name + ".cs"));
 }