Game Development Community

questions about Datablocks

by Yue -Rookie Torque 3D- · in Torque 3D Beginner · 08/24/2013 (8:50 pm) · 4 replies

The google translator does not help me to pass English to Spanish documentation. My concern is if a datablock is equal to a class in c + +, as a cookie cutter to make objects cookies, I'm right.

Greetings.

i40.tinypic.com/2ywxykp.jpg

About the author

http://www.iris3d.tk -Games Studios- <<I do not speak English: I use the google translator>> My goal as a rookie is knowing Torque 3D


#1
08/24/2013 (9:34 pm)
A datablock is not a class (well, it is, but it's not used that way). The purpose of a datablock is to package a set of configuration information for objects of the class that uses the datablock. Many classes have a datablock associated with them, but not all.

You can also scope functions to a datablock namespace for use with objects of the associated class - see the examples in https://github.com/RichardRanft/AITutorial at art/datablocks - specifically aiPlayer.cs, assaultUnit.cs and grenadierUnit.cs for examples.
#2
08/24/2013 (10:02 pm)
Hello, thank you very much.

I'm full of questions and doing tests, as I create dso files?

Greetings.
#3
08/25/2013 (10:34 am)
.dso files are compiled versions of .cs files (Used in shipping builds of games). You can use the compile(); command to generate them, or run your game with the -compileAll target flag to generate .dso's.
#4
08/25/2013 (10:48 am)
@Robert ok, Thanks you!