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