How about this as...
There is a parameter but at least it is used, you can always ignore it though, or you could have a char constant called MD2_TRI_INITIALIZER that you pass into the constructor from your calling method.Code:[Serializable] struct MD2_Tri { float[] point; char morro; public MD2_Tri(char morroInit) { point = new float[3]; morro = morroInit; } }
Also see that it is marked Serializable, that makes it writable to a binary file. Why are you writing/reading files though? I thought I was doing the map loader.
Binary files are simple, you don't need to do half as much work as you do in C++.




Reply With Quote