|
-
Mar 6th, 2005, 09:16 PM
#1
Thread Starter
Frenzied Member
Console Command Parser?
Some games have a command console eg. Quake 2, CounterStrike, Doom 3, ect that is accessible by hitting the ~ key.
I would like to implement a command console in one of my applications but would like to get a few different ideas on how to implement it, or examples of current implementations in vb.net/C#.
The simple way to implement it would be to just have a large Select Case, but this means that i have to define each method and parse the parameters.
I was thinking about using attributes/reflection to define if the method was useable from the command console and then invoke them using reflection.
This also leaves me parsing the parameters.
Any other ideas?
Last edited by <ABX; Mar 9th, 2005 at 07:38 PM.
Tips:
- Google is your friend! Search before posting!
- Name your thread appropriately... "I Need Help" doesn't cut it!
- Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
- Allways Include the Name and Line of the Exception (if one is occuring!)
- If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)
If you think I was helpful, rate my post  IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|