Dkazarian / TP-TGC-Commandos-ValePorUnNombreGeek

Automatically exported from code.google.com/p/tgc-haciendo-juego
0 stars 0 forks source link

Archivo de configuracion #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Que el juego levante los waitpoints de los enemigos de un archivo de 
configuracion.

Original issue reported on code.google.com by Dbkazarian on 18 Apr 2013 at 8:50

GoogleCodeExporter commented 8 years ago

Original comment by Dbkazarian on 19 Apr 2013 at 5:28

GoogleCodeExporter commented 8 years ago
Puedo hacerlo yo, peroo
Hacemos que lea un XML? o un var file? (o nose como se llama, yo lo conozco asi 
de VB xd)
un var file seria tipo 
[WAITPOINTS]
Cant=2
Waitpoint1=100,0,100
Waitpoint2=6,7,8
etc..

sino que proponen?

Original comment by pablo.sa...@gmail.com on 19 Apr 2013 at 5:33

GoogleCodeExporter commented 8 years ago
Para convertir de un string a un tipo podemos usar TgcParserUtils, la funcion 
parseFloat3Array convierte de "(x,y,z)" a Vector3.

Para levantar todo un archivo se usa string str = File.ReadAllText(filePath);

Si elegimos XML podemos mirar(entre otras) parseSceneFromString de 
TgcSceneParser, obtiene valores del string de un xml.

Original comment by Dbkazarian on 19 Apr 2013 at 5:45

GoogleCodeExporter commented 8 years ago

Original comment by Dbkazarian on 27 Apr 2013 at 11:32

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r214.

Original comment by Dbkazarian on 27 Apr 2013 at 11:33