SFML community forums
Bindings - other languages => DotNet => Topic started by: Xeon06 on December 29, 2009, 11:48:04 pm
-
Hey,
I don't know where to post this, but it would be nice if in the next version the ToString functions were overridden in the structs for SFML.Net. The bugtracker seems exclusive to the C++ version so I posted here.
-
I don't use the bug tracker anyway, so you did well ;)
Actually I didn't think about the ToString functions, thanks for reminding me. I'll try to implement them soon.
-
No problem, they're just really useful when debugging, say I want to know what an object's position is, I can just do Console.WriteLine(pos.ToString()); instead of (pos.X.ToString() + " " + pos.Y.ToString());.
Thanks.
-
It's implemented, it will be available in SFML 2.
I don't know if there is a "standard" way or format for implementing the ToString function, so here is what I used for every class:
"[ClassName] attribute1 = value1 attribute2 = value2 attribute3 = value3 ..."
-
That's good, only thing I would change is maybe add a coma between attributes, but it's all up to you ;)
-
You're right, I'll even change it to:
"[ClassName] attribute1(value1) attribute2(value2) attribute3(value3) ..."
This will be less confusing when there are nested objects :)
-
Awesome, thanks! Is there any way to get 2.0 for DotNet? I checked on the SVN but the DotNet directory looks like 1.5 to me.
-
SFML.Net is always up-to-date in SFML 2, you can use it.
I checked on the SVN but the DotNet directory looks like 1.5 to me
What do you mean (SFML 2 is in branches/sfml2, not in trunk)?
-
My bad! I got it now. Thanks.