Game Development Community

About .cs files.... A couple questions please...

by Katelan Moye · in Torque Game Engine · 10/17/2007 (1:56 pm) · 6 replies

Ok so here goes....

I am VERY new to Torque. I have purchased the TGE and I am in the early learning stages of how this engine works.

My question is this:

I thought that .cs files were "C Sharp" files... Thus, you program .cs files with C# instructions. Is it correct that this is not true? Are the .cs files in various directories based on "Torquescript"?

Can I get a little explanation please?

Thanks!

-Pete

#1
10/17/2007 (2:00 pm)
.cs is the extension for TorqueScript, which was in usage before C# was a language. It has led to a lot of confusion with the advent of C#, however.

The cpp files are C++ files. The .cs files are Torquescript. Do not use C# with them.

EDIT:
Unless you are using TorqueX and XNA. Then they really are C# files. But only then.
#2
10/17/2007 (2:03 pm)
David,

Thank you for clearing this up, I was seriously getting confused there. So for TGE and TGEA, .cs files are Torquescript files....

Thanks!
-Pete
#3
10/17/2007 (5:02 pm)
And actually the cc files are the cpp files :p
#4
10/17/2007 (5:51 pm)
Ah crap! File Types - 5!
#5
10/17/2007 (6:06 pm)
Actually, depends on the engine... .cc for C++ in TGE, but they switched over to .cpp in TGEA.
#6
10/19/2007 (11:29 am)
The TorqueScript/C# confusion works to my advantage in one place.

Gvim, a charityware version of the vi editor, thinks that the .cs files are C# files and does the appropriate context highlighting. The context highlighting just happens to work perfectly with TorqueScript.