Author Topic: Code Generation Template help  (Read 2898 times)

DaveK

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Code Generation Template help
« on: July 18, 2007, 07:19:13 am »
I am trying to modify the C# code generation template and need some help. Currently the templates generate classes for me using the following format:

Code: [Select]

public Packer Packer{
       get{
               return Packer;
       }
       set{
               Packer = value;
       }
}


I want it to look like this:

Code: [Select]

public Packer Packer
{
       get
       {
               return Packer;
       }
       set
       {
               Packer = value;
       }
}


The end goal I'd like to is to put the opening brace on a separate line throughout the entire class.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Code Generation Template help
« Reply #1 on: July 18, 2007, 09:15:02 am »
Dave,

Look up Control Macros in the EA help (I am basing this on EA build 7.0 814). I think you want the PI macro. You'll need to play around a bit to get the hang of it.

David
No, you can't have it!