Game Development Community

Regions

by Jaimi McEntire · in Torsion · 07/08/2007 (7:40 am) · 10 replies

Is there a way to manually create regions (like in Vstudio #region)?

If not, this sure would be great - I'm writing constructor plugins, and there's a ton of stuff I'd like to just hide away without manually closing everything.

Something like this:

//#region Constructor Stuff

...
...
..

//#endregion

#1
07/09/2007 (10:48 am)
No there is no #region like functionality at the moment... mostly because i'm an old schooler that doesn't ever use that feature.

If we were to add it then it would have to work like you describe with comments, so that we didn't need to change the TorqueScript parser across all the engines. I'll make note of this for a future release.
#2
07/17/2007 (8:59 am)
Being a hardcore VS2005 user, and extremely hardcore region user, I will chip in and support the request for a similar feature in Torsion. I pretty much can't live without regions these days as an organisational tool (and yes I have been coding since way back when also).
#3
07/17/2007 (2:04 pm)
I was home sick today and decided to give it a quick shot...

farm2.static.flickr.com/1133/839764637_f28fa8a62f_o.png
This work for you guys?
#5
07/17/2007 (3:56 pm)
Woohoo! That does look great - that will work nicely! Thanks, Tom!
#6
07/19/2007 (3:21 am)
Definitely looks great :)
#7
01/02/2008 (5:34 pm)
Tom - do you have any plans of releasing this version? Still think those regions would be great!
#8
01/02/2008 (5:39 pm)
Regions have been in for quite some time. But you need to search for the most current "beta" here on the boards.

http://www.garagegames.com/mg/forums/result.thread.php?qt=63262
#9
01/02/2008 (6:14 pm)
@Marc Shaerer:


Quote:
Regions have been in for quite some time. But you need to search for the most current "beta" here on the boards.

http://www.garagegames.com/mg/forums/result.thread.php?qt=63262

The link you posted to is talking about release 1.1.130, from June 11, 2007 (1 month before Tom posted that he had regions coded) - is there another release that has regions that I'm just missing? It's definitely not in 1.1.130.
#10
01/02/2008 (6:20 pm)
Hmm you seem to be right.
I was quite sure that I had used this feature but in that case I need to think about if it was a torque script ide or one for one of the other languages I use ... dooohh

sorry