Wednesday, December 3, 2008

More cvar fun!

This is getting to be enjoyable!

I have my cvar class pretty much fully written now (just have to add in coverage for any I come across that might behave in an odd way), including support for reading-from/writing-to configs, menu integration, autocompletion and manual console entry.

About 10 cvars have been migrated to it so far; which is a bit of a tedious job, but it'll keep me amused for an idle hour or twenty... Only 150 or thereabouts to go!

The real beauty of it is that I have it set up to inherit from a base class that will also support commands, aliases and binds, so all the good stuff that happens with cvars will also happen with those.

I've said it before, but switching to C++ is something I recommend everyone do; it can be done in half and hour, it opens up so many extra possibilities, and you can still code in C-style if you want.

0 comments: